/**
 * DataFocus SAS - Navbar & Footer compartido
 * Este archivo se importa en TODAS las páginas para garantizar
 * consistencia visual en navegación y pie de página.
 *
 * IMPORTANTE: No poner estilos de navbar/footer en los <style> de cada página.
 */

/* === COLORES DE MARCA (incluye morado del logo) === */
:root {
    --brand-indigo: #1a3480;
    --brand-blue: #2251cc;
    --brand-accent: #3d7fff;
    --brand-purple: #7B6FA0;
    --brand-purple-light: #9B8FBF;
    --brand-purple-soft: #EDE8F5;
}

/* === BODY PADDING para navbar fijo === */
body {
    padding-top: 80px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8f0;
    box-shadow: 0 2px 8px rgba(26, 52, 128, 0.06);
    z-index: 1030;
    transition: box-shadow 0.25s ease;
}

.navbar--scrolled {
    box-shadow: 0 4px 20px rgba(26, 52, 128, 0.12);
}

.navbar__container {
    display: flex;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Logo y marca --- */
.navbar__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-indigo);
    font-weight: 700;
    font-size: 1.35rem;
    gap: 12px;
    margin-right: 40px;
    flex-shrink: 0;
}

.navbar__brand:hover {
    text-decoration: none;
    color: var(--brand-indigo);
}

.navbar__brand img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

/* --- Menú de navegación --- */
.navbar__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}

.navbar__link {
    color: #4a4a6a;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar__link:hover {
    color: var(--brand-indigo);
    background: var(--brand-purple-soft);
    text-decoration: none;
}

.navbar__link--active {
    color: var(--brand-indigo);
    background: var(--brand-purple-soft);
    font-weight: 600;
}

/* --- Botón CTA "Cotizar" --- */
.navbar__cta-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-purple) 100%);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(26, 52, 128, 0.2);
    flex-shrink: 0;
}

.navbar__cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 52, 128, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.navbar__cta-btn svg {
    width: 16px;
    height: 16px;
}

/* --- Hamburger toggle (móvil) --- */
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-indigo);
    cursor: pointer;
    padding: 8px;
    z-index: 1031;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--brand-indigo);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Menú móvil --- */
.navbar__mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    z-index: 1029;
    overflow-y: auto;
    border-top: 1px solid #e8e8f0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.navbar__mobile--active,
.navbar__mobile.active {
    display: flex;
    transform: translateX(0);
}

.navbar__mobile .navbar__link {
    font-size: 1.1rem;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f5;
    border-radius: 0;
    width: 100%;
}

.navbar__mobile .navbar__link:last-of-type {
    border-bottom: none;
}

.navbar__mobile .btn {
    margin-top: 16px;
    text-align: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-purple) 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* === FOOTER COMPARTIDO === */
.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer__logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 4px;
}

.footer {
    background: #0f1f3d;
    color: #e0e0e0;
    padding: 60px 24px 20px;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__section h3 {
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: 8px;
}

.footer__description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #999;
}

.footer__link {
    display: block;
    text-decoration: none;
    color: #999;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(61, 127, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: var(--brand-accent);
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: var(--brand-accent);
    color: white;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.footer__copyright {
    margin-bottom: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .navbar__menu {
        display: none;
    }

    .navbar__toggle {
        display: block;
        margin-left: auto;
        margin-right: 12px;
    }

    .navbar__brand {
        margin-right: auto;
    }

    .navbar__cta-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
    }

    .navbar__container {
        height: 70px;
        padding: 0 16px;
    }

    .navbar__brand {
        font-size: 1.15rem;
        gap: 10px;
    }

    .navbar__brand img {
        height: 40px;
        width: 40px;
    }

    .navbar__cta-btn {
        display: none;
    }

    .navbar__mobile {
        top: 70px;
    }

    .footer {
        padding: 40px 16px 16px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 64px;
    }

    .navbar {
        height: 64px;
    }

    .navbar__container {
        height: 64px;
    }

    .navbar__brand {
        font-size: 1.05rem;
        gap: 8px;
    }

    .navbar__brand img {
        height: 36px;
        width: 36px;
    }

    .navbar__mobile {
        top: 64px;
        padding: 16px;
    }
}


/* ============================================================
   BANNER TECNOLÓGICO INTERIOR (páginas internas)
   Banner más compacto con el mismo estilo tech del index.
   Usar clase .hero--tech en el <section class="hero hero--tech">
   ============================================================ */

.hero--tech {
    background: linear-gradient(160deg, #0a1628 0%, #111d3a 30%, #1a3480 60%, #1e2a5e 100%);
    color: white;
    padding: calc(var(--header-height, 80px) + 40px) 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Grid animado de fondo */
.hero--tech .hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(61, 127, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 127, 255, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: heroGridShift 20s linear infinite;
}

@keyframes heroGridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Orbes de luz */
.hero--tech::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 111, 160, 0.18) 0%, rgba(123, 111, 160, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    animation: heroOrbFloat 8s ease-in-out infinite alternate;
}

.hero--tech::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 127, 255, 0.12) 0%, rgba(61, 127, 255, 0.02) 45%, transparent 70%);
    border-radius: 50%;
    animation: heroOrbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -15px) scale(1.06); }
}

/* Partículas */
.hero--tech .hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero--tech .hero__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(61, 127, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(61, 127, 255, 0.4);
    animation: heroParticleRise linear infinite;
}

.hero--tech .hero__particle:nth-child(1) { left: 12%; animation-duration: 11s; animation-delay: 0s; width: 2px; height: 2px; }
.hero--tech .hero__particle:nth-child(2) { left: 28%; animation-duration: 9s; animation-delay: -2s; width: 3px; height: 3px; background: rgba(123, 111, 160, 0.5); }
.hero--tech .hero__particle:nth-child(3) { left: 45%; animation-duration: 13s; animation-delay: -4s; }
.hero--tech .hero__particle:nth-child(4) { left: 62%; animation-duration: 10s; animation-delay: -1s; width: 4px; height: 4px; }
.hero--tech .hero__particle:nth-child(5) { left: 78%; animation-duration: 12s; animation-delay: -3s; background: rgba(123, 111, 160, 0.5); }
.hero--tech .hero__particle:nth-child(6) { left: 90%; animation-duration: 14s; animation-delay: -5s; width: 2px; height: 2px; }

@keyframes heroParticleRise {
    0% { bottom: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: 105%; opacity: 0; }
}

/* Líneas SVG decorativas */
.hero--tech .hero__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero--tech .hero__lines svg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

/* Contenido */
.hero--tech .hero__content {
    position: relative;
    z-index: 2;
}

.hero--tech .hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero--tech .hero__subtitle {
    font-size: 1.15rem;
    color: rgba(200, 210, 235, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Badge opcional */
.hero--tech .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(61, 127, 255, 0.12);
    border: 1px solid rgba(61, 127, 255, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}

.hero--tech .hero__badge-dot {
    width: 7px;
    height: 7px;
    background: #3d7fff;
    border-radius: 50%;
    animation: heroPulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(61, 127, 255, 0.6);
}

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

/* Responsive internas */
@media (max-width: 768px) {
    .hero--tech {
        padding: calc(var(--header-height, 70px) + 30px) 0 40px;
    }

    .hero--tech .hero__title {
        font-size: 2rem;
    }

    .hero--tech .hero__subtitle {
        font-size: 1rem;
    }

    .hero--tech .hero__badge {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .hero--tech .hero__title {
        font-size: 1.6rem;
    }

    .hero--tech .hero__lines {
        display: none;
    }
}


/* ============================================================
   CTA SECTION — Fondo claro con acentos tech
   Contrasta con el footer oscuro para separación visual.
   ============================================================ */

.cta-section {
    background: linear-gradient(160deg, #f4f6fc 0%, #eaeffa 40%, #f0ecf6 100%);
    color: #1a2a4a;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Grid tech sutil en azul claro */
.cta-section__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 52, 128, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 52, 128, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: ctaGridShift 20s linear infinite;
}

@keyframes ctaGridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Orbes decorativos suaves */
.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 111, 160, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaOrbFloat 9s ease-in-out infinite alternate;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 127, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaOrbFloat 11s ease-in-out infinite alternate-reverse;
}

@keyframes ctaOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -15px) scale(1.06); }
}

/* Layout dos columnas */
.cta-section__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.cta-section__text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--brand-indigo);
}

.cta-section__text h2 span {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section__text p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: #4a5568;
    line-height: 1.7;
}

/* Feature cards */
.cta-section__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cta-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: white;
    border: 1px solid rgba(26, 52, 128, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 52, 128, 0.06);
    transition: all 0.3s ease;
}

.cta-feature:hover {
    border-color: rgba(61, 127, 255, 0.25);
    box-shadow: 0 6px 24px rgba(61, 127, 255, 0.1);
    transform: translateY(-2px);
}

.cta-feature__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-purple-soft) 0%, #e0e5f5 100%);
    border-radius: 10px;
}

.cta-feature__icon svg {
    width: 20px;
    height: 20px;
    color: var(--brand-purple);
}

.cta-feature__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-indigo);
    line-height: 1.4;
}

.cta-feature__sub {
    font-size: 0.78rem;
    color: #718096;
    margin-top: 2px;
}

/* Botones CTA */
.cta-section .btn--primary {
    background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-purple) 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(26, 52, 128, 0.25);
    border: none;
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 52, 128, 0.35);
}

.cta-section .btn--outline {
    border: 2px solid var(--brand-indigo);
    color: var(--brand-indigo);
    background: transparent;
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section .btn--outline:hover {
    background: var(--brand-indigo);
    color: white;
    transform: translateY(-2px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 70px 0;
    }

    .cta-section__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .cta-section__text h2 {
        font-size: 1.8rem;
    }

    .cta-section__features {
        grid-template-columns: 1fr;
    }

    .cta-section__buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-section__text h2 {
        font-size: 1.5rem;
    }
}
