/* ========================================
   Blue Moon Cibertech
   Consultoría ISO & ENS | Ciberseguridad
   Stylesheet Principal
   ======================================== */

/* ----------------------------------------
   1. VARIABLES Y CONFIGURACIÓN
   ---------------------------------------- */
:root {
    /* Colores primarios - Blue Moon Cibertech */
    --primary: #0d1b3e;
    --primary-light: #1a2f5e;

    /* Colores de acento - Royal Blue */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #60a5fa;

    /* Secondary - Moon Glow Cyan */
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;

    /* Colores de estado */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;

    /* Fondos */
    --bg: #f0f4ff;
    --bg-alt: #e8efff;
    --white: #ffffff;

    /* Textos */
    --text: #0d1b3e;
    --text-light: #4b5b7e;
    --text-muted: #8494b5;

    /* Bordes y sombras */
    --border: #dde4f0;
    --shadow-sm: 0 1px 2px rgba(13,27,62,0.06);
    --shadow: 0 4px 6px -1px rgba(13,27,62,0.12);
    --shadow-lg: 0 10px 15px -3px rgba(13,27,62,0.12);
    --shadow-xl: 0 25px 50px -12px rgba(13,27,62,0.18);

    /* Gradientes - Blue Moon Signature */
    --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    --gradient-hero: linear-gradient(160deg, #0d1b3e 0%, #1a2f5e 60%, #0c3a6e 100%);
}

/* ----------------------------------------
   2. RESET Y BASE
   ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* ----------------------------------------
   3. LAYOUT Y CONTENEDORES
   ---------------------------------------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------------------------------
   4. UTILIDADES
   ---------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }

/* ----------------------------------------
   5. BOTONES
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 600;
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ----------------------------------------
   6. NAVEGACIÓN
   ---------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
}

/* Enlaces de navegación */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg);
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    background: var(--bg);
}

/* Dropdown de navegación */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-btn:hover {
    background: var(--bg);
    color: var(--accent);
}

.dropdown-chevron {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 10px;
    min-width: 290px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s;
}

.nav-dropdown-item:hover {
    background: var(--bg);
    color: var(--accent);
}

.nav-dropdown-item:hover strong {
    color: var(--accent);
}

.nav-dropdown-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    transition: color 0.15s;
}

.nav-dropdown-item small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.dropdown-item-icon {
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 9px;
    flex-shrink: 0;
}

/* Menú móvil - secciones */
.mobile-nav-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.mobile-nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 4px 16px 6px;
}

/* CTA de navegación */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-phone {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-phone:hover {
    color: var(--accent);
    background: var(--bg);
}

/* Menú móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ----------------------------------------
   7. HERO SECTION
   ---------------------------------------- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-value span {
    color: var(--accent);
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ----------------------------------------
   8. FORMULARIO HERO
   ---------------------------------------- */
.hero-form-wrapper {
    animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.form-note a {
    color: var(--accent);
    text-decoration: none;
}

/* Checkbox personalizado */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-checkbox span {
    flex: 1;
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   9. SECCIÓN DE CONFIANZA (TRUST)
   ---------------------------------------- */
.trust-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.trust-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 32px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.trust-logo:hover {
    opacity: 1;
}

/* ----------------------------------------
   10. SECCIÓN DE ESTADÍSTICAS
   ---------------------------------------- */
.stats-section {
    padding: 80px 0;
    background: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}

/* ----------------------------------------
   11. SECCIÓN DE SERVICIOS
   ---------------------------------------- */
.services {
    padding: 100px 0;
    background: var(--bg);
}

/* Encabezado de sección (reutilizable) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Tarjetas de servicio */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 36px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-description {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.service-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 10px;
}

/* ----------------------------------------
   12. SECCIÓN DE PROCESO
   ---------------------------------------- */
.process {
    padding: 100px 0;
    background: white;
}

.process-timeline {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin: 0 auto 24px;
    position: relative;
    transition: all 0.3s;
}

.process-step:hover .step-number {
    background: var(--accent);
    color: white;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/* ----------------------------------------
   13. SECCIÓN DE BENEFICIOS
   ---------------------------------------- */
.benefits {
    padding: 100px 0;
    background: var(--bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.benefits-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.benefits-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.benefit-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(8px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Imagen de beneficios */
.benefits-image {
    position: relative;
}

.benefits-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

/* Kit Funding Banner — ISO 27001 / ENS sections */
.kit-funding-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 14px 18px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 8px;
}

.kit-funding-banner:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
}

.kit-funding-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.kit-funding-title {
    font-size: 14px;
    font-weight: 700;
    color: #fde68a;
    line-height: 1.2;
}

.kit-funding-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

.kit-funding-arrow {
    margin-left: auto;
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.kit-funding-banner:hover .kit-funding-arrow {
    transform: translateX(4px);
}

/* Expertise Panel — Benefits section */
.expertise-panel {
    width: 100%;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.expertise-panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 14px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.expertise-item:hover { background: var(--bg); }

.expertise-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.expertise-info { flex: 1; min-width: 0; }

.expertise-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.expertise-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.expertise-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(37,99,235,0.08);
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.expertise-footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: var(--bg);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ----------------------------------------
   14. SECCIÓN DE TESTIMONIOS
   ---------------------------------------- */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--warning);
}

.testimonial-text {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* ----------------------------------------
   15. SECCIÓN FAQ
   ---------------------------------------- */
.faq {
    padding: 100px 0;
    background: var(--bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    font-family: inherit;
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--bg);
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ----------------------------------------
   16. SECCIÓN CTA
   ---------------------------------------- */
.cta-section {
    padding: 100px 0;
    background: var(--primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 19px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------
   17. FOOTER
   ---------------------------------------- */
.footer {
    background: #0a0f1a;
    color: white;
    padding: 80px 0 0;
}

/* Footer con grid completo */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer simplificado */
.footer-simple {
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-simple .footer-brand {
    max-width: 500px;
    margin: 0 auto;
}

.footer-simple .logo {
    justify-content: center;
}

/* Brand del footer */
.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 700;
}

.social-link:hover {
    background: var(--accent);
}

/* Columnas del footer */
.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

/* Parte inferior del footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

/* ----------------------------------------
   18. MODALES
   ---------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border);
}

.modal-content {
    padding: 32px;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 32px 0 16px;
}

.modal-content h3:first-child {
    margin-top: 0;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-content ul {
    color: var(--text-light);
    margin: 16px 0;
    padding-left: 24px;
}

.modal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ----------------------------------------
   19. BANNER DE COOKIES
   ---------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    z-index: 1500;
    display: none;
    border-top: 1px solid var(--border);
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ----------------------------------------
   20. BOTÓN SCROLL TO TOP
   ---------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
}

/* ----------------------------------------
   21. ANIMACIONES
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Clases de animación fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------
   22. MENÚ MÓVIL FUNCIONAL
   ---------------------------------------- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: block;
    padding: 13px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-section a {
    border-bottom: none;
    font-size: 14px;
    padding: 11px 16px;
    color: var(--text-light);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: var(--bg);
    color: var(--accent);
}

.mobile-nav .mobile-cta {
    margin-top: 12px;
    background: var(--gradient);
    color: white !important;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    border-bottom: none !important;
}

/* Sección ENS */
.ens-section {
    padding: 80px 0;
}

/* Grid sección ENS */
.ens-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ens-section h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

/* ENS badge especial */
.ens-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Trust section badges */
.trust-badges-grid {
    display: flex !important;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.trust-badge {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    min-width: 130px;
    max-width: 160px;
    flex: 0 0 auto;
}

.trust-badge:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.trust-badge-icon {
    font-size: 28px;
    line-height: 1;
}

.trust-badge-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    line-height: 1.3;
}

/* Sector cards */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.sector-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.sector-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(6px);
    border-color: var(--accent);
}

.sector-icon {
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.sector-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.sector-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Hero visual mejorado */
.hero-visual {
    position: relative;
}

.cert-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.cert-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(-4px);
}

.cert-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cert-card-icon.blue { background: rgba(37, 99, 235, 0.12); }
.cert-card-icon.cyan { background: rgba(6, 182, 212, 0.12); }
.cert-card-icon.purple { background: rgba(124, 58, 237, 0.12); }
.cert-card-icon.green { background: rgba(16, 185, 129, 0.12); }

.cert-card-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.cert-card-info p {
    font-size: 13px;
    color: var(--text-light);
}

.cert-card-status {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ----------------------------------------
   22. RESPONSIVE - TABLET (max-width: 1024px)
   ---------------------------------------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-form {
        padding: 32px;
        max-width: 100%;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    /* En tablet el hero ya es 1 columna — la animación debe ser vertical */
    .hero-form-wrapper {
        animation: fadeInUp 0.8s ease 0.2s both;
    }

    .nav-phone {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ens-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ens-section {
        padding: 60px 0;
    }

    .ens-section h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 36px;
    }

    .benefits-content h2 {
        font-size: 36px;
    }

    .cta-section h2 {
        font-size: 40px;
    }
}

/* ----------------------------------------
   23. RESPONSIVE - MÓVIL (max-width: 768px)
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Navegación */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-cta .btn {
        display: none;
    }

    .nav-phone {
        display: none;
    }

    /* Cancelar animación horizontal para evitar overflow */
    .hero-form-wrapper {
        animation: fadeInUp 0.8s ease 0.2s backwards;
    }

    /* Hero */
    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stat-value {
        font-size: 28px;
    }

    .hero-form {
        padding: 24px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Secciones */
    .services,
    .process,
    .benefits,
    .testimonials,
    .faq,
    .cta-section,
    .stats-section {
        padding: 70px 0;
    }

    .trust-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Grids */
    .services-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefits-image {
        order: -1;
    }

    /* Proceso */
    .process-timeline {
        flex-direction: column;
        gap: 32px;
    }

    .process-timeline::before {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 36px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Títulos */
    .section-title {
        font-size: 30px;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .benefits-content h2 {
        font-size: 30px;
    }

    /* Cookies */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    /* Formulario */
    .form-row {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .ens-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ens-section {
        padding: 50px 0;
    }

    .ens-section h2 {
        font-size: 26px;
    }

    .cert-cards-stack {
        gap: 12px;
    }

    /* Trust logos */
    .trust-logos {
        gap: 24px;
    }

    .trust-logo {
        font-size: 18px;
    }

    /* Testimonios */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Scroll top */
    .scroll-top {
        bottom: 80px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ----------------------------------------
   23b. RESPONSIVE - MÓVIL PEQUEÑO (max-width: 640px)
   ---------------------------------------- */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stat {
        flex: 1;
        min-width: 80px;
    }

    .hero-stat-value {
        font-size: 24px;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    .hero-form {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .form-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-description {
        font-size: 16px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .benefits-content h2 {
        font-size: 26px;
    }

    .benefits-content p {
        font-size: 16px;
    }

    .service-card {
        padding: 24px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .step-description {
        max-width: 100%;
    }

    .hero-badge {
        font-size: 13px;
        padding: 6px 12px;
    }

    .section-badge {
        font-size: 13px;
    }

    .trust-badge {
        min-width: 110px;
        padding: 12px 16px;
    }

    .trust-badge-icon {
        font-size: 24px;
    }

    .footer {
        padding: 60px 0 0;
    }

    /* Expertise panel — 640px */
    .expertise-item {
        gap: 10px;
        padding: 12px 14px;
    }

    .expertise-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .expertise-name {
        font-size: 12px;
    }

    .expertise-desc {
        font-size: 10px;
    }

    .expertise-footer {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
    }
}

/* ----------------------------------------
   23c. RESPONSIVE - MÓVIL MUY PEQUEÑO (max-width: 480px)
   ---------------------------------------- */
@media (max-width: 480px) {
    .navbar .container {
        height: 60px;
    }

    .mobile-nav {
        top: 60px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 85px 0 40px;
    }

    .hero h1 {
        font-size: 24px;
        letter-spacing: 0;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-stat {
        text-align: center;
    }

    .hero-stat-value {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .benefits-content h2 {
        font-size: 24px;
    }

    /* Expertise panel — 480px */
    .expertise-panel-title {
        font-size: 10px;
        padding: 10px 12px;
    }

    .expertise-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .expertise-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        border-radius: 8px;
    }

    .expertise-tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .services,
    .process,
    .benefits,
    .testimonials,
    .faq,
    .cta-section,
    .stats-section {
        padding: 50px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .faq-question {
        font-size: 15px;
        padding: 18px;
    }

    .faq-answer-content {
        padding: 0 18px 18px;
    }

    .benefit-item {
        padding: 14px;
        gap: 12px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .sector-card {
        padding: 20px;
    }

    .cert-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .cert-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .modal {
        border-radius: 12px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-column h4 {
        margin-bottom: 16px;
    }
}

/* ----------------------------------------
   24. PÁGINAS LEGALES
   ---------------------------------------- */
.page-header {
    padding: 140px 0 60px;
    background: var(--bg);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-light);
}

/* Contenido de páginas legales */
.legal-content {
    padding: 60px 0 100px;
}

.legal-content .container {
    max-width: 900px;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 16px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 12px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--text);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Tabla de cookies */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
}

.cookie-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--primary);
}

.cookie-table td {
    color: var(--text-light);
}

/* Footer simple para páginas legales */
.footer-simple-legal {
    background: #0a0f1a;
    color: rgba(255,255,255,0.5);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.footer-simple-legal a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-simple-legal a:hover {
    color: white;
}

/* ----------------------------------------
   24b. CTA CHECKLIST
   ---------------------------------------- */
.cta-checklist {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.cta-check-item span {
    font-size: 20px;
}

@media (max-width: 640px) {
    .cta-checklist {
        flex-direction: column;
        gap: 12px;
        text-align: left;
        align-items: flex-start;
        padding: 0 8px;
    }
}

/* ----------------------------------------
   25. APP-LIKE MOBILE — PREVENCIÓN SCROLL HORIZONTAL
   ---------------------------------------- */

/* Bloquear completamente el scroll horizontal */
html {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Tabla comparativa — clases reutilizables */
.comparison-wrapper {
    overflow: hidden;
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    text-align: center;
}

/* Comparativa versión móvil — oculta por defecto via HTML inline style,
   mostrada en móvil via CSS !important */
.comparison-mobile {
    /* El display se controla con style="display:none" en HTML + override !important en mobile */
}

.comp-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.08);
}

.comp-card-header {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(90deg, #f0f4ff 0%, #e8efff 100%);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.2px;
}

.comp-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.comp-col {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.comp-col:first-child {
    border-right: 1px solid var(--border);
}

.comp-col-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.comp-col.iso .comp-col-label { color: var(--accent); }
.comp-col.ens .comp-col-label { color: #7c3aed; }

.comp-card-footer {
    padding: 12px 18px;
    background: rgba(37, 99, 235, 0.05);
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

/* Bloque "se pueden combinar" */
.comp-combined {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--accent);
    padding: 16px 18px;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.comp-combined-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.comp-combined-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

/* Barra CTA sticky en móvil (app-like) */
.mobile-sticky-cta {
    display: none;
}

/* ----------------------------------------
   26. RESPONSIVE TABLET MEJORADO (max-width: 1024px)
   ---------------------------------------- */
@media (max-width: 1024px) {
    .trust-badges-grid {
        gap: 12px !important;
    }
}

/* ----------------------------------------
   27. RESPONSIVE MÓVIL MEJORADO (max-width: 768px)
   ---------------------------------------- */
@media (max-width: 768px) {

    /* Safe area para iPhones con notch */
    .navbar {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .mobile-nav {
        top: calc(72px + env(safe-area-inset-top, 0px));
    }

    /* Barra sticky CTA app-like */
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -4px 24px rgba(13, 27, 62, 0.12);
        border-top: 1px solid var(--border);
        z-index: 980;
        gap: 8px;
        align-items: center;
    }

    .mobile-sticky-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: 10px;
        font-weight: 600;
        font-size: 14px;
        min-height: 44px;
        padding: 0 14px;
    }

    .mobile-sticky-cta .sticky-phone {
        background: var(--bg);
        color: var(--text);
        border: 2px solid var(--border);
        flex: 0 0 auto;
        width: 44px;
        font-size: 18px;
        border-radius: 10px;
    }

    .mobile-sticky-cta .sticky-consult {
        background: var(--gradient);
        color: white;
        flex: 1;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    }

    /* Ajustar margen inferior del contenido para no tapar con la barra CTA */
    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Cookie banner arriba de la barra CTA */
    .cookie-banner {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    /* Scroll top arriba de la barra CTA */
    .scroll-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Tabla comparativa — ocultar en móvil, mostrar cards */
    .comparison-desktop {
        display: none !important;
    }

    .comparison-mobile {
        display: block !important;  /* Override el style="display:none" del HTML */
    }

    /* Trust badges — grid 3 columnas centrado */
    .trust-badges-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-top: 24px !important;
    }

    .trust-badge {
        min-width: unset !important;
        max-width: unset !important;
        flex: unset !important;
        width: 100% !important;
        padding: 14px 8px !important;
        border-radius: 12px !important;
    }

    .trust-badge-icon {
        font-size: 26px !important;
    }

    .trust-badge-text {
        font-size: 11px !important;
    }

    /* Quitar hover-transforms en táctil (rendimiento) */
    .service-card:hover {
        transform: none !important;
    }

    .benefit-item:hover {
        transform: none !important;
    }

    .sector-card:hover {
        transform: none !important;
    }

    .cert-card:hover {
        transform: none !important;
    }

    .trust-badge:hover {
        transform: none !important;
    }

    /* Mejores tap targets */
    .nav-link,
    .faq-question,
    .mobile-nav a {
        min-height: 44px;
    }

    /* ENS section mejor en móvil */
    .ens-section h2 {
        font-size: 24px;
    }

    /* Sección comparativa */
    .comparison-section {
        padding: 70px 0;
    }

    /* Page header para páginas legales */
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* Legal content más legible en móvil */
    .legal-content {
        padding: 40px 0 80px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    /* Cookie table en móvil */
    .cookie-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ----------------------------------------
   28. RESPONSIVE MÓVIL PEQUEÑO (max-width: 480px)
   ---------------------------------------- */
@media (max-width: 480px) {

    /* Trust badges en pantallas muy pequeñas — 2 columnas */
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .trust-badge {
        padding: 12px 8px !important;
    }

    .trust-badge-text {
        font-size: 11px !important;
    }

    .trust-badge-icon {
        font-size: 22px !important;
    }

    /* Formulario hero — inputs más cómodos */
    .form-input {
        padding: 13px 14px;
        font-size: 16px; /* Evita zoom en iOS */
    }

    select.form-input {
        font-size: 16px; /* Evita zoom en iOS */
    }

    /* Sections padding */
    .comparison-section {
        padding: 50px 0;
    }

    /* Comparison mobile cards — columna única en muy pequeño */
    .comp-card-body {
        grid-template-columns: 1fr;
    }

    .comp-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    /* Page header */
    .page-header {
        padding: 90px 0 32px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

/* ----------------------------------------
   29. FIXES iOS ESPECÍFICOS
   ---------------------------------------- */

/* Evitar el zoom en inputs en iOS (necesita font-size >= 16px) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Safe area para barra de navegación en iPhone X+ */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .navbar {
            padding-top: env(safe-area-inset-top);
        }

        .navbar .container {
            height: calc(72px - env(safe-area-inset-top, 0px));
        }
    }
}

/* Suavizar scrolling táctil */
section,
.hero,
.services,
.process,
.benefits,
.faq,
.cta-section {
    -webkit-overflow-scrolling: touch;
}

/* ----------------------------------------
   30. THANK YOU PAGE RESPONSIVE
   ---------------------------------------- */
@media (max-width: 640px) {
    .thank-you-section {
        padding: 2rem 0 !important;
        align-items: flex-start !important;
    }

    .thank-you-content {
        padding: 1.5rem !important;
        border-radius: 0.75rem !important;
        margin: 1rem !important;
    }

    .thank-you-content h1 {
        font-size: 1.5rem !important;
    }

    .thank-you-message {
        font-size: 1rem !important;
    }
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .legal-content {
        padding: 40px 0 70px;
    }

    .cookie-table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 30px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .legal-content h3 {
        font-size: 16px;
    }
}
