/* RESET Y VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent: #c44536;
    --accent-hover: #a03428;
    --border: #e0e0e0;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.dark {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border: #333333;
    --card-bg: #1e1e1e;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(var(--bg-primary-rgb, 255,255,255), 0.95);
}

body.dark header {
    background-color: rgba(18,18,18,0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.logo-icon {
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* BOTÓN MODO NOCHE */
.dark-mode-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.dark-mode-btn:hover {
    transform: scale(1.05);
}

/* HERO */
.hero {
    height: 85vh;
   background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Imogen_Cunningham_%28by_Johan_Hagemeyer%29.jpg/1920px-Imogen_Cunningham_%28by_Johan_Hagemeyer%29.jpg');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    position: relative;
}

.hero-content {
    color: white;
    padding: 24px;
}

.hero-content h2 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-hero:hover {
    background: var(--accent-hover);
}

/* SECCIONES */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

/* FILTROS */
.filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filtro-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* GALERÍA GRID */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* TARJETAS */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #ddd;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

.card-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-nacionalidad {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* MODAL PARA VER DETALLES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 24px;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.close-modal {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--accent);
}

/* LÍNEA DE TIEMPO */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 80px;
}

/* FOOTER */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-info h3,
.footer-links h4,
.footer-social h4 {
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }
}