

/* ==========================
    CONFIGURACIÓN DE FONDO
========================== */
body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.policy-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 160px 25px 100px;
    color: #cccccc;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================
    ENCABEZADO Y TÍTULO
========================== */
.policy-container h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    
    /* Animación de entrada cinemática */
    animation: heroSlideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

/* Fecha con línea decorativa animada */
.policy-date {
    font-size: 10px;
    letter-spacing: 3px;
    color: #666666;
    margin-bottom: 50px;
    padding-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.4s forwards;
    will-change: opacity;
}

/* Línea divisora que se expande hacia la derecha */
.policy-date::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.02) 100%);
    animation: expandLine 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    will-change: width;
}

/* ==========================
    CUERPO DEL TEXTO Y SECCIONES
========================== */
.policy-body {
    line-height: 1.9;
    font-size: 13.5px;
    color: #a0a0a0;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    will-change: transform, opacity, filter;
}

/* Estilo para los títulos de cada sección (h3) */
.policy-body h3 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 40px 0 14px 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Indicador rojo/blanco al lado de cada sección */
.policy-body h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.policy-body h3:hover::before {
    transform: scaleY(1.4);
    background: #ff0033; /* Detalle rojo representativo de AZKA */
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.8);
}

.policy-body p {
    margin-bottom: 22px;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
}

.policy-body p:hover {
    color: #e0e0e0;
}

/* Bloques destacados */
.policy-highlight {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 2px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.policy-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #ffffff;
}

/* ==========================
    NAVEGACIÓN DE PESTAÑAS (TABS)
========================== */
.policy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.2s forwards;
    will-change: opacity;
}

.policy-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #888888;
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.policy-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

/* Pestaña Seleccionada / Activa */
.policy-tab.active {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Alternancia fluida de contenido */
.animate-fade {
    animation: smoothSwitch 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

/* ==========================================
   KEYFRAMES DE ANIMACIONES CINEMÁTICAS
========================================== */

@keyframes heroSlideDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes expandLine {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes smoothSwitch {
    from {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ==========================
    ADAPTACIÓN MÓVIL
========================== */
@media (max-width: 768px) {
    .policy-container {
        padding: 120px 20px 60px;
    }

    .policy-nav {
        gap: 8px;
    }

    .policy-tab {
        padding: 8px 14px;
        font-size: 10px;
    }
}