/* =========================================================
   BLACK FRIDAY · A LO CUBANO DONOSTI
   v2 - Paleta oficial + Hover limpio + Imágenes + Ribbon fijo
   ========================================================= */

/* ============================================================
   1. VARIABLES Y ANIMACIONES (paleta oficial de la web)
   ============================================================ */
:root {
    /* Oscuros de marca */
    --bf-dark-1: #0f0724;
    --bf-dark-2: #1a0e3a;
    --bf-dark-3: #2C1B5A;
    --bf-dark-4: #3d2a7a;

    /* Acentos oficiales */
    --bf-yellow: #FFD966;
    --bf-yellow-soft: #ffe89a;
    --bf-red: #e94944;
    --bf-red-soft: #ff6b66;
    --bf-purple: #7252da;
    --bf-purple-soft: #9a7eeb;

    /* Textos */
    --bf-text-light: #ffffff;
    --bf-text-muted: rgba(255, 255, 255, 0.78);

    /* Superficies */
    --bf-glass: rgba(20, 10, 40, 0.85);
    --bf-glass-border: rgba(255, 255, 255, 0.12);

    --bf-radius-sm: 10px;
    --bf-radius-md: 18px;
    --bf-radius-lg: 26px;
}

/* --- Animaciones reutilizables --- */
@keyframes bf-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 217, 102, 0.45);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(255, 217, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 217, 102, 0);
    }
}

.bf-pulse-anim {
    animation: bf-pulse 2.4s infinite;
}

@keyframes bf-glow-border {

    0%,
    100% {
        box-shadow:
            0 0 10px rgba(255, 217, 102, 0.35),
            0 0 28px rgba(255, 217, 102, 0.18);
    }

    50% {
        box-shadow:
            0 0 22px rgba(255, 217, 102, 0.65),
            0 0 48px rgba(255, 217, 102, 0.35);
    }
}

@keyframes bf-shape-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(12px, -18px) rotate(12deg);
    }
}

@keyframes bf-modal-in {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.94);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bf-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   2. SECCIÓN BLACK FRIDAY
   ============================================================ */
.section-black-friday {
    position: relative;
    padding: 5.5rem 0 5rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(233, 73, 68, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(114, 82, 218, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 217, 102, 0.10) 0%, transparent 60%),
        linear-gradient(135deg, #0a0320 0%, var(--bf-dark-2) 45%, var(--bf-dark-3) 100%);
    overflow: hidden;
    border-top: none;
    border-bottom: 2px solid rgba(233, 73, 68, 0.3);
    isolation: isolate;
}

/* --- Decoración de fondo --- */
.bf-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bf-shape {
    position: absolute;
    opacity: 0.10;
    animation: bf-shape-float 7s ease-in-out infinite;
}

.bf-shape-1 {
    top: 8%;
    left: 6%;
    font-size: 6rem;
    color: var(--bf-yellow);
}

.bf-shape-2 {
    top: 15%;
    right: 8%;
    font-size: 4rem;
    color: var(--bf-red);
    animation-delay: 1s;
}

.bf-shape-3 {
    bottom: 12%;
    left: 10%;
    font-size: 5.5rem;
    color: var(--bf-purple);
    animation-delay: 2s;
}

.bf-shape-4 {
    bottom: 20%;
    right: 12%;
    font-size: 3.5rem;
    color: var(--bf-yellow);
    animation-delay: 0.6s;
}

.bf-shape-5 {
    top: 45%;
    left: 48%;
    font-size: 4.5rem;
    color: var(--bf-red);
    animation-delay: 1.8s;
}

.section-black-friday .container {
    position: relative;
    z-index: 2;
}

/* --- Cabecera --- */
.bf-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 3.5rem;
}

/* Badge BLACK FRIDAY — más grande y visible */
.bf-badge-evento {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(233, 73, 68, 0.25), rgba(255, 217, 102, 0.18));
    border: 2px solid var(--bf-yellow);
    color: var(--bf-yellow);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    box-shadow: 0 0 24px rgba(255, 217, 102, 0.35);
}

.bf-badge-evento i {
    color: var(--bf-red);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px var(--bf-red));
}

/* Título con distribución en 3 líneas */
.bf-titulo {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    text-wrap: balance;
    text-shadow: 0 0 22px rgba(114, 82, 218, 0.5);
}

.bf-highlight {
    display: block;
    font-size: 1.18em;
    color: var(--bf-yellow);
    margin: 0.15em 0;
    line-height: 1.05;
    text-shadow:
        0 0 10px rgba(255, 217, 102, 0.9),
        0 0 26px rgba(255, 217, 102, 0.6),
        0 0 50px rgba(255, 217, 102, 0.35);
}

.bf-subtitulo {
    font-size: 1.08rem;
    color: var(--bf-text-muted);
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 1.6rem;
}

.bf-subtitulo strong {
    color: #fff;
    font-weight: 700;
}

/* Clase preparada para el HTML del siguiente paso */
.bf-sub-linea {
    display: block;
    margin-top: 0.35rem;
}

/* CTA "Ver ofertas" — oculto (se eliminará del HTML en el siguiente paso) */
.btn-bf-cta {
    display: none !important;
}

/* Nota "Plazas según nivel..." — ahora destacada como pill */
.bf-nota {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0.5rem auto 0;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 217, 102, 0.12);
    border: 2px solid var(--bf-yellow);
    border-radius: 50px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--bf-yellow);
    box-shadow: 0 0 26px rgba(255, 217, 102, 0.28);
    text-align: center;
    line-height: 1.4;
}

.bf-nota i {
    color: var(--bf-yellow);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================================
   3. TARJETAS DE OFERTA
   ============================================================ */
.bf-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1180px;
    margin: 0 auto;
    align-items: stretch;
}

.bf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bf-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--bf-radius-lg);
    padding: 0 1.8rem 1.8rem;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition:
        transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    outline: none;
    isolation: isolate;
    color: inherit;
}

/* Imagen superior de cada tarjeta (vía ::before) */
.bf-card::before {
    content: '';
    display: block;
    height: 180px;
    margin: 0 -1.8rem 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bf-dark-3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.5s ease;
}

.bf-card-1::before {
    background-image: url('../recursos/black_friday/tarjeta_oferta_1.webp');
}

.bf-card-2::before {
    background-image: url('../recursos/black_friday/tarjeta_oferta_2.webp');
}

.bf-card-3::before {
    background-image: url('../recursos/black_friday/tarjeta_oferta_3.webp');
}

/* Desactivo el antiguo glow que tapaba contenido */
.bf-card-glow {
    display: none !important;
}

/* Hover limpio: solo borde + sombra exterior (no tapa contenido) */
.bf-card:hover,
.bf-card:focus-visible {
    transform: translateY(-8px);
    border-color: var(--bf-card-accent, var(--bf-red));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 30px var(--bf-card-accent-glow, rgba(233, 73, 68, 0.45));
}

/* Colores por tarjeta (paleta oficial) */
.bf-card-1 {
    --bf-card-accent: var(--bf-red);
    --bf-card-accent-glow: rgba(233, 73, 68, 0.55);
    border-top: 4px solid var(--bf-red);
}

.bf-card-2 {
    --bf-card-accent: var(--bf-yellow);
    --bf-card-accent-glow: rgba(255, 217, 102, 0.55);
    border-top: 4px solid var(--bf-yellow);
}

.bf-card-3 {
    --bf-card-accent: var(--bf-purple);
    --bf-card-accent-glow: rgba(114, 82, 218, 0.55);
    border-top: 4px solid var(--bf-purple);
}

/* Tarjeta destacada (Más popular) */
.bf-card-featured {
    background: linear-gradient(160deg, rgba(45, 20, 80, 0.95), rgba(20, 8, 40, 0.95));
    transform: translateY(-6px) scale(1.02);
    animation: bf-glow-border 3.5s ease-in-out infinite;
    border-color: rgba(255, 217, 102, 0.65);
    z-index: 3;
}

.bf-card-featured:hover,
.bf-card-featured:focus-visible {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--bf-yellow);
}

/* --- Cinta "Más popular" — ahora pill centrado en la parte superior de la imagen --- */
.bf-card-ribbon {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bf-yellow), #ffb800);
    color: var(--bf-dark-2);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.bf-card-ribbon i {
    margin-right: 4px;
}

/* Icono central */
.bf-card-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--bf-card-accent, var(--bf-red));
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--bf-card-accent, var(--bf-red));
    box-shadow: 0 0 20px var(--bf-card-accent-glow, rgba(233, 73, 68, 0.4));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bf-card:hover .bf-card-icon,
.bf-card:focus-visible .bf-card-icon {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 0 30px var(--bf-card-accent-glow, rgba(233, 73, 68, 0.7));
}

/* Badge */
.bf-card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--bf-card-accent, var(--bf-red));
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--bf-card-accent, var(--bf-red));
    margin-bottom: 1rem;
}

/* Título */
.bf-card-titulo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

.bf-card-lead {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bf-card-accent, var(--bf-red));
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px var(--bf-card-accent-glow, rgba(233, 73, 68, 0.45));
}

/* Precio */
.bf-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bf-price-main {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--bf-yellow);
    line-height: 1;
    text-shadow:
        0 0 12px rgba(255, 217, 102, 0.7),
        0 0 26px rgba(255, 217, 102, 0.4);
    letter-spacing: -0.02em;
}

.bf-price-label {
    font-size: 0.78rem;
    color: var(--bf-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Beneficio */
.bf-card-benefit {
    font-size: 0.85rem;
    color: var(--bf-text-muted);
    margin-bottom: 1.4rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.bf-card-benefit i {
    color: var(--bf-yellow);
}

/* CTA visual de la tarjeta */
.btn-bf-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 50px;
    background: var(--bf-card-accent, var(--bf-red));
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px var(--bf-card-accent-glow, rgba(233, 73, 68, 0.5));
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.bf-card:hover .btn-bf-card,
.bf-card:focus-visible .btn-bf-card {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--bf-card-accent-glow, rgba(233, 73, 68, 0.75));
}

.btn-bf-card i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.bf-card:hover .btn-bf-card i,
.bf-card:focus-visible .btn-bf-card i {
    transform: translateX(4px);
}

/* Ajuste de color de texto en botón de la tarjeta 2 (amarillo lleva texto oscuro) */
.bf-card-2 .btn-bf-card {
    color: var(--bf-dark-2);
}

/* ============================================================
   4. MODALES (paleta oficial)
   ============================================================ */
.bf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 0, 8, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    animation: bf-backdrop-in 0.3s ease forwards;
}

.bf-modal-backdrop[hidden] {
    display: none;
}

.bf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.bf-modal[hidden] {
    display: none;
}

.bf-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    background:
        radial-gradient(circle at 0% 0%, rgba(233, 73, 68, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(114, 82, 218, 0.18) 0%, transparent 45%),
        linear-gradient(160deg, #14062e 0%, #0a0318 100%);
    border: 2px solid rgba(255, 217, 102, 0.7);
    border-radius: var(--bf-radius-lg);
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 217, 102, 0.25),
        inset 0 0 30px rgba(255, 217, 102, 0.05);
    animation: bf-modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bf-yellow) transparent;
}

.bf-modal-panel::-webkit-scrollbar {
    width: 8px;
}

.bf-modal-panel::-webkit-scrollbar-track {
    background: transparent;
}

.bf-modal-panel::-webkit-scrollbar-thumb {
    background: var(--bf-yellow);
    border-radius: 10px;
}

.bf-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.bf-modal-close:hover,
.bf-modal-close:focus-visible {
    background: var(--bf-red);
    border-color: var(--bf-red);
    transform: rotate(90deg);
    outline: none;
    box-shadow: 0 0 20px rgba(233, 73, 68, 0.7);
}

.bf-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--bf-yellow);
    box-shadow: 0 0 24px rgba(255, 217, 102, 0.5);
    color: var(--bf-yellow);
}

.bf-icon-prueba {
    border-color: var(--bf-red);
    color: var(--bf-red);
    box-shadow: 0 0 24px rgba(233, 73, 68, 0.55);
}

.bf-icon-matricula {
    border-color: var(--bf-yellow);
    color: var(--bf-yellow);
    box-shadow: 0 0 24px rgba(255, 217, 102, 0.55);
}

.bf-icon-alumnos {
    border-color: var(--bf-purple);
    color: var(--bf-purple);
    box-shadow: 0 0 24px rgba(114, 82, 218, 0.55);
}

.bf-modal-badge {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bf-yellow);
    margin-bottom: 0.8rem;
    opacity: 0.95;
}

.bf-modal-badge.bf-badge-featured {
    color: var(--bf-yellow);
    text-shadow: 0 0 12px rgba(255, 217, 102, 0.6);
}

.bf-modal-badge i {
    margin-right: 4px;
}

.bf-modal-titular {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.22;
    color: #fff;
    text-align: center;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

.bf-modal-titular .bf-highlight {
    display: inline;
    font-size: 1em;
    line-height: inherit;
    margin: 0;
}

.bf-modal-oferta {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--bf-text-muted);
    margin-bottom: 1rem;
    text-align: left;
}

.bf-modal-oferta strong {
    color: #fff;
    font-weight: 700;
}

.bf-frase {
    display: block;
    margin-bottom: 0.65rem;
}

.bf-frase:last-child {
    margin-bottom: 0;
}

.bf-modal-plazo {
    display: block;
    background: rgba(255, 217, 102, 0.08);
    border-left: 3px solid var(--bf-yellow);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: var(--bf-text-muted);
    line-height: 1.5;
    margin-bottom: 1.6rem;
    text-align: left;
}

.bf-modal-plazo i {
    color: var(--bf-yellow);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    margin-right: 8px;
}

.bf-modal-plazo strong {
    color: var(--bf-yellow);
    font-weight: 800;
}

.bf-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bf-form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bf-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bf-yellow);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.bf-form-group label i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

.bf-form-group input[type="text"],
.bf-form-group input[type="email"],
.bf-form-group input[type="tel"] {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.bf-form-group input:focus {
    outline: none;
    border-color: var(--bf-yellow);
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.18);
}

.bf-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.bf-form-group input.bf-input-error {
    border-color: var(--bf-red);
    box-shadow: 0 0 0 3px rgba(233, 73, 68, 0.2);
}

.bf-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.4rem 0 0.4rem;
    text-align: left;
}

.bf-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--bf-yellow);
    cursor: pointer;
    flex-shrink: 0;
}

.bf-form-checkbox label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--bf-text-muted);
    cursor: pointer;
}

.bf-form-checkbox a {
    color: var(--bf-yellow);
    text-decoration: underline;
    font-weight: 600;
}

.bf-form-checkbox a:hover {
    color: #fff;
}

.btn-bf-modal-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.4rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--bf-yellow), #ffb800);
    color: var(--bf-dark-2);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow:
        0 10px 26px rgba(255, 217, 102, 0.4),
        0 0 22px rgba(233, 73, 68, 0.25);
}

.btn-bf-modal-cta:hover:not(:disabled),
.btn-bf-modal-cta:focus-visible:not(:disabled) {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow:
        0 14px 34px rgba(255, 217, 102, 0.55),
        0 0 32px rgba(233, 73, 68, 0.4);
    outline: none;
}

.btn-bf-modal-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.bf-cta-text,
.bf-cta-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bf-cta-loading[hidden] {
    display: none;
}

.bf-cta-loading .fa-spinner {
    animation: bf-spin 0.9s linear infinite;
}

.bf-modal-aclaracion {
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 0.6rem;
    font-style: italic;
}

.bf-form-feedback {
    display: none;
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
}

.bf-form-feedback[hidden] {
    display: none;
}

.bf-form-feedback.is-success {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.bf-form-feedback.is-error {
    display: block;
    background: rgba(233, 73, 68, 0.14);
    border: 1px solid var(--bf-red);
    color: #ff8a86;
}

body.bf-modal-open {
    overflow: hidden;
    padding-right: var(--bf-scrollbar-width, 0);
}

/* ============================================================
   5. RESPONSIVE
   ============================================================ */

/* Tablets grandes */
@media (max-width: 1024px) {
    .bf-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .bf-card {
        padding: 0 1.2rem 1.5rem;
    }

    .bf-card::before {
        height: 150px;
        margin: 0 -1.2rem 1.2rem;
    }

    .bf-card-featured {
        transform: translateY(-4px) scale(1.01);
    }

    .bf-price-main {
        font-size: 2rem;
    }

    .bf-card-titulo {
        font-size: 1rem;
    }

    .bf-card-icon {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }
}

/* Tablets pequeñas y móvil horizontal */
@media (max-width: 900px) {
    .section-black-friday {
        padding: 4rem 0;
    }

    .bf-cards-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        gap: 1.5rem;
    }

    .bf-card {
        padding: 0 1.4rem 1.6rem;
    }

    .bf-card::before {
        height: 220px;
        margin: 0 -1.4rem 1.4rem;
    }

    .bf-card-featured {
        transform: none;
    }

    .bf-card-featured:hover {
        transform: translateY(-8px);
    }

    .bf-modal-panel {
        padding: 2rem 1.4rem 1.6rem;
    }

    .bf-modal-titular {
        font-size: 1.3rem;
    }

    .bf-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .bf-header {
        margin-bottom: 2.5rem;
    }

    .bf-titulo {
        font-size: 1.9rem;
    }

    .bf-highlight {
        font-size: 1.15em;
    }

    .bf-subtitulo {
        font-size: 0.98rem;
    }

    .bf-badge-evento {
        font-size: 0.85rem;
        padding: 0.55rem 1.2rem;
        letter-spacing: 0.06em;
    }

    .bf-nota {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    .bf-card {
        padding: 0 1.4rem 1.5rem;
    }

    .bf-card::before {
        height: 200px;
        margin: 0 -1.4rem 1.3rem;
    }

    .bf-price-main {
        font-size: 2.1rem;
    }

    .btn-bf-card {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .bf-modal {
        padding: 0.8rem;
        align-items: flex-start;
    }

    .bf-modal-panel {
        max-height: 95vh;
        padding: 1.8rem 1.2rem 1.4rem;
        border-radius: 20px;
    }

    .bf-modal-titular {
        font-size: 1.2rem;
    }

    .bf-modal-oferta {
        font-size: 0.9rem;
    }

    .bf-modal-plazo {
        font-size: 0.82rem;
        padding: 0.7rem 0.85rem;
    }

    .bf-form-group label {
        font-size: 0.78rem;
    }

    .bf-form-group input {
        font-size: 0.9rem;
        padding: 0.8rem 0.9rem;
    }

    .btn-bf-modal-cta {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }

    .bf-shape-1,
    .bf-shape-3 {
        font-size: 3.5rem;
    }

    .bf-shape-2,
    .bf-shape-5 {
        font-size: 2.5rem;
    }

    .bf-shape-4 {
        font-size: 2rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .section-black-friday {
        padding: 3rem 0;
    }

    .bf-titulo {
        font-size: 1.55rem;
    }

    .bf-highlight {
        font-size: 1.12em;
    }

    .bf-subtitulo {
        font-size: 0.9rem;
    }

    .bf-badge-evento {
        font-size: 0.72rem;
        padding: 0.45rem 1rem;
        letter-spacing: 0.04em;
    }

    .bf-nota {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        border-width: 1.5px;
    }

    .bf-card {
        padding: 0 1.1rem 1.3rem;
    }

    .bf-card::before {
        height: 170px;
        margin: 0 -1.1rem 1.1rem;
    }

    .bf-card-titulo {
        font-size: 0.95rem;
    }

    .bf-card-lead {
        font-size: 0.9rem;
    }

    .bf-price-main {
        font-size: 1.9rem;
    }

    .bf-price-label {
        font-size: 0.7rem;
    }

    .bf-card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .bf-card-badge {
        font-size: 0.62rem;
        padding: 0.25rem 0.75rem;
    }

    .bf-card-ribbon {
        font-size: 0.65rem;
        padding: 0.35rem 0.9rem;
        top: 10px;
    }

    .bf-modal-panel {
        padding: 1.6rem 1rem 1.2rem;
    }

    .bf-modal-titular {
        font-size: 1.1rem;
    }

    .bf-modal-oferta {
        font-size: 0.85rem;
    }

    .bf-modal-aclaracion {
        font-size: 0.68rem;
    }

    .bf-modal-close {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
    }

    .bf-form-group label {
        font-size: 0.74rem;
    }

    .bf-form-group input {
        font-size: 0.88rem;
        padding: 0.75rem 0.85rem;
    }

    .bf-form-checkbox label {
        font-size: 0.75rem;
    }

    .btn-bf-modal-cta {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }
}

/* ============================================================
   6. CONTRASTE ALTO
   ============================================================ */
body.high-contrast .section-black-friday {
    background: #000 !important;
    border-color: #ffcc00 !important;
}

body.high-contrast .bf-card {
    background: #111 !important;
    border-color: #ffcc00 !important;
    box-shadow: none !important;
}

body.high-contrast .bf-card-featured {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 0 2px #ffcc00 !important;
    animation: none !important;
}

body.high-contrast .bf-card::before {
    border-bottom-color: #ffcc00 !important;
    opacity: 0.85 !important;
}

body.high-contrast .bf-card-glow {
    display: none !important;
}

body.high-contrast .bf-titulo,
body.high-contrast .bf-highlight,
body.high-contrast .bf-card-titulo,
body.high-contrast .bf-card-lead,
body.high-contrast .bf-price-main,
body.high-contrast .bf-modal-titular,
body.high-contrast .bf-modal-badge,
body.high-contrast .bf-badge-evento,
body.high-contrast .bf-nota {
    color: #ffcc00 !important;
    text-shadow: none !important;
}

body.high-contrast .bf-subtitulo,
body.high-contrast .bf-card-benefit,
body.high-contrast .bf-price-label,
body.high-contrast .bf-modal-oferta,
body.high-contrast .bf-modal-aclaracion {
    color: #ddd !important;
}

body.high-contrast .bf-card-icon {
    border-color: #ffcc00 !important;
    color: #ffcc00 !important;
    box-shadow: none !important;
    background: #1a1a1a !important;
}

body.high-contrast .btn-bf-card,
body.high-contrast .btn-bf-modal-cta {
    background: #ffcc00 !important;
    color: #000 !important;
    box-shadow: none !important;
}

body.high-contrast .bf-modal-panel {
    background: #0a0a0a !important;
    border-color: #ffcc00 !important;
    box-shadow: 0 0 0 2px #ffcc00 !important;
}

body.high-contrast .bf-modal-backdrop {
    background: rgba(0, 0, 0, 0.95) !important;
}

body.high-contrast .bf-modal-close {
    background: #222 !important;
    border-color: #ffcc00 !important;
    color: #ffcc00 !important;
}

body.high-contrast .bf-modal-close:hover {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .bf-modal-icon {
    background: #1a1a1a !important;
    border-color: #ffcc00 !important;
    color: #ffcc00 !important;
    box-shadow: none !important;
}

body.high-contrast .bf-form-group label {
    color: #ffcc00 !important;
}

body.high-contrast .bf-form-group input {
    background: #1a1a1a !important;
    border-color: #ffcc00 !important;
    color: #fff !important;
}

body.high-contrast .bf-form-group input:focus {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3) !important;
}

body.high-contrast .bf-form-checkbox label {
    color: #ddd !important;
}

body.high-contrast .bf-form-checkbox a {
    color: #ffcc00 !important;
}

body.high-contrast .bf-modal-plazo {
    background: #1a1a1a !important;
    border-color: #ffcc00 !important;
    color: #ddd !important;
}

body.high-contrast .bf-modal-plazo i,
body.high-contrast .bf-modal-plazo strong {
    color: #ffcc00 !important;
}

body.high-contrast .bf-form-feedback.is-success,
body.high-contrast .bf-form-feedback.is-error {
    background: #1a1a1a !important;
    border-color: #ffcc00 !important;
    color: #fff !important;
}

body.high-contrast .bf-card-ribbon {
    background: #ffcc00 !important;
    color: #000 !important;
}

body.high-contrast .bf-bg-shapes {
    display: none !important;
}

body.high-contrast .bf-nota {
    background: #1a1a1a !important;
    border-color: #ffcc00 !important;
    box-shadow: none !important;
}

/* ============================================================
   7. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    .bf-pulse-anim,
    .bf-card-featured,
    .bf-shape {
        animation: none !important;
    }

    .bf-card,
    .bf-card-icon,
    .bf-btn-card,
    .btn-bf-card,
    .btn-bf-modal-cta,
    .bf-modal-panel {
        transition-duration: 0.01ms !important;
    }

    .bf-cta-loading .fa-spinner {
        animation-duration: 2s;
    }
}

body.high-contrast .bf-card-badge {
    color: #ffcc00 !important;
    border-color: #ffcc00 !important;
    background: #1a1a1a !important;
}

.bf-form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #1c1528;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FFD966' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
}

.bf-form-group select:focus {
    outline: none;
    border-color: var(--bf-yellow);
    box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.18);
}

body.high-contrast .bf-form-group select {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #ffcc00 !important;
}