/* STYLES FOR SEGURIDAD ACTIVA PAGE ONLY */
/* To be included alongside style.css or as a standalone if reset is intended */

/* RESET & BASE (Scoped or Specific Overrides) */
.active-security-page {
    background-color: #000000;
    color: #F5F5F7;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* NAVEGACIÓN OVERRIDES needed if structure is different */
/* ... keeping existing navbar styles from style.css should work if structures match ... */

/* SECCIÓN APPLE GENERAL */
.apple-section {
    padding: 100px 20px;
    text-align: center;
}

.hero-video-container,
.feature-block-large {
    max-width: 1080px;
    margin: 0 auto;
}

.hero-block {
    margin-bottom: 100px;
}

.headline-big {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}

.subhead {
    font-size: 24px;
    color: #86868b;
    margin-bottom: 40px;
}

.hero-video-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    /* Para el botón de play */
    cursor: pointer;
}

.hero-video-container video {
    width: 100%;
    display: block;
    will-change: transform;
    transform: translateZ(0);
}

/* Aplicar el mismo estilo de botón de play al video principal */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    /* Más grande para el video principal */
    height: 80px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro para contraste */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5F5F7'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: center left 24px;
    border: 1px solid rgba(245, 245, 247, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 2;
}

.hero-video-container.video-playing::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

/* CARRUSEL */
.lineup-container {
    background: #161617;
    border-radius: 30px;
    padding: 60px 0 60px 40px;
    margin-bottom: 100px;
    text-align: left;
    overflow: hidden;
}

.headline-medium {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.subhead-small {
    font-size: 20px;
    color: #86868b;
}

.apple-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.apple-scroll-container::-webkit-scrollbar {
    display: none;
}

.tech-card-mini {
    min-width: 260px;
    background: #000;
    border-radius: 20px;
    padding: 15px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.tech-card-mini:hover {
    transform: scale(1.02);
}

.card-media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    /* Para el botón de play */
    cursor: pointer;
}

/* Botón de Play Central Personalizado - Versión Azul Apple */
.card-media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro para que el azul resalte */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    /* Icono en Gris Sutil Apple (#F5F5F7) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5F5F7'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center left 14px;
    border: 1px solid rgba(245, 245, 247, 0.15);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 2;
}

/* Ocultar botón de play cuando el video está reproduciéndose */
.card-media.video-playing::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
}

.card-name {
    font-size: 17px;
    font-weight: 600;
    color: #f5f5f7;
}

.card-info {
    font-size: 13px;
    color: #86868b;
    margin-top: 4px;
}

.card-info b {
    color: #fff;
}

.fade-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(22, 22, 23, 0), #161617);
    pointer-events: none;
    z-index: 5;
    border-radius: 0 30px 30px 0;
}

.fade-overlay::after {
    content: '›';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    opacity: 0.3;
    font-weight: 300;
}

/* APP FEATURE */
.feature-block-large {
    background: #161617;
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
}

.feature-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    text-align: left;
}

.app-demo-rounded {
    width: 100%;
    max-width: 320px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* BLOQUE $0 */
.value-hero-block {
    background: #161617;
    border-radius: 30px;
    padding: 80px 40px;
    margin-bottom: 30px;
}

.price-hero {
    font-size: 120px;
    font-weight: 700;
    color: #2997FF;
    line-height: 1;
    margin-bottom: 20px;
}

/* --- BARRA LEGAL COMPACTA --- */
.certifications-compact-bar {
    max-width: 1080px;
    margin: 40px auto 100px;
    padding: 30px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-bar-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F5F5F7;
    margin-bottom: 20px;
    text-align: center;
}

.cert-bar-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.cert-col {
    flex: 1;
    text-align: left;
}

.cert-col p {
    font-size: 12px;
    color: #86868b;
    line-height: 1.6;
}

.cert-col strong {
    color: #F5F5F7;
    display: block;
    margin-bottom: 4px;
}

/* KITS */
.kits-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.kit-card {
    background: #000;
    border-radius: 24px;
    padding: 40px;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

.kit-card .label {
    color: #2997FF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kit-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.kit-price {
    font-size: 24px;
    margin-bottom: 25px;
    color: #fff;
}

.kit-price small {
    font-size: 0.6em;
    color: #888;
}

.kit-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
    margin-left: 0;
    padding-left: 0;
}

.kit-features li {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    color: #86868b;
    font-size: 15px;
}

.gift-item {
    color: #fff !important;
    font-weight: 600;
}

/* BOTONES */
.apple-link {
    color: #2997FF;
    font-size: 19px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.apple-link::after {
    content: '>';
    margin-left: 6px;
    font-size: 14px;
}

.apple-button {
    background: #2997FF;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    width: 100%;
}

.shop-link-container {
    margin-top: 30px;
    text-align: center;
}

/* FOOTER */
/* footer { padding: 40px 20px; text-align: center; font-size: 12px; color: #86868b; } */

@media (max-width: 900px) {
    .headline-big {
        font-size: 38px;
    }

    .price-hero {
        font-size: 80px;
    }

    .cert-bar-content {
        flex-direction: column;
        gap: 20px;
    }

    .cert-col {
        text-align: center;
    }

    .kits-grid {
        flex-direction: column;
    }

    .feature-block-large {
        padding: 40px 20px;
        /* Reduced padding for mobile */
    }

    .feature-split {
        flex-direction: column;
        gap: 30px;
    }

    .feature-text {
        order: 1;
        /* Ensure text is above on mobile if desired, or let natural flow handle */
    }

    .feature-media {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .app-demo-rounded {
        max-width: 100%;
        /* Allow full width */
    }
}