/**
 * Gextratia — Design system y estilos (B2B, conversión, accesible)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ========== DESIGN SYSTEM (variables) ========== */
:root {
    --gext-color-primary: #482cbf;
    --gext-color-primary-light: #5e88fc;
    --gext-color-accent: #6ac6f0;
    --gext-color-text: #1e293b;
    --gext-color-text-muted: #5a6178;
    --gext-color-bg: #f0f2f8;
    --gext-color-bg-alt: #e8ecf7;
    --gext-color-surface: #ffffff;
    --gext-color-dark: #1a1d2e;
    --gext-radius-sm: 8px;
    --gext-radius-md: 12px;
    --gext-radius-lg: 16px;
    --gext-shadow-card: 0 4px 24px rgba(72, 44, 191, 0.08);
    --gext-shadow-card-hover: 0 12px 40px rgba(72, 44, 191, 0.15);
    --gext-space-xs: 0.5rem;
    --gext-space-sm: 1rem;
    --gext-space-md: 1.5rem;
    --gext-space-lg: 2rem;
    --gext-font-sans: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
}

/* — Raíz: 1rem = 18px (sin esto el navegador usa 16px y el texto queda pequeño) — */
html { font-size: 18px; }
@media (max-width: 767px) {
    html { font-size: 17px; }
    body { font-size: 1rem !important; }
}

/* — Tipografía estándar: cuerpo y textos mínimos legibles — */
body {
    font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background-color: #f0f2f8;
    color: #2d3142;
}

/* — Texto mínimo en toda la web: 1.125rem (= 20px en escritorio) para que no quede pequeño frente a los títulos — */
p, .desc, .lead, .section-legal, .section-legal p, .faq-answer p, .form-modern label, .form-modern .consent-label,
.contact-intro, .footer-legal-links p, .footer-legal-links a, .cookie-banner-inner > p,
.cookie-toggle, .cookie-panel-title, .help-block, .transformacion-item p, .transformacion-intro,
.step-card p, .caso-card p, .form-modern .form-control, .page-title .title,
.form-tabs-nav li a, .bttn-cookie, .bttn-sm { font-size: 1.125rem !important; }

/* Sección clara (Sobre nosotros): texto siempre oscuro sobre blanco */
.section-light {
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.section-light p,
.section-light .page-title h3 { color: #1a1d2e; }
.section-light .blue-color { color: #2d5aef; }
.section-light .page-title .title { color: #5e88fc; }

/* Sección alterna (Servicios): gris suave con toque azulado */
.section-alt {
    background: linear-gradient(180deg, #e8ecf7 0%, #f0f2f8 100%);
}

/* Cards de servicios: blanco, sombra, icono bien separado del texto */
.section-alt .service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 2rem 10rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(72, 44, 191, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255,255,255,0.8);
}
.section-alt .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(72, 44, 191, 0.15);
}
.section-alt .service-card .box-icon {
    left: 1.5rem;
    top: 2rem;
}
@media (max-width: 767px) {
    .section-alt .service-card {
        padding: 1.5rem 1.25rem 1.5rem 6.5rem;
    }
    .section-alt .service-card .box-icon {
        left: 1rem;
        top: 1.5rem;
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 16px;
    }
}
/* Feature area: icono separado del texto, texto siempre blanco legible */
.feature-area .service-box {
    padding-left: 125px;
    min-height: 90px;
}
.feature-area .service-box .box-icon {
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
}
.feature-area .page-title .title,
.feature-area .page-title h3,
.feature-area .service-box h4,
.feature-area .service-box p {
    color: #ffffff !important;
}
.feature-area .service-box p { opacity: 0.95; }
.feature-area .page-title .title:before,
.feature-area .page-title .title:after { background-color: rgba(255,255,255,0.5) !important; }
.section-alt .service-card h4 { color: #1a1d2e; }
.section-alt .service-card p { color: #5a6178; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
    font-weight: 700;
}
h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
p, .desc { font-size: 1.0625rem; line-height: 1.75; }
.page-title .title { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; }
.service-box p { font-size: 1.0625rem; }
.page-title .blue-color { color: #4a7bf7; }

/* — Preloader: coherente con la marca (gradiente en lugar de blanco) — */
.preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3820a8 0%, #4a5fc9 50%, #5ba8e0 100%);
}
.preloader-logo { max-height: 48px; width: auto; filter: brightness(0) invert(1); }
/* Logo en círculo arriba a la izquierda */
.nav-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin-right: 10px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.nav-logo-circle .nav-logo {
    height: 28px;
    width: auto;
    max-width: 32px;
    object-fit: contain;
    display: block;
}
.about-logo { max-height: 120px; width: auto; margin: 0 auto; display: block; }
.about-team-photo {
    margin: 2rem 0 0;
    border-radius: var(--gext-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.about-team-photo img { width: 100%; height: auto; display: block; vertical-align: middle; }

/* — Logo al principio de la web, arriba a la izquierda (siempre visible) — */
.logo-top-left {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    text-decoration: none;
}
.logo-top-left img {
    height: 32px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    display: block;
}
@media (max-width: 767px) {
    .logo-top-left { top: 0.75rem; left: 0.75rem; width: 50px; height: 50px; }
    .logo-top-left img { height: 28px; max-width: 34px; }
    .mainmenu-area .container-fluid { padding-left: 4rem; }
}
/* — Hero — */
.home-area { position: relative; }
/* — Hero: overlay un poco más intenso para legibilidad — */
.home-area.overlay::before { opacity: 0.88; }
.home-area h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.15); font-size: clamp(1.6rem, 4vw, 2.75rem); }
.home-area .desc p { opacity: 0.95; font-size: 1.125rem; line-height: 1.75; }

/* — Títulos de sección: más impacto (estilo Marshals) — */
.page-title .title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5e88fc;
}
.page-title h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.35;
    color: #1a1d2e;
}
.section-light .page-title .title { color: #5e88fc; }
.section-alt .page-title .title { color: #5e88fc; }
.section-alt .page-title h3 { color: #1a1d2e; }

/* — Nav: espacio para logo fijo arriba a la izquierda; logo en nav oculto (se usa .logo-top-left) — */
.mainmenu-area .container-fluid { padding-left: 5.5rem; }
.mainmenu-area .navbar-brand { display: none; }
.mainmenu-area .navbar-toggle { border-color: rgba(255,255,255,0.7); margin-right: 15px; }
.mainmenu-area .navbar-toggle .icon-bar { background-color: #fff; }
.mainmenu-area .navbar-collapse { border: none; box-shadow: none; }
@media (max-width: 767px) {
    .mainmenu-area .navbar-collapse {
        background: linear-gradient(135deg, rgba(72, 44, 191, 0.98) 0%, rgba(106, 198, 240, 0.98) 100%);
        margin: 10px -15px 0;
        padding: 15px;
        border-radius: 8px;
    }
    .mainmenu-area ul.mainmenu li { display: block; margin: 5px 0; }
    .mainmenu-area ul.mainmenu li a { display: block; padding: 10px 15px; border-radius: 6px; }
    .mainmenu-area ul.mainmenu li a:hover { background: rgba(255,255,255,0.15); }
}

/* — Botones modernos — */
.bttn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bttn .lnr { font-size: 1.1em; }
.bttn:hover { transform: translateY(-2px); }
.bttn-primary {
    background: linear-gradient(135deg, #482cbf 0%, #5e88fc 50%, #6ac6f0 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(72, 44, 191, 0.35);
}
.bttn-primary:hover { color: #fff; box-shadow: 0 8px 28px rgba(72, 44, 191, 0.45); }
.bttn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.bttn-secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.3); border-color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--gext-space-sm); align-items: center; }
.bttn-lg { padding: 16px 36px; font-size: 1.15rem; }

/* — Iconos con animación al aparecer y hover — */
.box-icon-animated {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-box:hover .box-icon-animated {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.service-box.wow.animated .box-icon-animated {
    animation: iconReveal 0.6s ease forwards;
}
@keyframes iconReveal {
    0% { transform: scale(0.6); opacity: 0.6; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.service-box h4 { font-weight: 700; letter-spacing: -0.01em; font-size: 1.25rem; }
.section-alt .service-card h4 { font-size: 1.25rem; }

/* — Contacto: chips y formularios modernos — */
.contact-intro {
    max-width: 560px;
    margin: 0.5rem auto 0;
    font-size: 1.125rem;
    color: #5a6178;
}
.contact-quick { margin-bottom: 2.5rem; }
.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 24px;
    margin: 0.5rem;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    color: #434345;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-chip:hover { color: #5e88fc; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); text-decoration: none; }
.contact-chip .lnr { color: #5e88fc; font-size: 1.2em; }

.form-tabs {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
.form-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
    background: #f8f9fc;
}
.form-tabs-nav li { flex: 1; }
.form-tabs-nav li a {
    display: block;
    padding: 18px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #5a6178;
    transition: background 0.2s, color 0.2s;
}
.form-tabs-nav li a:hover { background: #fff; color: #482cbf; }
.form-tabs-nav li.active a { background: #fff; color: #482cbf; border-bottom: 2px solid #5e88fc; }
.tab-content { padding: 2rem 2rem 2.5rem; }

/* ========== Formulario estilo Flownexion ========== */
.form-card-flownexion {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}
.form-card-flownexion .form-card-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.form-card-flownexion .form-card-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.75rem;
}
.form-card-flownexion .form-card-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    line-height: 1.3;
}
.form-card-flownexion .form-card-cta {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #5e88fc;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}
.form-card-flownexion .form-card-cta:hover { color: #482cbf; transform: translateY(-1px); }
.form-card-flownexion .form-card-body {
    padding: 2rem 2rem 2.5rem;
}
.form-flownexion .form-group { margin-bottom: 1.5rem; }
.form-flownexion .form-control {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
}
.form-flownexion .form-control:focus {
    border-color: #5e88fc;
    box-shadow: 0 0 0 3px rgba(94, 136, 252, 0.2);
}
.form-flownexion .form-control::placeholder { color: #94a3b8; }
.form-flownexion label:not(.consent-label) {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}
.form-flownexion .form-consent-note {
    display: block;
    margin-top: 0.5rem;
    margin-left: 1.75rem;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 400;
    color: #64748b;
}
.footer-dark .form-card-flownexion .form-consent-note { color: #94a3b8; }
.footer-dark .form-card-flownexion .form-consent-note .link-legal { color: #93c5fd; }
.form-flownexion .form-group-robot { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.form-flownexion .form-group-robot .robot-label { font-weight: 600; color: #475569; }
.form-flownexion .form-group-consent { margin-top: 0.75rem; margin-bottom: 1.5rem; }
.form-flownexion .form-group-submit { margin-bottom: 0; }
.bttn-block { width: 100%; justify-content: center; }
.form-card-flownexion .alert-success {
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 1.05rem;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .form-card-flownexion .form-card-header { padding: 2rem 1.5rem 1.25rem; }
    .form-card-flownexion .form-card-body { padding: 1.5rem 1.25rem 2rem; }
    .form-flownexion .form-consent-note { margin-left: 0; }
}

/* Legacy form-single (por si se usa en otro sitio) */
.form-single .form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}
.form-single .form-subtitle {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.form-single .form-main-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.35;
}
.form-group-honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-consent-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #64748b;
}
.footer-dark .form-single .form-subtitle,
.footer-dark .form-consent-note { color: #94a3b8; }
.footer-dark .form-single .form-main-title { color: #e2e8f0; }
@media (max-width: 767px) {
    .form-tabs-nav { flex-direction: column; }
    .tab-content { padding: 1.5rem 1.25rem; }
}

.form-modern .form-group {
    margin-bottom: 1.35rem;
}
.form-modern label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 1rem;
    color: #434345;
}
.form-modern .form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #e0e4ec;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-modern .form-control:focus {
    outline: none;
    border-color: #5e88fc;
    box-shadow: 0 0 0 3px rgba(94, 136, 252, 0.15);
}
.form-modern .form-control::placeholder { color: #9ca3b8; }
.form-modern select.form-control { appearance: auto; cursor: pointer; }
.form-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 767px) {
    .form-row-double { grid-template-columns: 1fr; }
}
.form-group-submit { margin-top: 1.75rem; margin-bottom: 0; }
.form-modern .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.6;
    color: #5a6178;
}
.form-modern .consent-label input[type="checkbox"] { margin-top: 0.3rem; flex-shrink: 0; }
.link-legal { color: #5e88fc; text-decoration: underline; }
.link-legal:hover { color: #482cbf; }
.form-modern .form-group.has-error .form-control { border-color: #c9302c; }
.form-modern .help-block { color: #c9302c; font-size: 1rem; margin-top: 0.35rem; }
.form-modern .alert { border-radius: 10px; padding: 1rem 1.25rem; margin-top: 1rem; }

/* — Legal colapsable (solo visible al clic) — */
.legal-collapse { border-top: 1px solid rgba(94, 136, 252, 0.15); }
.section-legal {
    padding: 1.5rem 15px;
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6178;
}
.titulo-legal { font-size: 1.125rem; margin-bottom: 0.75rem; color: #434345; }
.section-legal p { margin-bottom: 0.5rem; }
.section-legal a { color: #5e88fc; }

.footer-legal-links p { margin-bottom: 0.5rem; font-size: 1rem; }
.footer-legal-links a { font-size: 1rem; }
.footer-legal-links .sep { margin: 0 0.5rem; opacity: 0.7; }
.footer-legal-links a { color: inherit; }
.footer-legal-links a:hover { color: #6ac6f0; }

/* — Footer / Contacto oscuro (estilo Marshals) — */
.footer-dark {
    background: linear-gradient(180deg, #1a1d2e 0%, #151829 100%);
    color: #b8bcc8;
    padding-bottom: 0;
}
.footer-dark .page-title .title { color: #6ac6f0; }
.footer-dark .page-title h3.dark-color,
.footer-dark .page-title h3 { color: #fff; }
.footer-dark .contact-intro { color: #9ca3b8; }
.footer-dark .consultoria-que-aporta {
    max-width: 640px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border-left: 4px solid #6ac6f0;
}
.footer-dark .consultoria-que-aporta p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.65;
    color: #b8bcc8;
}
.footer-dark .consultoria-que-aporta strong { color: #e8eaef; }

.footer-dark .contact-chip {
    background: rgba(255,255,255,0.08);
    color: #e8eaef;
    border: 1px solid rgba(255,255,255,0.12);
}
.footer-dark .contact-chip:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(106, 198, 240, 0.5);
    text-decoration: none;
}
.footer-dark .contact-chip .lnr { color: #6ac6f0; }

.footer-dark .form-tabs {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 48px rgba(0,0,0,0.25);
}
.footer-dark .form-tabs-nav { background: #f0f2f8; }
.footer-dark .form-tabs-nav li.active a { background: #fff; }

.footer-dark .legal-collapse { border-top-color: rgba(255,255,255,0.08); }
.footer-dark .section-legal { color: #9ca3b8; }
.footer-dark .titulo-legal { color: #e8eaef; }
.footer-dark .section-legal a { color: #6ac6f0; }

.footer-dark .footer-bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
}
.footer-dark .footer-bottom p,
.footer-dark .footer-legal-links a { color: #8b90a0; }
.footer-dark .footer-legal-links a:hover { color: #6ac6f0; }

/* — Feature area (Cómo trabajamos): gradiente + color sólido para móvil (responsive.css quita background-image) — */
.feature-area {
    background-color: #3d28a0;
    background-image: linear-gradient(135deg, #3d28a0 0%, #4a5fc9 40%, #3d8bb8 100%);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
@media (max-width: 991px) {
    .feature-area {
        background-image: linear-gradient(135deg, #3d28a0 0%, #4a5fc9 50%, #3d8bb8 100%) !important;
        background-color: #3d28a0 !important;
    }
}
.feature-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #f0f2f8, transparent);
    pointer-events: none;
}

/* — Títulos de sección (h2) — */
.section-heading { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35; margin: 0; }

/* — Cómo trabajamos: 4 pasos — */
.steps-row { margin: 0 -10px; }
.step-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--gext-radius-lg);
    padding: var(--gext-space-lg);
    margin-bottom: var(--gext-space-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, background 0.25s ease;
}
.step-card:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.step-num {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #fff;
}
.step-card h4 { color: #fff !important; margin-bottom: 0.5rem; font-size: 1.2rem; }
.step-card p { color: rgba(255,255,255,0.95) !important; font-size: 1rem; margin: 0; line-height: 1.6; }

/* — Transformación digital (dentro de feature-area) — */
.transformacion-digital-row { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.2); }
.transformacion-heading {
    color: #fff !important;
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    text-align: center;
}
.transformacion-intro {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.transformacion-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--gext-radius-md);
    padding: 1.25rem 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.25s ease;
}
.transformacion-item:hover { background: rgba(255, 255, 255, 0.15); }
.transformacion-icon {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.transformacion-item h4 { color: #fff !important; font-size: 1.2rem; margin: 0 0 0.4rem; }
.transformacion-item p { color: rgba(255,255,255,0.9) !important; font-size: 1rem; margin: 0; line-height: 1.55; }

/* — Casos de uso — */
.caso-card {
    background: var(--gext-color-surface);
    border-radius: var(--gext-radius-lg);
    padding: var(--gext-space-lg);
    margin-bottom: var(--gext-space-md);
    box-shadow: var(--gext-shadow-card);
    border: 1px solid rgba(0,0,0,0.06);
}
.caso-card h4 { color: var(--gext-color-primary); margin-bottom: 1rem; font-size: 1.2rem; }
.caso-card p { font-size: 1rem; margin-bottom: 0.5rem; color: var(--gext-color-text); }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--gext-color-text); }

/* — FAQ — */
.faq-list { border: 1px solid #e2e8f0; border-radius: var(--gext-radius-md); overflow: hidden; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gext-color-text);
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}
.faq-question:hover { background: #f8fafc; }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--gext-color-primary-light); }
.faq-question[aria-expanded="true"]::after { content: '−'; }
.faq-answer { background: #f8fafc; }
.faq-answer p { padding: 1rem 1.25rem; margin: 0; font-size: 1rem; color: var(--gext-color-text-muted); }

/* — Banner de cookies (AEPD) — */
.cookie-banner[aria-hidden="true"] { display: none !important; }
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--gext-color-dark);
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.cookie-banner-inner { max-width: 900px; margin: 0 auto; }
.cookie-banner-inner > p { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.6; }
.cookie-banner-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.bttn-cookie { padding: 10px 20px; font-size: 1rem; }
.bttn-cookie-outline { background: transparent; color: #94a3b8; border: 2px solid #94a3b8; }
.bttn-cookie-outline:hover { color: #fff; border-color: #fff; }
.bttn-cookie-ghost { background: transparent; color: #94a3b8; }
.bttn-cookie-ghost:hover { color: #e2e8f0; }
.cookie-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-panel-title { font-weight: 600; margin-bottom: 0.75rem; font-size: 1rem; }
.cookie-toggle { display: block; margin-bottom: 0.5rem; font-size: 1rem; cursor: pointer; }
.cookie-toggle input { margin-right: 0.5rem; }
.bttn-sm { padding: 8px 16px; font-size: 1.05rem; margin-top: 0.5rem; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wow { animation: none !important; }
    .step-card:hover { transform: none; }
    .section-alt .service-card:hover { transform: none; }
    .service-box:hover .box-icon-animated { transform: none; }
}

/* Enlace "Saltar al contenido" (solo visible con teclado) */
.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 10000;
    padding: 0.6rem 1rem;
    background: #1e293b;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ============================================================
   AUDITORÍA CONTRASTE Y ACCESIBILIDAD (WCAG / expertos)
   ============================================================ */

/* 1. Anular cualquier texto claro sobre fondos claros (style.css usa #8790af en body y .page-title .title) */
.section-light .page-title .title,
.section-alt .page-title .title,
.section-light h5.title,
.section-alt h5.title { color: #2563eb !important; }
.section-light .page-title .title:before,
.section-light .page-title .title:after,
.section-alt .page-title .title:before,
.section-alt .page-title .title:after { background-color: #94a3b8 !important; }
.section-light p,
.section-light .desc p,
.section-light h3,
.section-light h2,
.section-light .section-heading,
.section-light .lead { color: #1e293b !important; }
.section-light .blue-color { color: #1d4ed8 !important; }

.section-alt .page-title h3,
.section-alt .page-title h2,
.section-alt .section-heading,
.section-alt p,
.section-alt .lead,
.section-alt .caso-card p,
.section-alt .caso-card h4 { color: #1e293b !important; }
.section-alt .page-title h3 { color: #0f172a !important; }
.section-alt .service-card h4,
.section-alt .service-card p { color: #1a1d2e !important; }

/* Caja blanca del formulario (dentro de footer): todo el texto oscuro */
.form-tabs,
.form-tabs .form-modern label,
.form-tabs .form-modern .consent-label,
.form-tabs .form-modern .consent-label span,
.form-tabs .form-tabs-nav li a { color: #1e293b !important; }
.form-tabs .form-tabs-nav li a { color: #475569 !important; }
.form-tabs .form-tabs-nav li.active a { color: #1d4ed8 !important; }
.form-tabs .form-control { color: #0f172a !important; }
.form-tabs .help-block { color: #c9302c !important; }
.form-tabs .alert { color: #1e293b !important; }

/* Si el template usa .white-color en una zona de fondo claro, forzar texto oscuro */
.section-light .white-color,
.section-alt .white-color,
.form-tabs .white-color { color: #1e293b !important; }

/* 2. Hero: texto siempre blanco/high contrast sobre overlay */
.home-area,
.home-area .desc p,
.home-area h1,
.home-area a.bttn { color: #ffffff !important; }
.home-area .desc p { opacity: 1; }

/* 3. Formulario: labels y texto legible (fondo blanco del .form-tabs) */
.form-modern label,
.form-modern .consent-label,
.form-modern .consent-label span { color: #1e293b !important; }
.form-modern .form-control { color: #0f172a; background: #fff; }
.form-tabs-nav li a { color: #475569 !important; }
.form-tabs-nav li.active a { color: #1d4ed8 !important; }

/* 4. Footer oscuro: todos los textos con contraste suficiente */
.footer-dark .page-title .title,
.footer-dark .page-title h5 { color: #93c5fd !important; }
.footer-dark .page-title h3.dark-color,
.footer-dark .dark-color { color: #f1f5f9 !important; }
.footer-dark .contact-intro { color: #cbd5e1 !important; }
.footer-dark .footer-bottom p,
.footer-dark .footer-legal-links a { color: #94a3b8 !important; }
.footer-dark .footer-legal-links a:hover { color: #67e8f9 !important; }

/* 5. Enlaces y botones: focus visible (accesibilidad) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.bttn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.form-modern .form-control:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4); }
.contact-chip:focus-visible { outline: 2px solid #6ac6f0; outline-offset: 2px; }

/* 6. Evitar iconos sobre letra: caja del icono con margen derecho */
.section-alt .service-card .box-icon {
    margin-right: 0;
    flex-shrink: 0;
}
.feature-area .service-box .box-icon {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}
.feature-area .service-box h4,
.feature-area .service-box p {
    position: relative;
    z-index: 2;
    padding-left: 0;
}
