/* ===========================================================
   landing-v2.css — Rediseño del landing de Api JC
   Hero moderno + tira de entidades + tarjetas de APIs.
   Convive con plans.css (planes) y landing-motion.css (animación).
   =========================================================== */

:root {
    --v2-primary: #7c3aed;
    --v2-primary-2: #a855f7;
    --v2-grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --v2-title: #14161f;
    --v2-text: #4b5563;
    --v2-muted: #64748b;
    --v2-line: #e9e7f2;
    --v2-surface: #ffffff;
    --v2-bg-soft: #faf9ff;
    --v2-radius: 16px;
    --v2-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(80, 40, 160, .06);
    --v2-shadow-lg: 0 12px 40px rgba(80, 40, 160, .10);
}

/* ============================================================
   HERO
   ============================================================ */
.v2-hero {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--v2-bg-soft) 100%);
    padding: 3.5rem 1rem 3rem;
    overflow: hidden;
}

/* círculo decorativo del borde izquierdo */
.v2-hero__deco {
    position: absolute;
    left: -170px;
    top: 40px;
    width: 320px;
    height: 320px;
    border: 1.5px solid rgba(124, 58, 237, .16);
    border-radius: 50%;
    pointer-events: none;
}

.v2-hero__deco::before,
.v2-hero__deco::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--v2-primary-2);
    opacity: .5;
}

.v2-hero__deco::before { top: 18%; right: 6%; }
.v2-hero__deco::after  { bottom: 14%; right: 18%; }

.v2-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ---------- Columna izquierda ---------- */
.v2-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #f4eeff;
    color: var(--v2-primary);
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.v2-hero__title {
    font-size: clamp(2.1rem, 4.4vw, 3.35rem);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--v2-title);
    margin: 0 0 1.15rem;
}

.v2-hero__title em {
    display: block;
    font-style: normal;
    background: var(--v2-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--v2-primary);
}

.v2-hero__lead {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--v2-text);
    margin: 0 0 1.9rem;
    max-width: 33rem;
}

/* ---------- Botones ---------- */
.v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 2.4rem;
}

.v2-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border-radius: 12px;
    padding: .85rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.v2-btn--primary {
    background: var(--v2-grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
}

.v2-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(124, 58, 237, .34);
}

.v2-btn--ghost {
    background: #fff;
    color: var(--v2-title);
    border-color: var(--v2-line);
    box-shadow: var(--v2-shadow);
}

.v2-btn--ghost:hover {
    color: var(--v2-primary);
    border-color: rgba(124, 58, 237, .3);
    transform: translateY(-2px);
}

/* ---------- Señales de confianza ---------- */
.v2-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.v2-trust__item {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.v2-trust__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f4eeff;
    color: var(--v2-primary);
    font-size: .95rem;
    flex-shrink: 0;
}

.v2-trust__label {
    display: block;
    font-size: .87rem;
    font-weight: 700;
    color: var(--v2-primary);
    line-height: 1.3;
}

.v2-trust__desc {
    display: block;
    font-size: .78rem;
    color: var(--v2-muted);
}

/* ============================================================
   TARJETA DEL HERO (Personas y Empresas)
   ============================================================ */
.v2-card {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: var(--v2-shadow-lg);
}

.v2-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

/* pestañas Personas / Empresas */
.v2-tabs {
    display: flex;
    gap: .5rem;
}

.v2-tab {
    background: #f7f6fb;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: .55rem .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 600;
    color: var(--v2-muted);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.v2-tab i { font-size: 1rem; }

.v2-tab:hover { color: var(--v2-primary); }

.v2-tab.is-active {
    background: #f4eeff;
    border-color: rgba(124, 58, 237, .25);
    color: var(--v2-primary);
}

.v2-chip-ok {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #e8fbf3;
    color: #158048;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.v2-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--v2-title);
    margin: 0 0 .35rem;
}

.v2-card__lead {
    font-size: .88rem;
    color: var(--v2-muted);
    margin: 0 0 1.2rem;
}

.v2-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-bottom: 1.2rem;
}

.v2-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #faf9fd;
    border: 1px solid #f0eef7;
    border-radius: 11px;
    padding: .7rem .8rem;
    font-size: .84rem;
    font-weight: 500;
    color: #374151;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.v2-item:hover {
    background: #f4eeff;
    border-color: rgba(124, 58, 237, .2);
    transform: translateX(2px);
}

.v2-item i:first-child {
    color: var(--v2-primary);
    width: 1.1em;
    text-align: center;
    flex-shrink: 0;
}

.v2-item__arrow {
    margin-left: auto;
    color: #c4c0d4;
    font-size: .75rem;
    flex-shrink: 0;
}

.v2-card__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--v2-primary);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.v2-card__link i { transition: transform .2s ease; }
.v2-card__link:hover { color: var(--v2-primary); }
.v2-card__link:hover i { transform: translateX(4px); }

/* ============================================================
   TIRA DE ENTIDADES OFICIALES
   ============================================================ */
.v2-entities {
    padding: 0 1rem 3.5rem;
    background: var(--v2-bg-soft);
}

.v2-entities__inner {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow);
    padding: 1.4rem 1.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.v2-entities__label {
    font-size: .82rem;
    color: var(--v2-muted);
    font-weight: 500;
    border-right: 1px solid var(--v2-line);
    padding-right: 1.5rem;
    flex-shrink: 0;
}

.v2-entities__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.25rem;
    flex: 1;
    justify-content: space-around;
}

.v2-entity {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #94a3b8;
    filter: grayscale(1);
    opacity: .75;
    transition: color .25s ease, opacity .25s ease, filter .25s ease, transform .25s ease;
}

.v2-entity small {
    display: block;
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-align: right;
}

.v2-entity:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
}

.v2-entity--sunat:hover  { color: #c8102e; }
.v2-entity--reniec:hover { color: #1f3b73; }
.v2-entity--mtc:hover    { color: #0b6fb8; }
.v2-entity--aduanas:hover{ color: #1d4ed8; }

.v2-entities__more {
    font-size: .82rem;
    color: var(--v2-muted);
    font-style: italic;
}

/* ============================================================
   SECCIÓN "NUESTRAS APIs"
   ============================================================ */
.v2-apis {
    padding: 4rem 1rem;
    background: #fff;
}

.v2-apis__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .85fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

.v2-eyebrow {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--v2-primary);
    margin-bottom: .85rem;
}

.v2-apis__title {
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--v2-title);
    margin: 0 0 1rem;
}

.v2-apis__title em {
    font-style: normal;
    color: var(--v2-primary);
}

.v2-apis__lead {
    font-size: .93rem;
    line-height: 1.65;
    color: var(--v2-muted);
    margin: 0 0 1.5rem;
}

.v2-apis__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v2-feature {
    background: #fff;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    padding: 1.4rem;
    box-shadow: var(--v2-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.v2-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--v2-shadow-lg);
    border-color: rgba(124, 58, 237, .22);
}

.v2-feature__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.v2-ic-green  { background: #e6f7ee; color: #10b981; }
.v2-ic-blue   { background: #e4efff; color: #3b82f6; }
.v2-ic-purple { background: #f3e8ff; color: #8b5cf6; }
.v2-ic-orange { background: #fff2e0; color: #f59e0b; }

.v2-feature__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v2-title);
    margin: 0 0 .5rem;
}

.v2-feature__text {
    font-size: .84rem;
    line-height: 1.6;
    color: var(--v2-muted);
    margin: 0 0 1rem;
}

.v2-feature__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--v2-primary);
    text-decoration: none;
}

.v2-feature__link i { transition: transform .2s ease; }
.v2-feature__link:hover i { transform: translateX(4px); }

/* ============================================================
   PLANES (rediseño)
   ============================================================ */
.v2-plans {
    padding: 4.5rem 1rem;
    background: linear-gradient(180deg, var(--v2-bg-soft) 0%, #ffffff 100%);
}

.v2-plans__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.v2-plans__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.v2-plans__title {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 800;
    color: var(--v2-title);
    margin: 0 0 .7rem;
    letter-spacing: -.01em;
}

.v2-plans__lead {
    font-size: .96rem;
    line-height: 1.6;
    color: var(--v2-muted);
    margin: 0;
}

/* ---------- Interruptor Mensual / Anual ---------- */
.v2-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin: 1.8rem 0 2.6rem;
}

.v2-switch__group {
    display: inline-flex;
    background: #f1eef9;
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
}

.v2-switch__btn {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: .55rem 1.4rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--v2-muted);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.v2-switch__btn.is-active {
    background: #fff;
    color: var(--v2-primary);
    box-shadow: 0 2px 8px rgba(80, 40, 160, .14);
}

.v2-switch__save {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #e8fbf3;
    color: #158048;
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .78rem;
    font-weight: 700;
}

/* ---------- Grupo de planes por tipo ---------- */
.v2-plangroup {
    margin-bottom: 3.5rem;
}

.v2-plangroup:last-child { margin-bottom: 0; }

.v2-plangroup__head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .5rem;
}

.v2-plangroup__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.v2-plangroup__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--v2-title);
    margin: 0;
}

.v2-plangroup__lead {
    font-size: .89rem;
    color: var(--v2-muted);
    margin: 0 0 1.6rem;
}

.v2-plangrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}

/* ---------- Tarjeta de plan ---------- */
.v2-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    padding: 1.6rem 1.35rem 1.35rem;
    box-shadow: var(--v2-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.v2-plan:hover {
    transform: translateY(-6px);
    box-shadow: var(--v2-shadow-lg);
    border-color: rgba(124, 58, 237, .25);
}

/* plan destacado (el más contratado, dato real) */
.v2-plan--top {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--v2-primary), var(--v2-shadow-lg);
}

.v2-plan__tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v2-grad);
    color: #fff;
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .35);
}

.v2-plan__name {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--v2-title);
    margin: 0 0 .9rem;
}

.v2-plan__price {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: .2rem;
}

.v2-plan__currency {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v2-muted);
}

.v2-plan__amount {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--v2-title);
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.v2-plan__period {
    font-size: .85rem;
    font-weight: 600;
    color: var(--v2-muted);
}

.v2-plan__note {
    display: block;
    font-size: .74rem;
    color: #9ca3af;
    margin-bottom: 1.1rem;
    min-height: 1.1em;
}

.v2-plan__sep {
    border: 0;
    border-top: 1px solid var(--v2-line);
    margin: 0 0 1.1rem;
}

.v2-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}

.v2-plan__features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .845rem;
    line-height: 1.45;
    color: #4b5563;
}

.v2-plan__features li > i {
    color: #10b981;
    font-size: .78rem;
    margin-top: .28em;
    flex-shrink: 0;
}

.v2-plan__features li.is-space {
    height: .2rem;
    padding: 0;
}

.v2-plan__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    border: 1px solid var(--v2-line);
    background: #fff;
    color: var(--v2-title);
    border-radius: 11px;
    padding: .78rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.v2-plan__cta:hover {
    background: #f7f4ff;
    color: var(--v2-primary);
    border-color: rgba(124, 58, 237, .32);
    transform: translateY(-2px);
}

.v2-plan--top .v2-plan__cta {
    background: var(--v2-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .28);
}

.v2-plan--top .v2-plan__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(124, 58, 237, .36);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .v2-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .v2-hero__deco { display: none; }

    .v2-apis__inner { grid-template-columns: 1fr; }

    .v2-apis__grid { grid-template-columns: repeat(2, 1fr); }

    .v2-entities__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .v2-entities__label {
        border-right: 0;
        border-bottom: 1px solid var(--v2-line);
        padding: 0 0 1rem;
    }
}

@media (max-width: 575px) {
    .v2-hero { padding-top: 2.5rem; }

    .v2-plangrid { grid-template-columns: 1fr; }

    .v2-plan--top { margin-top: .8rem; }

    .v2-apis__grid { grid-template-columns: 1fr; }

    .v2-card__grid { grid-template-columns: 1fr; }

    .v2-actions .v2-btn { flex: 1; justify-content: center; }

    .v2-trust { gap: 1rem; }

    .v2-entities__list { gap: 1.5rem; }

    .v2-card__head { flex-direction: column; }
}

/* Respeta a quien pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .v2-btn, .v2-feature, .v2-item, .v2-entity,
    .v2-card__link i, .v2-feature__link i {
        transition: none !important;
    }
}
