/* ==========================================================================
   PALETA EDITORIAL SOBRIA: CARBÓN, LINO & CONTRASTE PURO
   ========================================================================== */
:root {
    --bg-dark: #181818;          /* Carbón profundo */
    --bg-dark-surface: #222222;  /* Superficie oscura para tarjetas e inputs */
    --bg-light: #eae7df;         /* Lino / Hueso cálido */
    --bg-light-card: #ffffff;    /* Blanco puro para tarjetas */
    
    --accent: #bda47e;           /* Bronce tenue para detalles sutiles */
    --accent-hover: #ffffff;     /* Blanco en hover */
    
    --text-dark: #141414;        /* Texto negro/carbón */
    --text-dark-muted: #5a5751;  /* Texto secundario en fondo claro */
    --text-light: #ffffff;       /* Texto blanco para máxima legibilidad */
    --text-light-muted: #a6a6a6; /* Texto secundario en fondo oscuro */
    
    --border-light: rgba(20, 20, 20, 0.12);
    --border-dark: rgba(255, 255, 255, 0.15);
    --border-dark-hover: rgba(255, 255, 255, 0.4);
    
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --max-w: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}
html {
    scroll-padding-top: 84px;
}
/* ==========================================================================
   HEADER
   ========================================================================== */
#main-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#header-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#brand-logo {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-light);
    line-height: 1.2;
}

#desktop-nav {
    display: none;
    gap: 32px;
}

#desktop-nav a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: var(--text-light-muted);
    transition: color 0.2s ease;
}

#desktop-nav a:hover {
    color: var(--text-light);
}

#header-cta-btn {
    display: none;
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 10px 22px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#header-cta-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
}

#mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.4rem;
    cursor: pointer;
    display: block;
}

#mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--bg-dark);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid var(--border-dark);
}

#mobile-nav.active {
    display: flex;
}

#mobile-nav a {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

#mobile-whatsapp-link {
    color: #25d366 !important;
    font-weight: 600;
}

/* ==========================================================================
   HERO (SIEMPRE DESTACADO EN CARBÓN)
   ========================================================================== */
#hero-section {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    padding: 170px 0 90px 0; /* Aumentado arriba para compensar los 84px del header */
    width: 100%;
    overflow: hidden;
}

#hero-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

#hero-quote-bar {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    max-width: 950px;
}

#hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4.8vw, 3.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual; /* Evita que el navegador corte palabras con guiones automáticos */
    color: var(--text-light) !important;
}

/* ==========================================================================
   ALTERNANCIA DINÁMICA DE SECCIONES (LINO / CARBÓN)
   ========================================================================== */

/* Padding uniforme para todas las secciones posteriores al Hero */
main > section:not(#hero-section) {
    padding: 95px 0;
    width: 100%;
}

/* 1. SECCIONES DE POSICIÓN PAR (Ej: #estudio, #reviews-section): FONDO LINO CLARO */
main > section:nth-of-type(even) {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-top: 1px solid var(--border-light);
}

main > section:nth-of-type(even) h2,
main > section:nth-of-type(even) h3 {
    color: var(--text-dark);
}

main > section:nth-of-type(even) p,
main > section:nth-of-type(even) #estudio-detail,
main > section:nth-of-type(even) #contacto-description {
    color: var(--text-dark-muted);
}

main > section:nth-of-type(even) #estudio-intro {
    color: var(--text-dark);
}

/* Títulos con borde en tema claro */
main > section:nth-of-type(even) #areas-heading {
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}

/* Tarjetas de Áreas en sección clara */
main > section:nth-of-type(even) #areas-list article {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

main > section:nth-of-type(even) #areas-list article h3 {
    color: var(--text-dark);
}

main > section:nth-of-type(even) #areas-list article p {
    color: var(--text-dark-muted);
}

/* Botones en sección clara */
main > section:nth-of-type(even) #estudio-cta-btn,
main > section:nth-of-type(even) #areas-cta-btn,
main > section:nth-of-type(even) #location-btn,
main > section:nth-of-type(even) #form-submit-btn {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

main > section:nth-of-type(even) #estudio-cta-btn:hover,
main > section:nth-of-type(even) #areas-cta-btn:hover,
main > section:nth-of-type(even) #location-btn:hover,
main > section:nth-of-type(even) #form-submit-btn:hover {
    background-color: #000000;
}

/* Inputs de Formulario en sección clara */
main > section:nth-of-type(even) #contact-form input,
main > section:nth-of-type(even) #contact-form select,
main > section:nth-of-type(even) #contact-form textarea {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

main > section:nth-of-type(even) #contact-form input::placeholder,
main > section:nth-of-type(even) #contact-form textarea::placeholder {
    color: #888888;
}

main > section:nth-of-type(even) #contact-form select option {
    background-color: #ffffff;
    color: var(--text-dark);
}


/* 2. SECCIONES DE POSICIÓN IMPAR (Ej: #areas, #contacto): FONDO CARBÓN OSCURO */
main > section:nth-of-type(odd):not(#hero-section) {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 1px solid var(--border-dark);
}

main > section:nth-of-type(odd):not(#hero-section) h2,
main > section:nth-of-type(odd):not(#hero-section) h3 {
    color: var(--text-light);
}

main > section:nth-of-type(odd):not(#hero-section) p,
main > section:nth-of-type(odd):not(#hero-section) #estudio-detail,
main > section:nth-of-type(odd):not(#hero-section) #contacto-description {
    color: var(--text-light-muted);
}

main > section:nth-of-type(odd):not(#hero-section) #estudio-intro {
    color: var(--text-light);
}

/* Títulos con borde en tema oscuro */
main > section:nth-of-type(odd):not(#hero-section) #areas-heading {
    color: var(--text-light);
    border-bottom: 1px solid var(--border-dark);
}

/* Tarjetas de Áreas en sección oscura */
main > section:nth-of-type(odd):not(#hero-section) #areas-list article {
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-dark);
}

main > section:nth-of-type(odd):not(#hero-section) #areas-list article:hover {
    border-color: var(--border-dark-hover);
}

main > section:nth-of-type(odd):not(#hero-section) #areas-list article h3 {
    color: var(--text-light);
}

main > section:nth-of-type(odd):not(#hero-section) #areas-list article p {
    color: var(--text-light-muted);
}

/* Botones en sección oscura */
main > section:nth-of-type(odd):not(#hero-section) #estudio-cta-btn,
main > section:nth-of-type(odd):not(#hero-section) #areas-cta-btn,
main > section:nth-of-type(odd):not(#hero-section) #location-btn,
main > section:nth-of-type(odd):not(#hero-section) #form-submit-btn {
    background-color: var(--text-light);
    color: var(--text-dark);
}

main > section:nth-of-type(odd):not(#hero-section) #estudio-cta-btn:hover,
main > section:nth-of-type(odd):not(#hero-section) #areas-cta-btn:hover,
main > section:nth-of-type(odd):not(#hero-section) #location-btn:hover,
main > section:nth-of-type(odd):not(#hero-section) #form-submit-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* Inputs de Formulario en sección oscura */
main > section:nth-of-type(odd):not(#hero-section) #contact-form input,
main > section:nth-of-type(odd):not(#hero-section) #contact-form select,
main > section:nth-of-type(odd):not(#hero-section) #contact-form textarea {
    background-color: var(--bg-dark-surface);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
}

main > section:nth-of-type(odd):not(#hero-section) #contact-form input::placeholder,
main > section:nth-of-type(odd):not(#hero-section) #contact-form textarea::placeholder {
    color: #737373;
}

main > section:nth-of-type(odd):not(#hero-section) #contact-form select option {
    background-color: #181818;
    color: #f1f5f9;
}

/* ==========================================================================
   ESTRUCTURA DE CONTENEDORES Y ELEMENTOS ESPECÍFICOS
   ========================================================================== */
#estudio-container,
#areas-container,
#reviews-container,
#location-container,
#contacto-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Estudio */
#estudio-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}

#estudio-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 20px;
}

#estudio-intro {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

#estudio-detail {
    font-size: 0.95rem;
    margin-bottom: 28px;
}

#estudio-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#estudio-profile-card {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 2px;
}

#profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

#profile-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 2px;
    border: 1px solid var(--border-light);
}

#profile-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

#profile-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark-muted) !important;
    font-weight: 600;
    margin-top: 4px;
}

#profile-credentials,
#profile-contact-info {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-dark-muted) !important;
}

#profile-credentials h4,
#profile-contact-info h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-dark) !important;
    margin-bottom: 4px;
}

/* Áreas de Trabajo */
#areas-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 48px;
    letter-spacing: 0.02em;
    padding-bottom: 20px;
}

#areas-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

#areas-list article {
    padding: 36px;
    border-radius: 2px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

#areas-list article:hover {
    transform: translateY(-2px);
}

#areas-list h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 600;
}

#areas-list p {
    font-size: 0.92rem;
    line-height: 1.65;
}

#areas-action {
    margin-top: 48px;
}

#areas-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Reseñas / Opiniones */
#reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

#google-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

#reviews-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.3rem);
}

/* Contacto */
#contacto-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

#contacto-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

#contacto-description {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#form-row-personal,
#form-row-topic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.2s ease;
}

#contact-form textarea {
    resize: none;
}

#contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a6a6a6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}

#contact-form select option {
    padding: 12px 16px;
    font-size: 0.88rem;
}

#form-submit-btn {
    border: none;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 2px;
    align-self: flex-start;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#main-footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}

#footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

#footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

#footer-brand p {
    font-size: 0.75rem;
    color: var(--text-dark-muted);
    margin-top: 4px;
    line-height: 1.6;
}

#footer-details,
#footer-contact {
    font-size: 0.85rem;
    color: var(--text-dark-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#footer-contact small {
    font-size: 0.75rem;
    color: var(--text-dark-muted);
    margin-top: 8px;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
#floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: transform 0.2s ease;
}

#floating-whatsapp-btn:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 768px) {
    #desktop-nav {
        display: flex;
    }

    #header-cta-btn {
        display: inline-block;
    }

    #mobile-menu-btn {
        display: none;
    }

    #hero-title {
        font-size: 3.2rem;
    }

    #estudio-container {
        grid-template-columns: 7fr 5fr;
        gap: 64px;
    }

    #areas-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #contacto-container {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }

    #form-row-personal,
    #form-row-topic {
        grid-template-columns: 1fr 1fr;
    }

    #footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }

    #footer-contact {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    #areas-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Negritas sutiles y elegantes en tarjetas oscuras */
#areas-list article strong,
main > section:nth-of-type(odd):not(#hero-section) strong {
    color: #e6e3da !important;  /* Blanco lino suave, no chillón */
    font-weight: 600 !important; /* Peso medio que no engorda la letra */
    letter-spacing: 0.01em;
}

#areas-list article strong {
    color: var(--accent) !important; /* Tono bronce editorial */
    font-weight: 600 !important;
}
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--accent) !important;
}

#contact-form select:invalid {
    color: #737373;
}