/* =========================================================
   APLICACIONES - DESARROLLOS EDS-SISTEMAS
   Coherente con quienes_somos.css y colores corporativos
========================================================= */

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --primary-blue: #3b82f6;

    --border: rgba(255, 255, 255, 0.08);
}


/* =========================================================
   GENERAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

header {
    width: 100%;
    height: 70px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav {
    padding: 10px 18px;

    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;

    color: #fff;
    background: rgba(59, 130, 246, 0.1);

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-nav.secundario {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.btn-nav.secundario:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #04241a;
}

.btn-nav.activo {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}


/* =========================================================
   REDES SOCIALES FLOTANTES
========================================================= */

.redes-flotantes {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redes-flotantes a {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--bg-card);
    border: 1px solid var(--border);

    transition: 0.3s;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.redes-flotantes a:hover {
    transform: scale(1.15) translateX(5px);
    color: #fff;
}

.redes-flotantes a.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.redes-flotantes a.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

.redes-flotantes a.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.redes-flotantes a.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}


/* =========================================================
   HERO
========================================================= */

.hero-aplicaciones {
    min-height: 340px;

    padding: 150px 6% 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.12),
            transparent 40%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(16, 185, 129, 0.08),
            transparent 35%
        );
}

.titulo-seccion {
    margin-bottom: 15px;

    color: var(--primary-blue);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-aplicaciones h1 {
    margin-bottom: 20px;

    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.1;

    font-weight: 800;
}

.hero-aplicaciones p {
    max-width: 750px;

    color: var(--text-muted);
    font-size: 17px;
}


/* =========================================================
   PUBLICIDAD
========================================================= */

.publicidad-banner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.publicidad-slot {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.015);

    color: #475569;

    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: 0.3s;
}

.publicidad-slot:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.04);
}

.publicidad-slot.leaderboard {
    height: 90px;
    margin: 30px 0;
}

.publicidad-slot.billboard {
    height: 120px;
    margin: 40px 0;
}

.publicidad-slot span {
    opacity: 0.6;
}


/* =========================================================
   SECCIÓN DE APP - Layout horizontal, sin bordes
========================================================= */

.app-seccion {
    width: 100%;

    padding: 80px 0;
}

/* Fondo alternado por cada sistema (sin bordes) */
.app-seccion:nth-child(odd) {
    background: var(--bg-dark);
}

.app-seccion:nth-child(even) {
    background: #131c31;
}

.app-wrapper {
    max-width: 1300px;

    margin: 0 auto;
    padding: 0 6%;

    /* Layout horizontal: imagen | texto */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: center;
}

/* Espejar la sección siguiente (texto | imagen) */
.app-seccion:nth-child(even) .app-wrapper {
    direction: rtl;
}

.app-seccion:nth-child(even) .app-wrapper > * {
    direction: ltr;
}


/* =========================================================
   CARRUSEL
========================================================= */

.carrusel {
    position: relative;

    width: 100%;
    height: 380px;

    overflow: hidden;

    border-radius: 14px;

    background: var(--bg-card);
}

.carrusel-track {
    display: flex;

    width: 100%;
    height: 100%;

    transition: transform 0.6s ease;
}

.carrusel-slide {
    flex: 0 0 100%;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0b1220;

    color: #475569;

    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;

    text-align: center;
    padding: 20px;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Botones flecha */

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.75);
    color: #fff;

    font-size: 20px;
    font-weight: 800;

    cursor: pointer;

    z-index: 5;

    transition: 0.3s;

    backdrop-filter: blur(6px);
}

.carrusel-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.prev { left: 14px; }
.carrusel-btn.next { right: 14px; }


/* Puntos indicadores */

.carrusel-puntos {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 5;
}

.carrusel-punto {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);

    cursor: pointer;

    transition: 0.3s;
}

.carrusel-punto:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carrusel-punto.activo {
    background: var(--accent-green);
    transform: scale(1.25);
}


/* =========================================================
   INFO DE LA APP (texto al costado)
========================================================= */

.app-info {
    width: 100%;
}

.app-info h2 {
    margin-bottom: 8px;

    color: var(--primary-blue);

    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.15;
}

.app-info .subtitulo-app {
    display: block;

    margin-bottom: 20px;

    color: var(--accent-green);

    font-size: 15px;
    font-weight: 700;
}

.app-info p {
    margin-bottom: 22px;

    color: var(--text-muted);
    font-size: 16px;
}

.app-info ul {
    list-style: none;
    padding: 0;

    margin: 0 0 25px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;

    text-align: left;
}

.app-info li {
    position: relative;

    padding-left: 22px;

    color: var(--text-muted);
    font-size: 15px;
}

.app-info li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--accent-green);

    font-weight: 800;
}

.badge-web {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 20px;

    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* =========================================================
   CTA FINAL
========================================================= */

.cta-final {
    max-width: 1200px;

    margin: 60px auto;
    padding: 50px 6%;

    text-align: center;

    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;

    background:
        radial-gradient(
            circle at center,
            rgba(16, 185, 129, 0.08),
            transparent 70%
        ),
        var(--bg-card);
}

.cta-final h2 {
    margin-bottom: 15px;

    font-size: clamp(26px, 3.5vw, 38px);
}

.cta-final p {
    max-width: 700px;

    margin: 0 auto 30px;

    color: var(--text-muted);
}

.btn-cta {
    display: inline-block;

    padding: 14px 34px;

    border-radius: 10px;

    background: var(--accent-green);
    color: #04241a;

    font-size: 16px;
    font-weight: 800;

    transition: 0.3s;
}

.btn-cta:hover {
    background: #34d399;
    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    overflow: hidden;

    padding: 25px 0;

    border-top: 1px solid var(--border);

    background: #020617;

    color: #64748b;

    font-size: 12px;
    letter-spacing: 1px;

    white-space: nowrap;
}

.marquee {
    display: inline-block;

    animation: mover 30s linear infinite;
}

@keyframes mover {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .app-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* En móvil desactivamos el espejado */
    .app-seccion:nth-child(even) .app-wrapper {
        direction: ltr;
    }

    .carrusel {
        height: 280px;
    }

    .app-info ul {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    header {
        height: 62px;
        padding: 0 20px;
    }

    .logo-text {
        font-size: 11px;
    }

    .header-nav {
        gap: 6px;
    }

    .btn-nav {
        padding: 8px 10px;
        font-size: 11px;
    }

    .hero-aplicaciones {
        padding: 120px 20px 50px;
    }

    .hero-aplicaciones p {
        font-size: 15px;
    }

    .app-seccion {
        padding: 55px 0;
    }

    .app-wrapper {
        padding: 0 20px;
    }

    .carrusel {
        height: 220px;
        border-radius: 12px;
    }

    .carrusel-btn {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .carrusel-btn.prev { left: 8px; }
    .carrusel-btn.next { right: 8px; }

    .carrusel-puntos {
        bottom: 10px;
        gap: 7px;
    }

    .carrusel-punto {
        width: 8px;
        height: 8px;
    }

    .app-info p {
        font-size: 15px;
    }

    .publicidad-slot.leaderboard { height: 70px; }
    .publicidad-slot.billboard   { height: 90px; }

    .cta-final {
        margin: 40px 20px;
        padding: 40px 20px;
    }

    .redes-flotantes {
        left: 10px;
        gap: 8px;
    }

    .redes-flotantes a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

}