*, *::before, *::after { box-sizing: border-box; }

body {
    background: url('/image/background.jpg') center top no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Layout */
.page-wrap {
    min-height: 100vh;
    padding: 90px 0 60px;
}

/* Header */
.hero {
    text-align: center;
    padding: 20px 16px 36px;
}
.hero .logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(0,80,255,.4));
}
.hero h1 {
    font-size: clamp(22px, 5vw, 40px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 10px;
}
.hero h1 span { color: #0dcbff; }
.hero p {
    color: rgba(255,255,255,.65);
    font-size: 15px;
    margin: 0;
}
@media (max-width: 900px) {
    .hero { padding: 14px 16px 24px; }
    .hero .logo { height: 48px; margin-bottom: 14px; }
    .page-wrap { padding-top: 76px; }
}

/* Planes container */
.planes-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pantallas (main / sub-planes) */
.screen {
    transition: opacity .3s ease, transform .3s ease;
}
.screen.hidden {
    display: none;
}

/* Grid de planes */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .planes-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 14px;
    }
    .planes-wrap { padding: 0 14px; }
}

/*  Card base  */
.plan-card {
    background: rgba(0, 20, 90, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 80, 200, 0.35);
    border-radius: 18px;
    padding: 30px 24px 26px;
    text-align: center;
    cursor: pointer;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
/* Barra de color superior siempre visible */
.plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003FE3, #0dcbff);
}
.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 80, 255, 0.7);
    box-shadow: 0 16px 48px rgba(0, 50, 200, 0.5);
    color: inherit;
    text-decoration: none;
}

/* Card: ABONADO (destacado) */
.plan-card.featured {
    background: rgba(0, 20, 90, 0.88);
    border: 2px solid #0050FF;
    box-shadow: 0 4px 32px rgba(0, 80, 255, 0.4);
}
.plan-card.featured::before {
    background: linear-gradient(90deg, #0050FF, #0dcbff);
    height: 4px;
}
.badge-popular {
    position: absolute;
    top: 14px; right: 14px;
    background: #0050FF;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Card: NO ABONADO */
.plan-card.no-abonado-trigger {
    cursor: pointer;
    border-color: rgba(13, 203, 255, 0.35);
}
.plan-card.no-abonado-trigger::before {
    background: linear-gradient(90deg, #0dcbff, #003FE3);
}
.plan-card.no-abonado-trigger:hover {
    border-color: #0dcbff;
    box-shadow: 0 16px 48px rgba(13, 203, 255, 0.3);
}
.plan-card .expand-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.45);
    letter-spacing: .5px;
}

/* Icono del plan */
.plan-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(13,203,255,.35);
    box-shadow: 0 0 0 1px rgba(13,203,255,.1);
    padding: 6px;
    background: rgba(255,255,255,.05);
    filter: drop-shadow(0 4px 16px rgba(0,80,255,.4));
}
@media (max-width: 900px) {
    .plan-icon { width: 70px; height: 70px; }
}

/* Nombre plan */
.plan-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 6px;
}
.plan-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1;
}

/* Precio */
.plan-price {
    margin-bottom: 20px;
}
.plan-price .amount {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.plan-price .amount sup { font-size: 20px; vertical-align: super; }
.plan-price .period {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    display: block;
    margin-top: 2px;
}
.plan-price .inscripcion {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    margin-top: 6px;
}

/* Divisor */
.plan-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #003FE3, #0dcbff);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* Beneficios */
.btn-toggle-benef {
    display: none; /* solo visible en móvil */
}
@media (max-width: 900px) {
    .btn-toggle-benef {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: rgba(255,255,255,.07);
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 8px;
        color: rgba(255,255,255,.8);
        font-size: 13px;
        font-weight: 700;
        padding: 10px 14px;
        cursor: pointer;
        margin-bottom: 12px;
        transition: background .2s;
        letter-spacing: .3px;
    }
    .btn-toggle-benef:hover { background: rgba(255,255,255,.12); }
    .btn-toggle-benef i {
        font-size: 11px;
        transition: transform .25s;
        color: #0dcbff;
    }
    .btn-toggle-benef.abierto i { transform: rotate(180deg); }

    .plan-benefits {
        display: none;
        margin-top: 6px !important;
    }
    .plan-benefits.visible { display: block; }
}

.plan-benefits {
    list-style: none;
    padding: 0; margin: 0 0 28px;
    text-align: left;
    width: 100%;
}
.plan-benefits li {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.plan-benefits li:last-child { border-bottom: none; }
.plan-benefits li i {
    color: #0dcbff;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}
.plan-benefits li i.fa-times { color: rgba(255,255,255,.3); }

/* Botón CTA */
.btn-plan {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #003FE3, #0060ff);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,63,227,.5);
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #0050ff, #0080ff);
}
.btn-plan.btn-cyan {
    background: linear-gradient(135deg, #0080cc, #0dcbff);
    color: #fff;
}
.btn-plan.btn-cyan:hover {
    box-shadow: 0 8px 24px rgba(13,203,255,.35);
    background: linear-gradient(135deg, #0099e6, #3dd8ff);
}
.btn-plan.btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(0,80,255,.5);
    color: rgba(255,255,255,.85);
}
.btn-plan.btn-ghost:hover {
    background: rgba(0,80,255,.15);
    border-color: #0050ff;
    box-shadow: 0 6px 20px rgba(0,80,255,.3);
}

/* Header sub-planes */
.subplanes-header {
    text-align: center;
    margin-bottom: 36px;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.55);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    transition: color .2s;
}
.back-btn:hover { color: #fff; }
.subplanes-header h2 {
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 8px;
}
.subplanes-header p {
    color: rgba(255,255,255,.5);
    font-size: 15px;
    margin: 0;
}

/* Sub-grid */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 640px;
    margin: 0 auto;
}
@media (max-width: 760px) {
    .sub-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* Sub-card */
.sub-card {
    background: rgba(0, 20, 90, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(var(--accent-rgb, 0,80,255), 0.4);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.sub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent, #003FE3);
}
.sub-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent, #003FE3);
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    color: inherit;
    text-decoration: none;
}

/* Bordes por sub-plan */
.sub-card.azul     { border-color: rgba(0, 80, 255, 0.5); }
.sub-card.internat { border-color: rgba(13, 203, 255, 0.5); }
.sub-card.junior   { border-color: rgba(121, 176, 247, 0.5); }

/* Colores de acento por sub-plan */
.sub-card.azul       { --accent: #0050ff; }
.sub-card.internat   { --accent: #0dcbff; }
.sub-card.junior     { --accent: #79b0f7; }

.sub-card .sub-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(13,203,255,.35);
    box-shadow: 0 0 0 1px rgba(13,203,255,.1);
    flex-shrink: 0;
}
.sub-card .sub-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    display: block;
}
@media (max-width: 900px) {
    .sub-card .sub-icon { max-width: 110px; }
}

.sub-card .sub-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.sub-card .sub-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.sub-card .sub-divider {
    width: 30px; height: 2px;
    background: var(--accent, #003FE3);
    border-radius: 2px;
    margin: 0 auto 14px;
}
.sub-card .sub-desc {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 20px;
    line-height: 1.5;
}
.sub-card .btn-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--accent, #003FE3);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: filter .2s, box-shadow .2s;
    margin-top: auto;
}
.sub-card .btn-sub:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    text-decoration: none;
    color: #fff;
}

/* Precio en sub-card */
.sub-price {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}
.sub-price .sp-amount {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.sub-price .sp-amount sup { font-size: 15px; vertical-align: super; }
.sub-price .sp-period {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    display: block;
    margin-top: 3px;
}
.sub-price .sp-inscri {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    margin-top: 5px;
}

/* Footer nota */
.nota {
    text-align: center;
    margin-top: 44px;
    font-size: 12px;
    color: rgba(255,255,255,.3);
    line-height: 1.7;
}

/* Link "ya soy socio" */
.ya-socio {
    text-align: center;
    margin-top: 36px;
}
.ya-socio a {
    color: rgba(255,255,255,.5);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}
.ya-socio a:hover { color: #fff; border-color: rgba(255,255,255,.6); }
