:root {
    /* Paleta de Colors Principal */
    --color-cream: #fffaf2;
    --color-beige: #f9f8f4;
    --color-terracotta: #e87d52;
    --color-terracotta-light: #f0b357;

    /* Grisos y Neutres */
    --color-black-soft: #111111;
    --color-black-pure: #000;
    --color-dark-grey: #333;
    --color-grey-dark: #444;
    --color-grey-muted: #555;
    --color-grey-light: #666;
    --color-grey-extralight: #777;
    --color-grey-hint: #888;
    --color-grey-neutral: #999;
    --color-grey-border: #ccc;
    --color-white: #fff;
    --color-white-creamy: #fffdf0;
    --color-agendar-bg: #fdfbe4;

    /* Colors de Contrast / Seccions */
    --color-bg-dark: #2c2c2c;
    --color-bg-team: #1a1a1a;
    --color-bg-purple-muted: #4b4a6d;
    --color-bg-contact: #8e8db0;
    --color-bg-table-th: #f5f4d8;

    /* Transparències y Overlays */
    --color-overlay-light: rgba(0, 0, 0, 0.4);
    --color-overlay-medium: rgba(0, 0, 0, 0.6);
    --color-overlay-dark: rgba(0, 0, 0, 0.6);
    --color-overlay-modal: rgba(0, 0, 0, 0.01);
    --color-overlay-hero: rgba(0, 0, 0, 0.4);

    /* Shadows */
    --color-shadow-tiny: rgba(0, 0, 0, 0.05);
    --color-shadow-light: rgba(0, 0, 0, 0.05);
    --color-shadow-medium: rgba(0, 0, 0, 0.08);
    --color-shadow-strong: rgba(0, 0, 0, 0.18);
    --color-shadow-modal: rgba(0, 0, 0, 0.4);
    --color-shadow-text: rgba(0, 0, 0, 0.3);

    /* Altres */
    --color-whatsapp: #25D366;
    --color-wa-shadow: rgba(0, 0, 0, 0.18);
    --color-wa-shadow-hover: rgba(0, 0, 0, 0.22);
    --color-wa-icon-bg: rgba(255, 255, 255, 0.18);
    --color-table-border: #e0dec2;

    /* Mapeig de Variables Semàntiques */
    --color-text-main: var(--color-cream);
    --color-text-secondary: #E0E0E0;
    --color-accent: var(--color-terracotta);
    --color-accent-light: var(--color-terracotta-light);
    --color-bg-purple: var(--color-bg-purple-muted);
    --color-dark-overlay: var(--color-overlay-light);

    /* Tipografia */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Header Settings */
    --header-bg: var(--color-beige);
    --header-text: var(--color-black-soft);
    --header-height-desktop: 100px;
    --header-height-shrunk: 70px;
    --header-height-mobile: 80px;
    --header-height-mobile-shrunk: 60px;
}

/* 
    El asterisco * selecciona TODOS los elementos.
    Reseteamos los márgenes y rellenos para tener control total.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Hace que el tamaño de las cajas incluya el borde y relleno */
}

/* Estilos generales para todo el cuerpo de la página */
body {
    font-family: var(--font-body);
    /* Usamos la fuente definida arriba */
    color: var(--color-text-main);
    /* Usamos el color crema */
    line-height: 1.6;
    /* Espacio entre líneas para que se lea mejor */
    background-color: var(--color-overlay-modal);
    /* Un fondo muy sutil si se ve algo */
}

/* Imágenes responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === ESTILOS DE LA SECCIÓN HERO (PORTADA) === */

.hero {
    position: relative;
    /* Necesario para poder poner la capa oscura encima */
    height: 100vh;
    /* 100vh significa 100% de la altura de la pantalla (Viewport Height) */
    width: 100%;

    /* Imagen de fondo */
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    /* La imagen cubre todo el espacio sin deformarse */
    background-position: center;
    /* La imagen se centra */
    background-repeat: no-repeat;
    /* La imagen no se repite tipo mosaico */

    /* Flexbox: Una técnica moderna para centrar cosas fácilmente */
    display: flex;
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    /* Centra horizontalmente */
    text-align: center;
    /* Alinea el texto al centro */
}

/* Esta es la capa oscura (overlay) encima de la foto */
.hero::before {
    content: '';
    /* Elemento vacío necesario */
    position: absolute;
    /* Se coloca encima de la sección .hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark-overlay);
    /* El color negro transparente */
    z-index: 1;
    /* Nivel 1: Por encima de la foto */
}

/* Contenedor del texto */
.hero-content {
    position: relative;
    z-index: 2;
    /* Nivel 2: Por encima de la capa oscura (Nivel 1) para que se vea */
    padding: 2rem;
    max-width: 800px;

    /* Animación de entrada */
    animation: fadeIn 1.5s ease-out;
    /* Nombre, duración, tipo de movimiento */
}

/* Texto pequeño "CENTRO AMALIA" */
.overline {
    font-size: 0.9rem;
    letter-spacing: 3px;
    /* Separa las letras */
    text-transform: uppercase;
    /* Todo en mayúsculas */
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Título principal H1 */
h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    /* Tamaño grande */
    font-weight: 400;
    /* Grosor normal */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    /* Sombre para que se lea mejor sobre fondos claros */
    text-shadow: 0 2px 4px var(--color-shadow-text);
}

/* Subtítulo */
.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    /* Letra finita */
    margin-bottom: 3rem;
    color: var(--color-text-main);
    opacity: 0.9;
}

/* Estilos del botón */
/* Estilos base del botón */
.btn-base {
    display: block;
    width: fit-content;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Nuevo estilo: Botón Relleno (Filled) - Para "Primera consulta gratuita" */
.btn-filled {
    background-color: var(--color-accent);
    color: var(--color-white);
    /* Texto blanco en reposo */
    border: 1px solid var(--color-accent);
}

.btn-filled:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* Nuevo estilo: Botón Borde (Outline) - Para "Reservar cita" */
.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    margin-top: 1rem;
    /* Espacio entre botones si están apilados */
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Texto descriptivo extra en el Hero (Psicología...) */
.hero-desc {
    font-size: 1.5rem;
    /* Un poco más grande */
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Texto descriptivo secundario (Adultos...) */
.hero-desc-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-main);
    margin-bottom: 2.5rem;
    /* Separación antes de los botones */
    display: block;
    letter-spacing: 1px;
}

/* Texto de confianza debajo del botón principal */
.hero-trust-text {
    font-size: 0.75rem;
    color: var(--color-text-main);
    opacity: 0.9;
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
    /* Separación con el siguiente botón si lo hubiera */
    font-weight: 300;
    letter-spacing: 0.5px;
    display: block;
}

/* Definición de la animación 'fadeIn' */
@keyframes fadeIn {
    from {
        opacity: 0;
        /* Empieza invisible */
        transform: translateY(20px);
        /* Empieza un poco más abajo */
    }

    to {
        opacity: 1;
        /* Acaba visible */
        transform: translateY(0);
        /* Acaba en su sitio */
    }
}

/* === SECCIÓN PLATAFORMAS DE CONFIANZA === */
.platform-trust {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-grey-neutral);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logos-grid img {
    max-height: 50px;
    /* Una mica més petits per elegància */
    width: auto;
    opacity: 0.4;
    /* Reduïm opacitat per a un gris més uniforme */
    filter: grayscale(100%) brightness(1.1);
    transition: all 0.4s ease;
}

.logos-grid img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .platform-trust {
        padding: 2.5rem 1rem;
    }

    .logos-grid {
        gap: 3rem;
    }

    .logos-grid img {
        max-height: 45px;
    }
}

/* === SECCIÓN DE MISIÓN (FRASE) === */

.mission {
    background-color: var(--color-bg-dark);
    /* Fondo oscuro */
    padding: 12rem 2rem;
    /* Més alçada per donar més aire i protagonisme */
    text-align: center;
    /* Texto centrado */
    color: var(--color-text-main);
    /* Color claro para el texto */
}

.mission h2 {
    font-size: 2.2rem;
    /* Tamaño grande pero no tanto como el H1 */
    font-weight: 300;
    /* Letra fina y elegante */
    line-height: 1.4;
    /* Altura de línea */
    max-width: 800px;
    /* Ancho máximo para que no se estire demasiado */
    margin: 0 auto;
    /* Centra el bloque de texto horizontalmente */
}

/* === SECCIÓN SOBRE NOSOTROS (ABOUT) === */
.about {
    background-color: var(--color-cream);
    /* Fondo crema claro */
    color: var(--color-dark-grey);
    /* Texto oscuro para que se lea sobre crema */
    display: flex;
    /* Ponemos texto e imagen lado a lado */
    flex-wrap: wrap;
    /* Si no cabe (móvil), que baje */
    padding: 4rem 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    /* Ocupa la mitad */
    padding: 2rem;
    min-width: 300px;
}

.about-text .overline {
    color: var(--color-accent);
    /* Terracota */
    opacity: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.separator {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* Imágenes de la sección About */
.about-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Cambiado a vertical (una sobre otra) */
    gap: 1.5rem;
}

.about-images img {
    width: 100%;
    height: auto;
    /* Altura automática para mantener proporción */
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

/* === SECCIÓN DE SERVICIOS (SERVICES) === */
.services {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    color: var(--color-cream);
    /* Color crema pedido por el usuario */
    text-align: center;
}

.services-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-dark);
    /* Un poco más oscuro para contraste */
    z-index: 1;
}

.services-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.separator-center {
    width: 60px;
    height: 2px;
    background-color: var(--color-cream);
    /* Color crema */
    margin: 1rem auto 3rem auto;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
}

.service-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--color-cream);
    text-transform: none;
    letter-spacing: 0.5px;
}

.service-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 280px;
    margin: 0 auto;
}

.icon-circle {
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    /* Quitamos el borde del círculo si queremos que el icono sea el protagonista, 
       pero el usuario pidió "contornos", así que mantenemos el estilo limpio. */
    border: 1px solid var(--color-cream);
    /* Borde crema */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.icon-circle svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-cream);
    /* Color del trazo crema */
    stroke-width: 1.5;
    fill: none;
    /* Sin relleno, solo contorno */
}

/* === CONTACTO Y FOOTER === */
.contact-section {
    background-color: var(--color-cream);
    color: var(--color-dark-grey);
}

.contact-info-block {
    padding: 4rem 2rem;
    text-align: center;
    background-color: transparent;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.detail-item h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.detail-item p {
    color: var(--color-dark-grey);
}

/* Estilos para el contenedor del formulario de HubSpot */
#hubspot-form-container {
    background: var(--color-white);
    padding: 2rem;
    margin: 3rem auto 0;
    /* Margen auto a los lados para centrar */
    border-radius: 8px;
    color: var(--color-black-pure);
    max-width: 600px;
    /* Ancho máximo para que no sea enorme */
    width: 90%;
    /* Ancho en móvil (dejando margen) */
}

/* === RESPONSIVE (MÓVIL) === */
/* Reglas que solo aplican si la pantalla es menor de 768px (tablets y móviles) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* Hacemos el título más pequeño en móvil */
    }

    /* En móvil, reducimos un poco el relleno de la sección de misión */
    .mission {
        padding: 4rem 1.5rem;
    }

    .about,
    .contact-split {
        flex-direction: column;
    }
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-modal);
    /* Fosc/translúcid */
    backdrop-filter: blur(4px);
    /* Efecte premium de desenfocament */
    display: none;
    /* Amagat per defecte */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--color-white);
    color: var(--color-dark-grey);
    width: 100%;
    max-width: 550px;
    padding: 3rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px var(--color-shadow-modal);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 0.5;
    color: var(--color-grey-neutral);
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-title {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.modal-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-dark-grey);
    line-height: 1.4;
}

.modal-info {
    font-size: 0.9rem;
    color: var(--color-grey-light);
    margin-bottom: 2rem;
    display: block;
}

/* Ajustes para el formulario de HubSpot dentro del modal */
#hubspot-modal-form {
    width: 100%;
    margin-top: 1rem;
}

/* Estilos para el botón cuando es trigger */
.modal-trigger {
    border: none;
    font-family: inherit;
}

/* Responsive */
@media (max-width: 500px) {
    .modal-card {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

/* === ABOUT CTA (SOFT CONVERSION) === */
.about-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    animation: fadeIn 1.5s ease-out;
}

.cta-phrase-ancora {
    color: var(--color-dark-grey);
    /* Mateix color que el paràgraf */
    font-size: 1rem;
    margin-top: 2rem;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-phrase-ancora:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    opacity: 0.8;
}

.btn-secondary-simple {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.5px;
    margin: 0;
    border-radius: 4px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-simple:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.cta-microcopy {
    font-size: 0.75rem;
    color: var(--color-grey-extralight);
    margin: -0.5rem 0 0 0;
    opacity: 0.9;
    font-weight: 300;
}

/* === CONVERSION BRIDGE === */
.conversion-bridge {
    background-color: var(--color-cream);
    padding: 6rem 2rem;
    text-align: center;
}

.bridge-content {
    max-width: 800px;
    margin: 0 auto;
}

.bridge-content h2 {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.bridge-content p {
    font-size: 1.15rem;
    color: var(--color-dark-grey);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* === REFUERZO FORMULARIO CONTACTO === */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--color-dark-grey);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-header p {
    font-size: 1rem;
    color: var(--color-dark-grey);
    font-weight: 300;
}

.form-microcopy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-dark-grey);
    margin-top: 1.5rem;
    font-weight: 300;
}

/* Ajustes adicionales para el contenedor del formulario */
#hubspot-form-container {
    max-width: 600px;
    margin: 2rem auto 0 auto;
}

/* === GLOBAL FOOTER === */
.main-footer {
    background-color: var(--color-beige);
    /* Mismo beige suave que el conversion bridge */
    padding: 4rem 2rem;
    color: var(--color-bg-purple-muted);
    text-align: center;
    border-top: 1px solid var(--color-shadow-tiny);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

.footer-whatsapp .whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-whatsapp);
    /* WhatsApp Green */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.footer-whatsapp .whatsapp-link:hover {
    transform: scale(1.05);
}

.footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--color-bg-purple-muted);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-legal span {
    color: var(--color-grey-border);
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 1rem;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal span {
        display: none;
    }
}

/* === PRICING PAGE === */
.pricing-page {
    background-color: var(--color-text-main);
    /* Soft pink/lilac matching the image */
    min-height: 100vh;
    padding: 4rem 2rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-dark-grey);
}

.pricing-title {
    text-align: center;
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.pricing-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px var(--color-shadow-tiny);
    height: 100%;
}

.pricing-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-black-pure);
    font-weight: 700;
}

.pricing-card .card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes price down */
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--color-black-pure);
}

.pricing-card .features-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.pricing-card ul li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.pricing-card ul li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
}

.btn-pricing {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: auto;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-pricing:hover {
    background-color: var(--color-terracotta);
    /* Slightly darker terracotta */
}


/* Quan ja no hi caben 4 → forcem 2 columnes (evita el 3+1) */
@media (min-width: 700px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mòbil → 1 columna */
@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===============================
   WHATSAPP FLOATING BUTTON
   =============================== */

.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: var(--color-whatsapp);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;

    padding: 12px 14px;
    border-radius: 999px;

    box-shadow: 0 10px 24px var(--color-shadow-strong);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px var(--color-shadow-strong);
}

.wa-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--color-wa-icon-bg);
    font-size: 20px;
}

/* MÒBIL */
@media (max-width: 480px) {
    .wa-float {
        right: 12px;
        bottom: 12px;
        padding: 10px;
    }

    .wa-text {
        display: none;
    }

    .wa-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

/* === REUSABLE HEADER STYLES === */



.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    color: var(--header-text);
    z-index: 2000;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px var(--color-shadow-tiny);
}

/* Header when shrunk on scroll */
.site-header.shrunk {
    height: var(--header-height-shrunk);
    box-shadow: 0 4px 20px var(--color-shadow-medium);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-left .logo {
    text-decoration: none;
    color: var(--header-text);
    transition: all 0.4s ease;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.shrunk .logo-text {
    font-size: 1.2rem;
}

/* Center Navigation (Hidden for now as requested) */
.header-center {
    display: none;
    /* Comentat/No visible */
}

/* Right Side */
.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-grey-light);
    letter-spacing: 1px;
}

.lang-option {
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-option.active {
    color: var(--header-text);
    font-weight: 600;
}

.lang-option:hover:not(.active) {
    color: var(--color-accent);
}

.lang-separator {
    color: var(--color-grey-border);
    font-weight: 300;
}

/* Button CTA */
.btn-header-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-accent);
}

.btn-header-cta:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.shrunk .btn-header-cta {
    padding: 0.6rem 1.4rem;
    font-size: 0.75rem;
}

/* === Fixed header offset (solo cuando el header está activo) === */
body {
    padding-top: 0;
}

body.has-fixed-header {
    padding-top: var(--header-height-desktop);
}

@media (max-width: 768px) {
    body.has-fixed-header {
        padding-top: var(--header-height-mobile);
    }
}

/* Ajustes Móvil */
@media (max-width: 768px) {
    :root {
        --header-height-desktop: var(--header-height-mobile);
        --header-height-shrunk: var(--header-height-mobile-shrunk);
    }

    .header-container {
        padding: 0 1.2rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .shrunk .logo-text {
        font-size: 1rem;
    }

    .header-right {
        gap: 1rem;
    }

    .lang-selector {
        display: none;
        /* Minimal en móvil */
    }

    .btn-header-cta {
        padding: 0.5rem 0.9rem;
        font-size: 0.7rem;
    }

    .shrunk .btn-header-cta {
        padding: 0.4rem 0.7rem;
        font-size: 0.65rem;
    }
}

/* ===============================
   SISTEMA DE DISEÑO PÁGINAS LEGALES
   =============================== */

/* Forzamos el fondo crema en todas las páginas legales para coherencia con la sección "About" */
.legal-page-body {
    background-color: var(--color-cream) !important;
    color: var(--color-dark-grey);
    /* Mismo color de text que la sección 'About' */
}

.legal-container {
    max-width: 850px;
    margin: 4rem auto 8rem auto;
    padding: 0 2rem;
    line-height: 1.8;
}

/* Título principal (H1): estilo similar al H2 de la Home */
.legal-container h1 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
    padding-bottom: 1.5rem;
    text-transform: none;
    /* Mantener naturalidad */
    letter-spacing: normal;
}

/* Línea decorativa bajo el H1 */
.legal-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Subtítulos (H2): estilo neto y profesional */
.legal-container h2 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
}

.legal-container h3 {
    font-size: 1.2rem;
    color: var(--color-dark-grey);
    margin-top: 2rem;
}

.legal-container p,
.legal-container li {
    font-size: 1rem;
    color: var(--color-dark-grey);
    margin-bottom: 1.2rem;
}

/* Enlaces dentro del texto legal */
.legal-container a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-container a:hover {
    border-bottom: 1px solid var(--color-accent);
}

/* Botón Volver al inicio (estilo minimalista) */
.back-home {
    display: inline-flex;
    align-items: center;
    margin-bottom: 3rem;
    color: var(--color-grey-extralight);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.back-home:hover {
    color: var(--color-accent);
}

/* Tablas para Cookies */
.legal-container table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border: 1px solid var(--color-table-border);
    border-radius: 8px;
    overflow: hidden;
}

.legal-container th {
    background-color: var(--color-bg-table-th);
    color: var(--color-accent);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.legal-container td {
    padding: 15px;
    border-top: 1px solid var(--color-table-border);
    color: var(--color-grey-muted);
    background-color: var(--color-white-creamy);
}

@media (max-width: 600px) {
    .legal-container {
        margin: 2rem auto 4rem auto;
    }

    .legal-container h1 {
        font-size: 2rem;
    }
}

/* === ESTILOS PÁGINA AGENDAR / LANDING === */
.agendar-page {
    background-color: var(--color-agendar-bg) !important;
}

.landing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-visual {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-dark-grey);
}

.header-visual h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-accent);
}

.header-visual .sub-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.header-visual .quick-contact {
    font-size: 1rem;
    margin-top: 1rem;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-accent);
}

.contact-btn .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.phone-btn {
    background-color: transparent;
    color: var(--color-accent);
}

.phone-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .header-visual h1 {
        font-size: 1.8rem;
    }

    .header-visual .sub-text {
        font-size: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

.hubspot-embed-box {
    width: 100%;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--color-shadow-tiny);
    overflow: hidden;
    margin-bottom: 4rem;
}

.landing-footer {
    text-align: center;
    padding-bottom: 3rem;
    opacity: 0.8;
}

.landing-footer a {
    color: var(--color-bg-purple, #4b4a6d);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 0.5rem;
    transition: opacity 0.2s;
}

.landing-footer span {
    color: var(--color-grey-border);
}