/* =========================================================
   FUENTES LOCALES (MONTSERRAT)
   ========================================================= */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('fonts/montserrat-v31-latin-900.woff2') format('woff2');
}

/* ==========================================
   1. COLORES DE MARCA Y VARIABLES BASE
   ========================================== */
:root {
    --primary-color: #13A189;
    /* Tu verde exacto */
    --primary-dark: #0f7d6a;
    /* Versión más oscura para hovers */
    --text-dark: #2C3E50;
    /* Color oscuro para texto principal */
    --text-light: #596773;
    /* Color gris para descripciones */
    --bg-light: #F8FBFB;
    /* Fondo suave */

    /* --- Superficies: solo dos tonos pastel para todo el sitio --- */
    --surface-soft: #f8faf9;
    /* Pastel neutro: testimonios, precios, tarjeta de contacto */
    --surface-mint: #f2f7f4;
    /* Pastel verdoso: FAQ */

    /* --- Definición estilo SaaS: borde ultrasutil de marca --- */
    --border-soft: rgba(19, 161, 137, 0.12);
    --border-hover: rgba(19, 161, 137, 0.28);

    /* --- Sombras en 2 capas: contacto corto + difusión larga --- */
    --shadow-sm: 0 1px 2px rgba(16, 45, 39, 0.04), 0 4px 12px rgba(16, 45, 39, 0.05);
    --shadow-md: 0 2px 6px rgba(16, 45, 39, 0.05), 0 10px 24px rgba(16, 45, 39, 0.08);
    --shadow-lg: 0 4px 10px rgba(16, 45, 39, 0.06), 0 18px 38px rgba(16, 45, 39, 0.12);
    /* Sobre fondos verdes hace falta más densidad para que la tarjeta despegue */
    --shadow-on-color: 0 2px 6px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.12);
    --shadow-on-color-hover: 0 4px 10px rgba(0, 0, 0, 0.08), 0 22px 44px rgba(0, 0, 0, 0.18);

    /* --- Movimiento: una sola curva para todo el sitio --- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Ritmo vertical: misma escala en todas las secciones --- */
    --section-py: 80px;
}

/* ==========================================
   2. RESETEO BÁSICO Y ESTILOS BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* Evita cualquier desplazamiento lateral */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   3. BARRA DE NAVEGACIÓN (HEADER / NAVBAR)
   ========================================== */
.navbar {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 2px rgba(16, 45, 39, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Desenfoque solo en escritorio: en móvil una capa con backdrop-filter
   sobre una cabecera fija es de los efectos que más repintado cuestan
   al hacer scroll, y ahí es donde no podemos permitirnos perder fluidez.
   Si el navegador no soporta el filtro, el 0,92 de alfa se ve casi
   idéntico a blanco sólido: no hay pérdida de legibilidad. */
@media (min-width: 769px) {
    @supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
        .navbar {
            background-color: rgba(255, 255, 255, 0.92);
            backdrop-filter: saturate(180%) blur(10px);
            -webkit-backdrop-filter: saturate(180%) blur(10px);
        }
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link,
a.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo,
.logo img,
.logo-link img {
    max-height: 42px !important;
    width: auto !important;
    display: block;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    /* Las páginas legales usan <ul>: evita los puntos de lista */
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

/* Subrayado que crece desde el centro: refuerza el enlace activo
   sin mover nada de sitio (solo escala, no reflow). */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ==========================================
   4. SECCIÓN PRINCIPAL (HERO - ESCRITORIO)
   ========================================== */
.hero-section {
    background-color: var(--primary-color);
    background-image:
        radial-gradient(circle at 82% 45%, rgba(255, 255, 255, 0.20) 0%, transparent 40%),
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #13A189 0%, #0f8471 100%);
    color: #ffffff;
    padding: 20px 0 0 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 20px;
    align-items: center;
}

.hero-text {
    text-align: center;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* H1 Título Principal */
.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: none;
}

/* Subtítulo H2 */
.hero-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: none;
    max-width: 580px;
}

/* Pill "Conoce más sobre mí" */
.hero-bio-toggle {
    margin-bottom: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-bio-toggle summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.0;
    color: #ffffff;
    background: transparent;
    border: 1.5px solid #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-bio-toggle summary::-webkit-details-marker {
    display: none;
}

.hero-bio-toggle summary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.hero-bio-toggle p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.12);
    padding: 14px 20px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
}

/* Micro-copy previo al CTA */
.hero-text .hero-cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 520px;
}

/* Botón CTA Principal WhatsApp */
.btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.0;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 10px;
    /* 2 capas: contacto corto + halo largo. El elemento principal de
       conversión debe leerse como el objeto más elevado de la página. */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 10px 26px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
}

/* Degradado que baja de tono: el botón gana profundidad sin aclararse
   (aclararlo empeoraría el contraste del texto blanco). */
.btn-whatsapp-hero:hover {
    background-color: #1eb855;
    background-image: linear-gradient(135deg, #25D366 0%, #17a94d 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 3px 8px rgba(0, 0, 0, 0.16), 0 14px 32px rgba(37, 211, 102, 0.42);
}

.btn-whatsapp-hero:active {
    transform: translateY(-1px);
}

/* Integration 3D Foto */
.hero-image {
    align-self: end;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    filter: drop-shadow(-18px 12px 22px rgba(0, 0, 0, 0.28));
    transition: filter 0.3s ease;
}

/* ==========================================
   5. BOTÓN FLOTANTE DE WHATSAPP (ESCRITORIO)
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16), 0 10px 24px rgba(0, 0, 0, 0.24);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float svg {
    flex-shrink: 0;
}

.whatsapp-float-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    background-image: linear-gradient(135deg, #25D366 0%, #17a94d 100%);
    transform: translateY(-4px);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.20), 0 4px 10px rgba(0, 0, 0, 0.18), 0 16px 34px rgba(0, 0, 0, 0.30);
}

/* ==========================================
   6. SECCIÓN CARACTERÍSTICAS (PC / DESKTOP)
   ========================================== */
.features-section {
    background-color: #ffffff;
    padding: var(--section-py) 20px;
}

.features-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 45px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 👈 3 COLUMNAS EN ORDENADOR */
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Sobre blanco, el borde ultrasutil es lo único que da límite a la
       tarjeta; la sombra sola no se vería. */
    background-color: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 32px 26px 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 12px;
}

.feature-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   7. SECCIÓN PUNTOS DE DOLOR Y SOLUCIÓN
   ========================================== */
.pain-points-section {
    background-color: var(--primary-color);
    padding: var(--section-py) 20px;
}

.pain-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.pain-grid {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 35px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.pain-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pain-card {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: var(--shadow-on-color);
    transition: var(--transition);
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-on-color-hover);
}

.pain-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.problem-card {
    border-left: 5px solid #e74c3c;
}

.problem-card h3 {
    color: #c0392b;
}

.solution-card {
    border-left: 5px solid #2ecc71;
}

.solution-card h3 {
    color: #197a41;
}

.pain-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pain-card li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.pain-card li:last-child {
    margin-bottom: 0;
}

.problem-card li::before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.solution-card li::before {
    content: "•";
    color: #2ecc71;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.pain-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pain-image-wrapper img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-on-color);
}

/* ==========================================
   8. SECCIÓN TESTIMONIOS
   ========================================== */
.testimonials-section {
    background-color: var(--surface-soft);
    padding: var(--section-py) 20px;
}

.testimonials-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 8px;
}

.testimonials-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #ffffff;
    /* Comilla gigante en marca de agua (SVG en línea, 0 peticiones).
       Va como fondo y no como ::before a propósito: así los lectores de
       pantalla no la anuncian dentro del texto del enlace. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120'%3E%3Ctext x='0' y='225' font-family='Georgia,Times New Roman,serif' font-size='300' fill='%2313A189' fill-opacity='0.08'%3E%26%238220;%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top -4px right 10px;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.author-google-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.author-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222222;
    margin: 0;
}

.author-info span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #197a41;
    font-weight: 600;
}

.testimonials-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-google-reviews {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-google-reviews:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   9. SECCIÓN CÓMO TRABAJO
   ========================================== */
.process-section {
    /* Tono oscuro de la paleta: con el verde claro el texto se quedaba
       en 2,88:1 y no se leía bien. Así el blanco llega a 5,05:1. */
    background-color: var(--primary-dark);
    padding: var(--section-py) 20px;
}

.process-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
}

.process-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #ffffff;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.process-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.process-card {
    background: #ffffff;
    padding: 35px 25px 25px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-on-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-on-color-hover);
}

/* El número acompaña a la tarjeta en la elevación: si se quedara quieto
   se despegaría del borde superior. */
.process-card:hover .process-step {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.process-step {
    position: absolute;
    top: -20px;
    background-color: #197a41;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.process-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #222222;
    margin-top: 10px;
    margin-bottom: 8px;
}

.process-time {
    display: inline-block;
    background-color: #e8f5e9;
    color: #197a41;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.process-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.93rem;
    color: #444444;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   10. SECCIÓN PRECIOS
   ========================================== */
.pricing-section {
    background-color: var(--surface-soft);
    padding: var(--section-py) 20px;
}

.pricing-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px auto;
}

.pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.featured-pricing {
    border: 2px solid #197a41 !important;
    box-shadow: 0 2px 6px rgba(25, 122, 65, 0.10), 0 12px 28px rgba(25, 122, 65, 0.16) !important;
}

.featured-pricing:hover {
    box-shadow: 0 4px 10px rgba(25, 122, 65, 0.14), 0 20px 40px rgba(25, 122, 65, 0.22) !important;
}

/* Píldora: el aro blanco la separa del borde de la tarjeta y la sombra
   propia la deja "flotando" sobre ella. */
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #197a41;
    /* Nunca más claro que #197a41: por debajo se perdería el 4,5:1 del
       texto blanco a este tamaño. */
    background-image: linear-gradient(135deg, #197a41 0%, #146333 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 2px rgba(25, 122, 65, 0.20), 0 6px 14px rgba(25, 122, 65, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.pricing-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #222222;
    margin-top: 10px;
    margin-bottom: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-box {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.price-free {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #197a41;
}

.price-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #222222;
}

.price-old {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e74c3c;
    text-decoration: line-through;
    margin-top: 2px;
}

.pricing-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

.pricing-cta {
    text-align: center;
    margin-top: 45px;
}

.btn-whatsapp-pricing {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.20), 0 10px 26px rgba(37, 211, 102, 0.32);
    transition: var(--transition);
    line-height: 1;
}

.whatsapp-icon-btn {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.btn-whatsapp-pricing:hover {
    background-color: #1eb855;
    background-image: linear-gradient(135deg, #25D366 0%, #17a94d 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 3px 8px rgba(0, 0, 0, 0.12), 0 14px 32px rgba(37, 211, 102, 0.42);
}

.btn-whatsapp-pricing:active {
    transform: translateY(-1px) scale(1.01);
}

/* ==========================================
   11. SECCIÓN RAZONES PARA CONTACTAR
   ========================================== */
.reasons-section {
    background-color: var(--primary-color);
    padding: var(--section-py) 20px;
}

.reasons-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 45px;
}

.reasons-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    max-width: 1150px;
    margin: 0 auto;
}

.reason-card {
    background: #ffffff;
    padding: 25px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-on-color);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-on-color-hover);
}

.reason-icon {
    width: 50px;
    height: 50px;
    background-color: #e8f5e9;
    color: #197a41;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.reason-card:hover .reason-icon {
    background-color: #dcefdf;
    transform: scale(1.06);
}

.reason-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   12. SECCIÓN PREGUNTAS FRECUENTES (FAQ)
   ========================================== */
.faq-section {
    background-color: var(--surface-mint);
    padding: var(--section-py) 20px;
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 45px;
}

.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Abierto: fondo ligeramente destacado + línea vertical de marca a la
   izquierda. La línea va como sombra interior (no como border-left) para
   que el texto no se desplace al abrir y cerrar. */
.faq-item[open] {
    background-color: #fbfdfc;
    border-color: var(--border-hover);
    box-shadow: inset 4px 0 0 0 var(--primary-color), var(--shadow-md);
}

.faq-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #222222;
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-dark);
}

.faq-item[open] .faq-question {
    color: var(--primary-dark);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-arrow {
    font-size: 0.75rem;
    color: var(--primary-dark);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 20px 22px;
    border-top: 1px solid var(--border-soft);
    margin-top: 5px;
}

.faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

/* Divisor difuminado en los extremos: separa sin cortar la sección */
.faq-closing-box {
    max-width: 850px;
    margin: 50px auto 0 auto;
    text-align: center;
    padding-top: 34px;
    border-top: none;
    background-image: linear-gradient(90deg, transparent 0%, rgba(19, 161, 137, 0.28) 50%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: top center;
}

.faq-closing-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #444444;
    margin-bottom: 25px;
}

.faq-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.btn-faq-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.18), 0 8px 20px rgba(37, 211, 102, 0.26);
    transition: var(--transition);
    line-height: 1;
}

.btn-faq-whatsapp svg {
    flex-shrink: 0;
}

.btn-faq-whatsapp:hover {
    background-color: #1eb855;
    background-image: linear-gradient(135deg, #25D366 0%, #17a94d 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.16), 0 3px 8px rgba(0, 0, 0, 0.10), 0 12px 26px rgba(37, 211, 102, 0.36);
}

.btn-faq-phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(16, 45, 39, 0.10), 0 8px 20px rgba(16, 45, 39, 0.14);
    transition: var(--transition);
    line-height: 1;
}

.btn-faq-phone svg {
    flex-shrink: 0;
}

.btn-faq-phone:hover {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, #0b6154 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(19, 161, 137, 0.16), 0 3px 8px rgba(16, 45, 39, 0.12), 0 12px 26px rgba(16, 45, 39, 0.20);
}

/* ==========================================
   13. SECCIÓN UBICACIÓN
   ========================================== */
.location-section {
    background-color: #ffffff;
    padding: var(--section-py) 20px;
}

.location-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 8px;
}

.location-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666666;
    text-align: center;
    margin-bottom: 45px;
}

.location-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card {
    background-color: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.info-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #222222;
    margin: 0 0 4px 0;
}

.info-item p,
.info-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
    text-decoration: none;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-location-map {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-location-map:hover {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, #0b6154 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(19, 161, 137, 0.16), var(--shadow-md);
}

.location-map-wrapper {
    width: 100%;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
}

.location-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   13-bis. PÁGINAS DE TEXTO LEGAL
   (aviso legal, privacidad, cookies)
   ========================================== */
.page-content {
    max-width: 820px;
    padding-top: 55px;
    padding-bottom: 70px;
}

.page-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 30px;
}

.page-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-content p strong {
    color: #222222;
}

.page-content ul {
    margin: 0 0 22px 0;
    padding-left: 22px;
}

.page-content li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 8px;
}

.page-content a {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================
   14. PIE DE PÁGINA (FOOTER)
   ========================================== */
.main-footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 40px 20px;
    text-align: center;
}

.footer-colegiado {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #b0b0b0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

/* Sobre el pie oscuro el verde de marca sí llega de sobra al 4,5:1;
   el #197a41 de los fondos claros aquí quedaría demasiado apagado. */
.footer-links a:hover {
    color: #4ecfb4;
}

/* ==========================================
   ADAPTACIÓN A MÓVIL (< 768px)
   ========================================== */
@media (max-width: 768px) {

    /* Misma escala de ritmo vertical, un escalón más baja.
       Todas las secciones la heredan: no hay paddings sueltos. */
    :root {
        --section-py: 48px;
    }

    /* Header compacto */
    .navbar {
        padding: 5px 0;
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .logo,
    .logo img {
        max-width: 95px;
        height: auto;
    }

    .nav-links {
        display: flex;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    /* PÁGINAS DE TEXTO LEGAL EN MÓVIL */
    .page-content {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .page-content h1 {
        font-size: 1.5rem;
        margin-bottom: 22px;
    }

    .page-content p,
    .page-content li {
        font-size: 0.9rem;
    }

    .nav-links a {
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
    }

    /* HERO MÓVIL */
    .hero-section {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .hero-text {
        display: contents;
    }

    .hero-text h1 {
        order: 1;
        font-size: 28px;
        margin-bottom: 12px;
        text-align: center;
    }

    .hero-text h2 {
        order: 2;
        font-size: 15px;
        margin-bottom: 15px;
        text-align: center;
    }

    .hero-image {
        order: 3;
        margin-bottom: 30px;
        width: 100%;
    }

    .hero-image img {
        max-width: 320px;
        margin: 0 auto;
        aspect-ratio: 450 / 652;
        /* proporción real de Principalmovil.webp */
    }

    .hero-bio-toggle {
        order: 4;
        margin-bottom: 24px;
    }

    .hero-text .hero-cta-text {
        order: 5;
        font-size: 13px;
        margin-bottom: 16px;
        text-align: center;
    }

    .btn-whatsapp-hero,
    .hero-buttons-group {
        order: 6;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-whatsapp-hero {
        font-size: 15px;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    /* BOTÓN FLOTANTE WHATSAPP EN MÓVIL */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        padding: 13px 18px;
        gap: 8px;
    }

    .whatsapp-float-text {
        font-size: 0.92rem;
    }

    /* SECCIÓN CARACTERÍSTICAS MÓVIL */
    .features-section {
        padding: var(--section-py) 15px;
    }

    .feature-card {
        padding: 26px 20px 24px 20px;
        border-radius: 16px;
    }

    .features-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* 👈 1 COLUMNA SOLO EN MÓVIL */
        gap: 35px;
    }

    .feature-icon {
        max-width: 160px;
    }

    /* PUNTOS DE DOLOR MÓVIL */
    .pain-points-section {
        padding: var(--section-py) 15px;
    }

    .pain-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .pain-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }

    .pain-card {
        padding: 20px 18px;
        width: 100%;
    }

    .pain-card h3 {
        font-size: 1.05rem;
    }

    .pain-image-wrapper {
        width: 100%;
    }

    .pain-image-wrapper img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    /* TESTIMONIOS MÓVIL */
    .testimonials-section {
        padding: var(--section-py) 15px;
    }

    .testimonials-title {
        font-size: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .testimonial-card {
        padding: 22px 18px;
        /* La marca de agua se reduce para no invadir la primera línea */
        background-size: 110px 80px;
        background-position: top -2px right 8px;
    }

    /* CÓMO TRABAJO MÓVIL */
    .process-section {
        padding: var(--section-py) 15px;
    }

    .process-title {
        font-size: 1.5rem;
    }

    .process-intro {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 35px;
    }

    /* PRECIOS MÓVIL */
    .pricing-section {
        padding: var(--section-py) 15px;
    }

    .pricing-title {
        font-size: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .pricing-card h3 {
        min-height: auto;
    }

    .pricing-cta {
        margin-top: 30px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        padding: 0 10px;
    }

    .btn-whatsapp-pricing {
        width: 100%;
        max-width: 310px;
        font-size: 0.85rem;
        padding: 14px 16px;
        box-sizing: border-box;
    }

    /* RAZONES MÓVIL */
    .reasons-section {
        padding: var(--section-py) 15px;
    }

    .reasons-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .reasons-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .reason-card {
        padding: 20px 16px;
    }

    /* FAQ MÓVIL */
    .faq-section {
        padding: var(--section-py) 15px;
    }

    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 0.92rem;
        gap: 12px;
    }

    /* En móvil la línea se afina: con 4 px comía margen al texto */
    .faq-item[open] {
        box-shadow: inset 3px 0 0 0 var(--primary-color), var(--shadow-md);
    }

    .faq-answer {
        padding: 0 16px 16px 16px;
    }

    .faq-answer p {
        font-size: 0.88rem;
    }

    .faq-buttons-container {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }

    .btn-faq-whatsapp,
    .btn-faq-phone {
        width: 100%;
        max-width: 310px;
        justify-content: center;
        box-sizing: border-box;
        font-size: 0.88rem;
        padding: 14px 15px;
    }

    /* UBICACIÓN MÓVIL */
    .location-section {
        padding: var(--section-py) 15px;
    }

    .location-title {
        font-size: 1.5rem;
    }

    .location-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .info-card {
        padding: 20px 16px;
    }

    .location-map-wrapper {
        min-height: 280px;
    }

    /* FOOTER MÓVIL */
    .main-footer {
        padding: 30px 15px 80px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

}

/* Fin del Media Query */

/* ==========================================
   15. MAPA BLOQUEADO HASTA EL CONSENTIMIENTO
   ========================================== */
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background-color: var(--surface-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    gap: 12px;
}

.map-placeholder-icon {
    font-size: 2rem;
    line-height: 1;
}

.map-placeholder p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #555555;
    line-height: 1.5;
    max-width: 340px;
    margin: 0;
}

.btn-map-consent {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-map-consent:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-placeholder-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================
   16. BANNER DE COOKIES
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background-color: #ffffff;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
    padding: 20px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #222222;
    margin: 0 0 6px 0;
}

.cookie-banner-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #444444;
    line-height: 1.55;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary-color);
    font-weight: 700;
}

/* Panel de preferencias granulares */
.cookie-prefs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0 4px 0;
    border-top: 1px solid #e2e8e5;
}

.cookie-prefs[hidden] {
    display: none;
}

.cookie-pref {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-pref:not(.cookie-pref-locked):hover {
    border-color: var(--border-hover);
    background-color: #f2f8f6;
}

.cookie-pref-locked {
    cursor: default;
    opacity: 0.75;
}

.cookie-pref input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-pref-body {
    display: flex;
    flex-direction: column;
}

.cookie-pref-body strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #222222;
}

.cookie-pref-body small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #666666;
    line-height: 1.45;
}

/* Botonera: aceptar y rechazar con el mismo peso visual (exigencia AEPD) */
.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.cookie-btn[hidden] {
    display: none;
}

.cookie-btn-accept,
.cookie-btn-reject,
.cookie-btn-save {
    background-color: var(--primary-color);
    color: #ffffff;
}

.cookie-btn-accept:hover,
.cookie-btn-reject:hover,
.cookie-btn-save:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cookie-btn-config {
    background-color: #ffffff;
    color: var(--primary-color);
}

.cookie-btn-config:hover {
    background-color: #eef7f5;
}

/* Mientras el banner está abierto, el botón flotante de WhatsApp se aparta.
   La clase la pone/quita el script del banner. */
body.cookie-banner-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
}

/* TABLA DE COOKIES */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cookies-table th {
    background-color: var(--primary-dark);
    color: #ffffff;
    text-align: left;
    padding: 12px 15px;
    font-weight: 700;
}

.cookies-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8e5;
    color: #444444;
}

.cookies-table tbody tr:hover {
    background-color: var(--surface-soft);
}

/* ==========================================
   AJUSTES MÓVIL DE LAS SECCIONES 15 Y 16
   IMPORTANTE: este bloque va al FINAL del archivo a propósito.
   Las reglas de escritorio del mapa y del banner están más arriba y,
   al tener la misma especificidad, ganarían por orden si esto se
   colocara antes. Aquí sí se aplican.
   ========================================== */
@media (max-width: 768px) {

    /* MAPA BLOQUEADO */
    .map-placeholder {
        min-height: 280px;
        padding: 20px 16px;
    }

    /* BANNER DE COOKIES */
    .cookie-banner {
        padding: 16px 15px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .cookie-banner-inner {
        gap: 12px;
    }

    .cookie-banner-text h2 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    /* Una casilla por fila: en horizontal se salían de la pantalla.
       El scroll se limita a esta lista para que los botones de abajo
       queden siempre visibles, incluso en pantallas de 640 px de alto. */
    .cookie-prefs {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0 2px 0;
        max-height: 34vh;
        overflow-y: auto;
    }

    .cookie-pref {
        padding: 10px 12px;
    }

    /* Aceptar y Rechazar comparten fila (mismo tamaño y color: exigencia
       AEPD de que rechazar sea tan fácil como aceptar). El resto, debajo. */
    .cookie-banner-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        padding: 13px 8px;
        font-size: 0.85rem;
    }

    .cookie-btn-config,
    .cookie-btn-save {
        grid-column: 1 / -1;
    }
}
/* ==========================================
   ACCESIBILIDAD: FOCO DE TECLADO
   Antes no había ningún estilo :focus. Quien navega con el
   tabulador (por discapacidad motora, o sin ratón) no veía
   dónde estaba y no podía usar la web.
   Se usa :focus-visible para que el aro NO salga al hacer clic
   con el ratón, solo al navegar con teclado.
   ========================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0a4f45;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Sobre los fondos verdes y el pie oscuro, el aro oscuro no se
   distinguiría: ahí se invierte a blanco. */
.hero-section a:focus-visible,
.hero-section summary:focus-visible,
.process-section a:focus-visible,
.process-section summary:focus-visible,
.main-footer a:focus-visible,
.whatsapp-float:focus-visible,
.btn-whatsapp-hero:focus-visible,
.btn-whatsapp-pricing:focus-visible,
.btn-faq-whatsapp:focus-visible {
    outline-color: #ffffff;
}

/* Las casillas del banner de cookies llevan su propio aro para que
   se vea también sobre la tarjeta gris claro. */
.cookie-pref input:focus-visible {
    outline: 3px solid #0a4f45;
    outline-offset: 2px;
}

/* Respeta a quien haya pedido menos animación en su sistema. */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   PÁGINA DE ERROR 404
   ========================================== */
.error-page {
    max-width: 700px;
    padding-top: 90px;
    padding-bottom: 110px;
    text-align: center;
}

.error-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.25;
    margin-bottom: 5px;
}

.error-page h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.error-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 34px;
}

.error-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error-primary,
.btn-error-whatsapp {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-error-primary {
    /* Tono oscuro: con el verde claro el texto blanco se quedaba
       en 3,24:1 y este botón es texto normal (necesita 4,5:1). */
    background-color: var(--primary-dark);
    color: #ffffff;
}

.btn-error-primary:hover {
    background-color: #0b6154;
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(19, 161, 137, 0.16), var(--shadow-md);
}

.btn-error-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.btn-error-whatsapp:hover {
    background-color: #1eb855;
    background-image: linear-gradient(135deg, #25D366 0%, #17a94d 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 12px 26px rgba(37, 211, 102, 0.36);
}

@media (max-width: 768px) {
    .error-page {
        padding-top: 55px;
        padding-bottom: 70px;
    }

    .error-code {
        font-size: 3.5rem;
    }

    .error-page h1 {
        font-size: 1.55rem;
    }

    /* Botones a lo ancho: más fáciles de pulsar con el pulgar */
    .error-buttons {
        flex-direction: column;
    }

    .btn-error-primary,
    .btn-error-whatsapp {
        width: 100%;
    }
}
