/* ===========================================================
   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: 2.2rem 1rem 3rem;
    overflow: hidden;
}

/* círculo decorativo del borde izquierdo */
/* El aro gira despacio. Un circulo perfecto rotando no se notaria: lo que
   se ve moverse son los cuatro puntos de adentro, que orbitan con el.
   Una vuelta por minuto, para que acompañe sin distraer. */
.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;
    animation: v2-deco-giro 60s linear infinite;
    will-change: transform;
}

@keyframes v2-deco-giro {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* quien pidio menos movimiento en su sistema no lo ve girar */
@media (prefers-reduced-motion: reduce) {
    .v2-hero__deco { animation: none; }
}

/* Cada punto se lleva al centro y desde ahi se gira y se empuja 160px, que es
   el radio del aro. Asi quedan clavados sobre la circunferencia y equidistantes. */
.v2-hero__deco i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--v2-primary-2);
    opacity: .5;
}

.v2-hero__deco i:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-160px); }
.v2-hero__deco i:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateY(-160px); }
.v2-hero__deco i:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateY(-160px); }
.v2-hero__deco i:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateY(-160px); }

.v2-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* la columna del texto se lleva un poco mas, asi la tarjeta corre a la
       derecha. Debajo de 991px esto no aplica: ahi se apilan. */
    grid-template-columns: 1.08fr .92fr;
    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;
}

.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-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 1.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;
}

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

.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-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; }

/* ============================================================
   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;
    /* auto-FILL y no auto-fit: con auto-fit las columnas vacias se colapsan y un
       grupo con una sola tarjeta (Alertas) la estiraba a todo el ancho. Con
       auto-fill las columnas se mantienen y la tarjeta conserva su medida. */
    grid-template-columns: repeat(auto-fill, 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: 0;
    background: var(--v2-grad);
    color: #fff;
    /* mismas medidas que .pj-planes .v2-plan__cta en planes-panel.css: el
       boton de la portada y el del panel tienen que verse identicos */
    border-radius: 10px;
    padding: .6rem 1rem;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.v2-plan__cta:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.07);
    transform: translateY(-2px);
}

/* El destacado ya no cambia de color: en /planes todos van llenos. Se queda
   solo con la sombra, que es lo que lo hace resaltar. */
.v2-plan--top .v2-plan__cta {
    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-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: 1.6rem; }

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

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

    .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 {
        transition: none !important;
    }
}

/* ---------------------------------------------------------------------------
   PANTALLAS ANCHAS
   ---------------------------------------------------------------------------
   Con el tope en 1200px, arriba de 1600 el sitio queda como una isla chica en
   el medio y sobra fondo vacio a los lados.

   Ademas las secciones venian con topes distintos (1200 el hero, 1140 comercio
   exterior, 1100 como funciona), lo que a ese ancho se nota como un escalonado.
   Aqui se igualan las cinco.
   --------------------------------------------------------------------------- */
@media (min-width: 1600px) {
    .v2-hero__inner,
    .v2-entities__inner,
    .v2-plans__inner,
}

/* ---------------------------------------------------------------------------
   TARJETA DEL HERO: COMERCIO EXTERIOR
   ---------------------------------------------------------------------------
   Va oscura a proposito: es lo unico de la pagina que la competencia no tiene,
   y el contraste contra el hero claro es lo que la hace mirar primero.
   --------------------------------------------------------------------------- */
.v2-card--comex {
    background: linear-gradient(158deg, #2e1065 0%, #4c1d95 48%, #6d28d9 100%);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

.v2-card--comex .v2-card__title { color: #fff; }

.v2-card--comex .v2-card__lead { color: rgba(255, 255, 255, .74); }

/* La pastilla verde de "verificado" no se lee sobre morado: se atenua */
.v2-card--comex .v2-chip-ok {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
    color: #d7f7e9;
}

.v2-comex-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2e1065;
    background: #fbbf24;
    border-radius: 999px;
    padding: 5px 12px;
}

/* Los items ahora son enlaces de verdad: antes eran <div> con una flecha que
   prometia clic y no llevaba a ningun lado. */
.v2-card__grid .v2-item {
    text-decoration: none;
}

.v2-card--comex .v2-item {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}


.v2-card--comex .v2-item i:first-child { color: #c4b5fd; }

.v2-card--comex .v2-card__link { color: #ddd0fe; }
.v2-card--comex .v2-card__link:hover { color: #fff; }












