:root {
    --bg: #0b0f19;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --line: rgba(255,255,255,.08);
    --accent: #8b5cf6;
    --accent2: #22c55e;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

    .skip-link:focus {
        left: 16px;
        top: 16px;
        background: #000;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--line);
    }

.site-header {
    position: sticky;
    top: 0;
    background: rgba(11,15,25,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(139,92,246,.20);
    border: 1px solid rgba(139,92,246,.35);
    font-weight: 700;
}

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
}

.nav-link {
    padding: 6px 10px;
    border-radius: 12px;
    color: var(--muted);
}

    .nav-link:hover {
        color: var(--text);
        background: rgba(255,255,255,.03);
        text-decoration: none;
    }

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(139,92,246,.45);
    background: rgba(139,92,246,.18);
    font-weight: 700;
}

    .lang-pill:hover {
        text-decoration: none;
        background: rgba(139,92,246,.28);
    }

main.container {
    padding: 22px 0 42px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    background: rgba(255,255,255,.02);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 18px;
}

.footer-title {
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-text {
    color: var(--muted);
    margin: 0;
    max-width: 48ch;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
}

    .footer-list a:hover {
        color: var(--text);
        text-decoration: none;
    }

.footer-bottom {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.dot {
    opacity: .6;
}

@media (max-width: 800px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
}
.hero {
    padding: 20px 0 8px;
}

h1 {
    font-size: clamp(28px, 3.5vw, 44px);
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.lead {
    color: var(--muted);
    max-width: 70ch;
    margin: 0 0 18px;
    font-size: 1.05rem;
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    font-weight: 700;
}

    .btn:hover {
        text-decoration: none;
        background: rgba(255,255,255,.06);
    }

    .btn.primary {
        border-color: rgba(139,92,246,.55);
        background: rgba(139,92,246,.22);
    }

        .btn.primary:hover {
            background: rgba(139,92,246,.32);
        }

    .btn.ghost {
        border-color: rgba(255,255,255,.10);
        background: transparent;
    }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 10px 0 0;
}

.card {
    display: block;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}

    .card:hover {
        text-decoration: none;
        background: rgba(255,255,255,.05);
    }

    .card h2 {
        margin: 0 0 6px;
        font-size: 1.05rem;
    }

    .card p {
        margin: 0;
        color: var(--muted);
    }

.content {
    margin-top: 26px;
}

.bullets {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.tool {
    display: block;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}

    .tool:hover {
        text-decoration: none;
        background: rgba(255,255,255,.05);
    }

    .tool h2 {
        margin: 0 0 6px;
        font-size: 1.05rem;
    }

    .tool p {
        margin: 0;
        color: var(--muted);
    }

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}
.calc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 14px;
}

.calc-form {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.field input, .field select {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.20);
    color: var(--text);
    padding: 0 12px;
}

    .field input::placeholder {
        color: rgba(229,231,235,.45);
    }

.error {
    display: block;
    color: #fca5a5;
    margin-top: 6px;
    font-size: .95rem;
}

.result-card {
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 16px;
    background: rgba(34,197,94,.08);
    padding: 14px;
}

.result-title {
    font-weight: 900;
    margin-bottom: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

    .result-row:first-of-type {
        border-top: none;
    }

.result-label {
    color: var(--muted);
}

.result-value {
    text-align: right;
}

    .result-value.big {
        font-size: 1.4rem;
        font-weight: 900;
    }

details.faq {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.02);
    padding: 10px 12px;
}

    details.faq summary {
        cursor: pointer;
        font-weight: 800;
    }

    details.faq p {
        margin: 8px 0 0;
    }

@media (max-width: 900px) {
    .calc-wrap {
        grid-template-columns: 1fr;
    }
}
/* =========================
   FIX SELECT / OPTION COLORS
   ========================= */

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(0,0,0,.25);
    color: var(--text);
    border: 1px solid var(--line);
}

    /* Opciones del dropdown */
    .field select option {
        background-color: #0b0f19; /* mismo fondo que el sitio */
        color: #e5e7eb;
    }

        /* Opción seleccionada */
        .field select option:checked {
            background-color: #1f2937; /* gris oscuro */
            color: #ffffff;
        }

        /* Hover (Chrome / Edge) */
        .field select option:hover {
            background-color: #374151;
            color: #ffffff;
        }

/* Firefox fix */
@-moz-document url-prefix() {
    .field select {
        background-color: #0b0f19;
        color: #e5e7eb;
    }
}
.txtarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.20);
    color: var(--text);
    padding: 10px 12px;
    resize: vertical;
}

/* =========================
   ADS
   ========================= */

.ad-wrap {
    margin: 18px 0;
}

.ad {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.ad-badge {
    font-size: 12px;
    letter-spacing: .08em;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    opacity: .85;
}

.ad-text {
    font-weight: 700;
}

.ad-sub {
    font-size: 13px;
    opacity: .75;
}
/* =========================
   COOKIE BANNER (minimal)
   ========================= */
.cookie-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 9999;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10,12,18,.92);
    backdrop-filter: blur(8px);
    padding: 12px 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.cookie-title {
    font-weight: 800;
    margin-bottom: 2px;
}

.cookie-msg {
    font-size: 13px;
    opacity: .85;
}

    .cookie-msg a {
        text-decoration: underline;
    }

.cookie-actions {
    flex: 0 0 auto;
}

.cookie-banner.is-hidden {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .15s ease, transform .15s ease;
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}
