* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --azul-1: #0a2a63;
    --azul-2: #1b58b8;
    --azul-3: #355f9f;
    --azul-4: #22437b;
    --texto: #262d36;
    --texto-secundario: #647080;
    --blanco: #ffffff;
    --gris-fondo: #f4f6fb;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: var(--gris-fondo);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* Header */

.encabezado {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(30, 35, 41, 0.08);
    backdrop-filter: blur(8px);
}

.encabezado-contenido {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-principal img {
    height: 48px;
    width: auto;
    display: block;
}

.navegacion {
    display: flex;
    align-items: center;
    gap: 28px;
}

.regresar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #38414c;
}

.telefono {
    color: #0789c2;
    font-size: 15px;
    font-weight: 700;
}

.telefono span {
    color: #4d5560;
    font-weight: 400;
}

/* Hero */

.hero-aspel {
    padding: 70px 25px 80px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(255,255,255,0.06),
            transparent 26%
        ),
        linear-gradient(
            90deg,
            #08245a 0%,
            #12387f 46%,
            #2569d4 100%
        );
}

.hero-contenedor {
    width: min(1200px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 55px;
    align-items: start;
}

.hero-logo-aspel {
    width: min(320px, 100%);
    height: 95px;
    margin: 0 0 24px;
    padding: 14px 24px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.hero-logo-aspel img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-logo-aspel {
    align-self: center;
}

.hero-texto h1 {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
}

.hero-texto p {
    max-width: 600px;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.7;
}

.hero-beneficios {
    display: grid;
    gap: 14px;
}

.beneficio-hero {
    min-height: 48px;
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.11);
    font-weight: 700;
}

.beneficio-hero i {
    color: #9bd1ff;
}

/* Grid productos */

.hero-productos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tarjeta-producto {
    min-height: 110px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: rgba(255,255,255,0.10);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.14);
}

.tarjeta-producto.activa {
    background: #ffffff;
    color: #173667;
    border-color: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.18);
}

.logo-producto-contenedor {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-producto {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.nombre-producto {
    text-align: center;
    font-weight: 800;
    font-size: 15px;
}

/* Detalle producto */

.detalle-producto-seccion {
    padding: 80px 25px;
    background: #f7f9fc;
}

.detalle-producto-contenedor {
    width: min(1180px, 100%);
    margin: auto;
    padding: 48px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(145deg, #ffffff, #f7f9fd);
    box-shadow: 0 18px 50px rgba(34, 44, 60, 0.08);
}

.detalle-logo-contenedor {
    width: min(360px, 100%);
    min-height: 112px;
    margin-bottom: 20px;
    padding: 18px 24px;
    border: 1px solid #e5e9f0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.detalle-logo {
    display: block;
    max-width: 100%;
    max-height: 78px;
    object-fit: contain;
}

.detalle-etiqueta {
    display: block;
    margin-bottom: 10px;
    color: #1a62d0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.detalle-producto-info h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 3vw, 46px);
    color: #242b35;
}

.detalle-producto-info > p {
    margin-bottom: 28px;
    color: var(--texto-secundario);
    font-size: 17px;
    line-height: 1.65;
}

.detalle-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.boton-principal,
.boton-secundario {
    min-height: 50px;
    padding: 13px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.boton-principal {
    border: 1px solid #1a62d0;
    color: #ffffff;
    background: #1a62d0;
    box-shadow: 0 10px 24px rgba(26, 98, 208, 0.22);
}

.boton-secundario {
    border: 1px solid #d7dde7;
    color: #2c3540;
    background: #ffffff;
}

.boton-principal:hover,
.boton-secundario:hover {
    transform: translateY(-2px);
}

/* Funciones */

.detalle-funciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.funcion {
    min-height: 140px;
    padding: 20px;
    border: 1px solid #e4e8ef;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    background: #ffffff;
}

.funcion > i {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1a62d0;
    background: rgba(26, 98, 208, 0.10);
    font-size: 18px;
}

.funcion h3 {
    margin: 2px 0 6px;
    font-size: 16px;
    color: #2a313a;
}

.funcion p {
    color: var(--texto-secundario);
    font-size: 13px;
    line-height: 1.5;
}

/* Modal video */

.modal-video {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 25px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18, 20, 24, 0.78);
    backdrop-filter: blur(6px);
}

.modal-video.visible {
    display: flex;
}

.modal-video-contenido {
    width: min(900px, 100%);
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.modal-video-encabezado {
    min-height: 82px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-video-encabezado span {
    display: block;
    margin-bottom: 5px;
    color: #1a62d0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.modal-video-encabezado h2 {
    font-size: 23px;
    color: #2a3038;
}

.cerrar-modal {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #3c434c;
    background: #eef1f5;
    font-size: 18px;
    cursor: pointer;
}

.contenedor-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.contenedor-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.modal-abierto {
    overflow: hidden;
}

/* Responsive */

@media (max-width: 1050px) {
    .hero-contenedor,
    .detalle-producto-contenedor {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detalle-funciones {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .encabezado {
        height: 66px;
    }

    .encabezado-contenido {
        width: calc(100% - 26px);
    }

    .logo-principal img {
        height: 40px;
    }

    .regresar {
        font-size: 0;
    }

    .regresar i {
        font-size: 18px;
    }

    .telefono {
        font-size: 12px;
    }

    .telefono span {
        display: none;
    }

    .hero-aspel {
        padding: 55px 18px 60px;
    }

    .detalle-producto-seccion {
        padding: 65px 18px;
    }

    .detalle-producto-contenedor {
        padding: 28px 20px;
    }

    .hero-productos {
        grid-template-columns: 1fr;
    }

    .detalle-botones {
        flex-direction: column;
    }

    .boton-principal,
    .boton-secundario {
        width: 100%;
    }

    .modal-video {
        padding: 14px;
    }
}