/*
 * vpnlat.css — tokens tomados del tema Softlab que ya usa vpn.lat.
 *
 * Todo va bajo .wimi / .wimi-* para que, cuando el layout se renderice dentro
 * del header y el footer reales de WordPress, estos estilos no pisen los del
 * tema ni al revés.
 */

.wimi,
.wimi-header,
.wimi-footer {
    --green: #05a801;
    --green-dark: #65a608;
    --green-light: #81d742;
    --navy: #1c2b40;
    --ink: #2a3646;
    --muted: #8b9baf;
    --line: #e6ebf1;
    --bg: #f6f8fb;
    --card: #ffffff;
    --warn: #d9822b;

    --radius-card: 24px;
    --radius-pill: 999px;
    --shadow-card: 0 15px 38px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 9px 30px rgba(101, 166, 8, 0.35);

    --font: "Poppins", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Solo cuando Laravel sirve el layout de respaldo. Dentro de WordPress el
   <body> lo controla el tema y no lo tocamos. */
.wimi-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wimi-container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 20px;
    box-sizing: border-box;
}

.wimi {
    font-family: var(--font);
    color: var(--ink);
    padding-block: 48px 72px;
}

/* ---------- Cabecera de respaldo ---------- */

.wimi-header {
    background: var(--navy);
    color: #fff;
    font-family: var(--font);
}

.wimi-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
    flex-wrap: wrap;
}

.wimi-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}

.wimi-logo em {
    color: var(--green-light);
    font-style: normal;
}

.wimi-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-inline-end: auto;
}

.wimi-nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
}

.wimi-nav a:hover,
.wimi-nav a[aria-current="page"] {
    color: #fff;
    border-bottom-color: var(--green-light);
}

.wimi-cta {
    display: flex;
    gap: 10px;
}

/* ---------- Botones ---------- */

.wimi-btn {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wimi-btn--green {
    background-image: radial-gradient(circle farthest-corner at 100% 150%, var(--green-light) 10%, var(--green-dark) 50%);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.wimi-btn--green:hover {
    background-image: none;
    background-color: #fff;
    color: var(--navy);
    border-color: var(--green);
    box-shadow: none;
}

.wimi-btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.wimi-btn--ghost:hover {
    background: #fff;
    color: var(--navy);
}

.wimi-header .wimi-btn--ghost {
    color: #fff;
}

/* ---------- Migas y encabezado de página ---------- */

.wimi-crumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.wimi-crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.wimi-crumbs a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.wimi-crumbs span {
    margin-inline: 6px;
}

.wimi-hero {
    margin-bottom: 32px;
}

.wimi-hero--center {
    text-align: center;
}

.wimi-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-dark);
}

.wimi h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 700;
    color: var(--navy);
}

.wimi h2 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 600;
    color: var(--navy);
}

.wimi h3 {
    margin: 24px 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
}

.wimi-ip {
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    font-size: clamp(26px, 4.2vw, 40px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    word-break: break-all;
}

.wimi-ip--big {
    color: var(--green-dark);
    font-size: clamp(30px, 6vw, 52px);
}

.wimi-lede {
    max-width: 68ch;
    margin: 0 0 14px;
    font-size: 17px;
    color: #4a5768;
}

.wimi-hero--center .wimi-lede {
    margin-inline: auto;
}

.wimi-link {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.wimi-link:hover {
    text-decoration: underline;
}

.wimi-note {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0 0;
}

/* ---------- Insignias ---------- */

.wimi-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.wimi-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: #eef3f8;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}

.wimi-badge--warn {
    background: #fdf1e3;
    color: var(--warn);
}

/* ---------- Tarjetas y tablas ---------- */

.wimi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.wimi-card {
    background: var(--card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.wimi-grid .wimi-card {
    margin-bottom: 0;
}

.wimi-card--flush {
    padding: 28px 0 0;
    overflow: hidden;
}

.wimi-card__title,
.wimi-card--flush .wimi-note {
    padding-inline: 32px;
}

.wimi-card--flush .wimi-note {
    padding-bottom: 24px;
}

.wimi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.wimi-table th,
.wimi-table td {
    padding: 11px 0;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.wimi-table tr:last-child th,
.wimi-table tr:last-child td {
    border-bottom: 0;
}

.wimi-table th {
    width: 45%;
    font-weight: 500;
    color: var(--muted);
}

.wimi-table td {
    font-weight: 500;
    word-break: break-word;
}

.wimi-table a {
    color: var(--green-dark);
    text-decoration: none;
}

.wimi-table a:hover {
    text-decoration: underline;
}

.wimi-table--wide th {
    width: auto;
    color: var(--navy);
    font-weight: 600;
}

.wimi-map {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    margin-top: 16px;
}

/* ---------- Formulario ---------- */

.wimi-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wimi-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wimi-form input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 13px 20px;
    border: 2px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 16px;
    color: var(--navy);
    background: #fff;
}

.wimi-form input:focus-visible {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(5, 168, 1, 0.14);
}

/* ---------- Lista de IPs ---------- */

.wimi-iplist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 20px;
}

.wimi-iplist li {
    font-size: 14px;
    padding-block: 4px;
    border-bottom: 1px solid var(--line);
}

.wimi-iplist a {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.wimi-iplist a:hover {
    text-decoration: underline;
}

.wimi-iplist span {
    color: var(--muted);
    font-size: 12px;
    margin-inline-start: 6px;
}

/* ---------- Panel de conversión ---------- */

.wimi-cta-panel {
    background: linear-gradient(135deg, var(--navy) 0%, #142033 100%);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 36px 40px;
    margin-bottom: 24px;
}

.wimi-cta-panel h2 {
    color: #fff;
}

.wimi-cta-panel p {
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.85);
}

.wimi-cta-panel p:last-child {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.wimi-cta-panel .wimi-btn--ghost {
    color: #fff;
}

/* ---------- Preguntas ---------- */

.wimi-faq {
    max-width: 74ch;
}

.wimi-faq p {
    color: #4a5768;
}

/* ---------- Paginación ---------- */

.wimi-pager {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.wimi-pager a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.wimi-pager a:hover {
    text-decoration: underline;
}

.wimi-pager__off {
    color: #c3ccd7;
}

/* ---------- Pie de respaldo ---------- */

.wimi-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font);
    padding-block: 56px 24px;
    font-size: 15px;
}

.wimi-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.wimi-footer h3 {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.wimi-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding-block: 5px;
}

.wimi-footer a:hover {
    color: var(--green-light);
}

.wimi-footer__legal {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Accesibilidad ---------- */

.wimi a:focus-visible,
.wimi-btn:focus-visible,
.wimi-nav a:focus-visible {
    outline: 3px solid var(--green-light);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .wimi *,
    .wimi-btn {
        transition: none !important;
    }
}

@media (max-width: 720px) {
    .wimi-card {
        padding: 22px 20px;
    }

    .wimi-cta-panel {
        padding: 28px 22px;
    }

    .wimi-table th {
        width: 42%;
    }

    .wimi-header__inner {
        padding-block: 14px;
    }
}

/* ---------- Buscador global ---------- */

.wimi-searchbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-block: 18px;
    margin-bottom: 36px;
}

.wimi-searchbar form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wimi-searchbar label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wimi-searchbar input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 13px 22px;
    border: 2px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 16px;
    color: var(--navy);
    background: #fff;
}

.wimi-searchbar input:focus-visible {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(5, 168, 1, 0.14);
}

/* ---------- Buscador global ---------- */

.wimi-searchbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding-block: 18px;
    margin-bottom: 36px;
}

.wimi-searchbar form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wimi-searchbar label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wimi-searchbar input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 13px 22px;
    border: 2px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 16px;
    color: var(--navy);
    background: #fff;
}

.wimi-searchbar input:focus-visible {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(5, 168, 1, 0.14);
}
