/* =============================================================
   DOXEN – plans.css
   ============================================================= */

/* =============================================================
   HERO
   ============================================================= */
.plans-hero {
    padding-top: calc(var(--navbar-h, 66px) + 2rem);
    padding-bottom: 3rem;
    background: var(--bg, #F5EFE6);
}

.plans-hero__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.plans-hero__title {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.plans-hero__note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: #555;
    background: #fff;
    border: 1.5px solid #e0d8cc;
    border-radius: 999px;
    padding: .45rem 1.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.plans-hero__note svg { color: #b68a43; flex-shrink: 0; }

/* =============================================================
   PLAN CARDS GRID
   ============================================================= */
.plans-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

/* ── Single card ───────────────────────────────────────────── */
.plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    border: 2.5px solid #d0c8bc;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .7rem;
    transition: transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

/* Featured */
.plan-card--featured { border-width: 2px; }

/* Badge */
.plan-card__badge-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
}
.plan-card__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: #fff;
    padding: .28rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Top: icono encima del nombre, centrado ────────────────── */
.plan-card__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    width: 100%;
    text-align: center;
}
.plan-card__header { display: contents; }
.plan-card__header-left { display: contents; }

/* ── Icono ─────────────────────────────────────────────────── */
.plan-card__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Nombre y descripción ──────────────────────────────────── */
.plan-card__name {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .06em;
    margin: 0;
    line-height: 1.1;
}
.plan-card__use {
    font-size: .9rem;
    color: #999;
    margin: .1rem 0 0;
    line-height: 1.3;
}

/* ── Divider ───────────────────────────────────────────────── */
.plan-card__divider { width: 100%; height: 1px; margin: 0; }

/* ── Créditos ──────────────────────────────────────────────── */
.plan-card__credits {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    line-height: 1;
}
.plan-card__credits-num {
    font-family: "Times New Roman", Times, serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}
.plan-card__credits-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
}

/* ── Precio ────────────────────────────────────────────────── */
.plan-card__price {
    font-size: .95rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .2rem .9rem;
    margin: 0;
}

/* ── Reach box ─────────────────────────────────────────────── */
.plan-card__reach {
    display: flex;
    align-items: center;
    gap: .55rem;
    border-radius: 8px;
    padding: .75rem 1.25rem;
    font-size: .88rem;
    width: 100%;
    text-align: left;
}
.plan-card__reach svg { flex-shrink: 0; width: 24px; height: 24px; flex-shrink: 0; }
.plan-card__reach span { line-height: 1.7; }
.plan-card__reach strong { font-weight: 900; }

/* ── Access label ──────────────────────────────────────────── */
.plan-card__access-label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    width: 100%;
    text-align: left;
    margin-bottom: -.25rem;
}

/* ── Docs list ─────────────────────────────────────────────── */
.plan-card__docs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    width: 100%;
    text-align: left;
    flex: 1;
}
.plan-card__docs-item {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .8rem;
    color: #1a1a1a;
    line-height: 1.35;
}
.plan-card__docs-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.plan-card__docs-check svg { color: #fff; }
.plan-card__docs-text { flex: 1; }

/* ── Button ────────────────────────────────────────────────── */
.plan-card__btn {
    margin-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid;
    width: 100%;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}
.plan-card__btn--outline {
    background: transparent;
    border-color: #1a1a1a;
    color: #1a1a1a;
}
.plan-card__btn--outline:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-1px);
}
.plan-card__btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* =============================================================
   DOCUMENTO – SECCIÓN CONSUMO
   ============================================================= */
.plans-how {
    padding: 2.5rem 0 3rem;
    background: #fff;
}

.plans-how__title {
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 900;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2rem;
}

/* ── Document grid ─────────────────────────────────────────── */
.plans-docgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.plans-doccard {
    border: 1.5px solid #d0c8bc;
    border-radius: 10px;
    overflow: hidden;
    font-size: .82rem;
    background: #fff;
}

.plans-doccard__head {
    background: #203A43;
    color: #fff;
    padding: .55rem .85rem;
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    line-height: 1.35;
}
.plans-doccard__num {
    font-weight: 900;
    flex-shrink: 0;
}

.plans-doccard__subhead {
    display: flex;
    background: #f5f0e8;
    border-bottom: 1.5px solid #d0c8bc;
    padding: .3rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    color: #7a6a55;
}

.plans-doccard__col-delitos { flex: 1; }
.plans-doccard__col-credits {
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.plans-doccard__row {
    display: flex;
    align-items: center;
    padding: .3rem .85rem;
    border-bottom: 1px solid #f0ebe3;
    font-size: .8rem;
    color: #333;
}
.plans-doccard__row:last-of-type { border-bottom: none; }
.plans-doccard__row--alt { background: #faf7f3; }

.plans-doccard__credits-val {
    font-weight: 700;
    color: #d48e18;
}

.plans-doccard__footer {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    font-size: .72rem;
    color: #999;
    border-top: 1px solid #f0ebe3;
    background: #fafafa;
}
.plans-doccard__footer svg { color: #b68a43; flex-shrink: 0; }

/* ── Bottom info bar ───────────────────────────────────────── */
.plans-bottom-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    background: #fff;
    border: 1.5px solid #d0c8bc;
    border-radius: 10px;
    padding: .9rem 1.5rem;
    flex-wrap: wrap;
}

.plans-bottom-bar__item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    flex: 1;
    min-width: 220px;
}

.plans-bottom-bar__item svg { color: #b68a43; flex-shrink: 0; margin-top: 2px; }

.plans-bottom-bar__item p {
    font-size: .8rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.plans-bottom-bar__sep {
    width: 1px;
    height: 36px;
    background: #e0d8cc;
    flex-shrink: 0;
    align-self: center;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
    .plans-docgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .plans-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }
    .plans-bottom-bar__sep { display: none; }
}

@media (max-width: 560px) {
    .plans-hero { padding-top: calc(var(--navbar-h, 58px) + 1.5rem); }
    .plans-docgrid { grid-template-columns: 1fr; }
    .plans-hero__title { font-size: 1.4rem; }
}
