/* ========================================
   SILIA ALEGRÍA M.D.
   Biofílico · Moderno · Terapéutico
   ======================================== */

/* Import Tenor Sans for titles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Tenor+Sans&display=swap');

/* Paleta inspirada en la montaña */
:root {
    /* Colores principales */
    --deep-teal: #0F3F3B;
    --sea-green: #1E6F66;
    --sage: #88A47C;
    --sand: #D5C19B;
    --light-beach: #E7E1D7;
    --warm-cream: #F5F0E8;
    --teal-light: #E8F2F0;
    
    /* Fondo principal */
    --bg-primary: #F8F5F0;
    --bg-secondary: #F0EBE3;
    --bg-warm: #E8E2D8;
    
    /* Texto */
    --text-dark: #1A3A36;
    --text-primary: #0F3F3B;
    --text-secondary: #3D6B63;
    --text-light: #5A8A80;
    --text-muted: #7A9A90;
    
    /* Acentos */
    --accent: #1E6F66;
    --accent-light: #88A47C;
    --accent-warm: #D5C19B;
    
    /* Tipografía */
    --font-heading: 'Tenor Sans', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    
    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transiciones */
    --transition: 0.3s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(15, 63, 59, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 63, 59, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 63, 59, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   NAVIGATION - Minimal with dropdown
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 63, 59, 0.85);
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

/* Logo with mountain icon - WHITE */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand-icon {
    width: 28px;
    height: 28px;
    color: white;
    flex-shrink: 0;
}

.nav-brand-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.02em;
}

/* Hamburger menu button - WHITE */
.nav-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: white;
    font-size: 24px;
    line-height: 1;
    transition: var(--transition);
    z-index: 1001;
}

.nav-menu-toggle:hover {
    opacity: 0.8;
}

/* Dropdown menu - positioned relative to nav-container */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--space-lg);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(15, 63, 59, 0.2);
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 999;
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown-list li {
    margin: 0;
    padding: 0;
}

.nav-dropdown-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 400;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-dropdown-list a:hover {
    background: var(--bg-warm);
    color: var(--deep-teal);
}

.nav-dropdown-cta {
    display: block;
    margin-top: var(--space-sm);
    padding: 0.875rem 1rem;
    background: #1a5f5f;
    color: white;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-dropdown-cta:hover {
    background: #145050;
    transform: translateY(-1px);
}

/* Legacy styles - hide old menu */
.nav-menu {
    display: none;
}

.nav-toggle {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 63, 59, 0.88) 0%,
        rgba(15, 63, 59, 0.6) 35%,
        rgba(15, 63, 59, 0.25) 60%,
        transparent 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: calc(72px + var(--space-xl)) var(--space-lg) var(--space-2xl);
}

.hero-box {
    max-width: 640px;
    padding: var(--space-xl);
    background: rgba(15, 63, 59, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}

.hero-description-secondary {
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 1.75rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--sand);
    color: var(--deep-teal);
}

.btn-primary:hover {
    background: #E5D5B0;
    transform: translateY(-2px);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   SECTIONS - Generales
   ======================================== */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

/* Section header con icono */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.section-header-icon {
    width: 32px;
    height: 32px;
    color: var(--sea-green);
    flex-shrink: 0;
    stroke-width: 1.5;
}

.section-header-icon-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Icono Mi enfoque */
.section-header img[src*="icon-enfoque"] {
    width: 42px;
    height: 42px;
}

/* Iconos amarillos para títulos de sección */
.section-header-icon-img.yellow-icon,
.herramientas-transition .section-header-icon-img,
.transition-strip .section-header-icon-img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(31%) saturate(459%) hue-rotate(357deg) brightness(94%) contrast(87%);
}

.section-header-with-icon {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.enfoque-icon-img {
    width: 55px;
    height: 40px;
    object-fit: contain;
    margin-bottom: var(--space-sm);
}

.herramienta-tag-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sea-green);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.25;
}

.section-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: var(--space-sm);
    max-width: 700px;
}

/* ========================================
   SOBRE MÍ - Layout original: texto izquierda, foto derecha
   ======================================== */
.section-about {
    background: var(--bg-primary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
    align-items: start;
}

.about-content {
    order: 1;
}

.about-image-container {
    order: 2;
    position: sticky;
    top: 100px;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--shadow-lg);
}

.about-text-flow {
    margin-bottom: var(--space-lg);
}

.about-text-flow p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.about-highlight {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--sea-green);
    line-height: 1.7;
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-warm);
    border-left: 3px solid var(--sage);
    max-width: 100%;
}

/* ========================================
   MI ENFOQUE - Con iconos
   ======================================== */
.section-enfoque {
    background: var(--bg-secondary);
}

.enfoque-header {
    margin-bottom: var(--space-xl);
}

.enfoque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.enfoque-item {
    position: relative;
    padding-top: var(--space-md);
}

.enfoque-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sea-green), var(--sage));
}

.enfoque-icon {
    width: 40px;
    height: 40px;
    color: var(--sea-green);
    margin-bottom: var(--space-sm);
    stroke-width: 1.5;
}

.enfoque-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.enfoque-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.enfoque-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

/* ========================================
   NEUROFEEDBACK
   ======================================== */
.section-neurofeedback {
    background: var(--deep-teal);
    color: white;
}

.section-neurofeedback .section-header-icon,
.section-neurofeedback .section-label {
    color: var(--sand);
}

.section-neurofeedback .section-header-icon-img {
    width: 42px;
    height: 42px;
    filter: brightness(0) saturate(100%) invert(77%) sepia(31%) saturate(459%) hue-rotate(357deg) brightness(94%) contrast(87%);
}

.section-neurofeedback .section-title {
    color: white;
}

.neurofeedback-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
}

.neurofeedback-text p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.neurofeedback-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.neurofeedback-box {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neurofeedback-box h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.benefits-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    position: relative;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--sage);
    border-radius: 50%;
}

/* ========================================
   HERRAMIENTAS - Con transición imagen
   ======================================== */
.section-herramientas {
    background: var(--teal-light);
}

.herramientas-transition {
    position: relative;
    height: 280px;
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.herramientas-transition-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.herramientas-transition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 63, 59, 0.9) 0%,
        rgba(15, 63, 59, 0.6) 50%,
        rgba(15, 63, 59, 0.3) 100%
    );
}

.herramientas-transition-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
}

.herramientas-transition .section-label {
    color: var(--sand);
}

.herramientas-transition .section-title {
    color: white;
}

.herramientas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.herramienta-card {
    padding: var(--space-lg);
    background: white;
    border: 1px solid rgba(15, 63, 59, 0.08);
    transition: var(--transition);
}

.herramienta-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.herramienta-card-wide {
    grid-column: span 2;
}

.herramienta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sea-green);
    margin-bottom: var(--space-sm);
}

.herramienta-tag-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.herramienta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.herramienta-note {
    font-size: 0.8125rem;
    color: var(--sage);
    font-weight: 400;
}

.herramienta-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

/* ========================================
   A QUIÉN ACOMPAÑO - Con iconos
   ======================================== */
.section-aquien {
    background: var(--bg-secondary);
}

.aquien-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
}

.aquien-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.conditions-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.condition-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: white;
    border-left: 3px solid var(--sea-green);
}

.condition-icon {
    width: 24px;
    height: 24px;
    color: var(--sage);
    flex-shrink: 0;
    stroke-width: 1.5;
}

.condition-content h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.condition-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.aquien-note {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(15, 63, 59, 0.1);
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   TRANSITION STRIPS
   ======================================== */
.transition-strip {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.transition-strip-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.transition-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 63, 59, 0.85) 0%,
        rgba(15, 63, 59, 0.5) 60%,
        transparent 100%
    );
}

.transition-strip-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
}

.transition-strip .section-label {
    color: var(--sand);
}

.transition-strip .section-title {
    color: white;
}

/* Iconos más grandes en franjas de transición */
.transition-strip .section-header-icon-img {
    width: 48px;
    height: 48px;
}

/* ========================================
   RESULTADOS
   ======================================== */
.section-resultados {
    background: var(--bg-primary);
}

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.resultado-card {
    padding: var(--space-lg);
    background: white;
    border-top: 2px solid var(--sea-green);
    transition: var(--transition);
}

.resultado-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.resultado-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sage);
    margin-bottom: var(--space-xs);
}

.resultado-card h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.resultado-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.resultados-note {
    text-align: center;
    margin-top: var(--space-xl);
    padding: var(--space-md);
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-warm);
}

/* ========================================
   FAQ
   ======================================== */
.section-faq {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    margin-bottom: var(--space-sm);
    background: white;
    border: 1px solid rgba(15, 63, 59, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
}

.faq-text {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text-dark);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    color: var(--sea-green);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 var(--space-lg) var(--space-md);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

/* ========================================
   CTA / CONTACTO
   ======================================== */
.section-cta {
    background: var(--deep-teal);
    padding: var(--space-3xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content .section-label {
    color: var(--sand);
}

.cta-content .section-title {
    color: white;
    margin-bottom: var(--space-lg);
}

.cta-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.cta-text-secondary {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--sand);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--deep-teal);
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 400;
    color: white;
}

.footer-tag {
    font-size: 0.6875rem;
    color: var(--sage);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
}

.footer-nav a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
    color: var(--sand);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   CHAT WIDGET
   ======================================== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--sea-green);
    color: white;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.chat-button:hover {
    background: var(--deep-teal);
    transform: translateY(-2px);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(15, 63, 59, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--sea-green);
    color: white;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.chat-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.chat-message.bot {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid rgba(15, 63, 59, 0.1);
}

.chat-message.user {
    align-self: flex-end;
    background: var(--sea-green);
    color: white;
}

.chat-input-area {
    padding: var(--space-md);
    background: white;
    border-top: 1px solid rgba(15, 63, 59, 0.08);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(15, 63, 59, 0.15);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--sea-green);
}

.chat-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sea-green);
    color: white;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.chat-send:hover {
    background: var(--deep-teal);
}

.chat-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: var(--space-sm);
    padding: 10px;
    color: var(--sea-green);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.chat-whatsapp-btn:hover {
    background: var(--bg-warm);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-image-container {
        position: relative;
        top: 0;
        order: 1;
        max-width: 400px;
        margin: 0 auto var(--space-lg);
    }
    
    .about-content {
        order: 2;
    }
    
    .about-highlight {
        grid-column: 1;
    }
    
    .enfoque-grid,
    .resultados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .aquien-layout,
    .neurofeedback-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile dropdown - fullscreen style */
    .nav-dropdown {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: auto;
        margin-top: 0;
        transform: translateX(100%);
        opacity: 1;
        visibility: visible;
        border-radius: 0;
        padding: var(--space-xl) var(--space-lg);
        transition: transform 0.3s ease;
        background: rgba(255, 255, 255, 0.98);
        z-index: 998;
    }
    
    .nav-dropdown.active {
        transform: translateX(0);
    }
    
    .nav-dropdown-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-dropdown-list a {
        padding: 1rem;
        font-size: 1.125rem;
        text-align: center;
    }
    
    .nav-dropdown-cta {
        margin-top: var(--space-lg);
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero {
        align-items: center;
    }
    
    .hero-content {
        padding: calc(72px + var(--space-lg)) var(--space-md) var(--space-xl);
    }
    
    .hero-box {
        padding: var(--space-lg);
    }
    
    .enfoque-grid,
    .resultados-grid,
    .herramientas-grid {
        grid-template-columns: 1fr;
    }
    
    .herramienta-card-wide {
        grid-column: span 1;
    }
    
    /* Layout móvil para títulos de herramientas */
    .herramienta-card h3 {
        display: block;
    }
    
    .herramienta-card h3 .herramienta-note {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
    }
    
    .footer-top {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .chat-window {
        width: calc(100vw - 48px);
        max-width: 340px;
        right: -12px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-brand-text {
        font-size: 0.9375rem;
    }
}
