/* ========================================
   VARIABLES Y RESET
   ======================================== */

:root {
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f8f8;
    --color-border: #e0e0e0;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Work Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* ========================================
   NAVEGACIÓN RESPONSIVE
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
}

nav .logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 1001;
}

/* Menú desktop */
nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    font-weight: 400;
}

nav ul li a:hover {
    opacity: 0.6;
}

nav ul li a.active {
    border-bottom: 1px solid var(--color-text);
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s;
}

/* Animación hamburguesa -> X */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    nav .nav-container {
        padding: 20px;
    }
    
    /* Mostrar botón hamburguesa */
    .nav-toggle {
        display: flex;
    }
    
    /* Menú mobile */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    /* Menú abierto */
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        border-bottom: 1px solid var(--color-border);
    }
    
    nav ul li a {
        display: block;
        padding: 20px 0;
        font-size: 1rem;
    }
    
    nav ul li a.active {
        border-bottom: none;
        color: #666;
    }
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

main {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    margin-top: 100px;
}

footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

footer p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 8px 0;
}

footer .social-links {
    margin-top: 20px;
}

footer .social-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: var(--color-text);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    nav .nav-container {
        padding: 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
    }
    
    .container,
    .container-narrow {
        padding: 40px 20px;
    }
}
