:root {
    --ink: #14171c;
    --ink-soft: #566070;
    --line: #e4e7ec;
    --tint: #f6f7f9;
    --white: #ffffff;
    --brand: #f28a0c;
    --brand-dark: #c76c00;
    --night: #14171c;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

/* touch-action: a quick double tap (on "Menú", for example) no longer zooms in on iPhone,
   which shifted the page sideways. Pinch zoom stays available for accessibility. */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.wrap-text { overflow-wrap: anywhere; }

.skip { position: absolute; left: 12px; top: -60px; padding: 8px 12px; background: var(--white); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Top bar and header */
.topbar { background: var(--night); color: #d6dae1; font-size: 13px; }
.topbar-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; padding-block: 7px; }
.topbar a { text-decoration: none; overflow-wrap: anywhere; }
.topbar a:hover { color: var(--white); }

.header { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { flex: 0 1 170px; min-width: 0; }

.menu-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover, .nav a.active { color: var(--brand-dark); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: #ffa02e; }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: #2d323b; }
.btn-light { background: transparent; border-color: #5b6372; color: var(--white); }
.btn-light:hover { border-color: var(--white); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { background: var(--night); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 72px; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 14px; font-weight: 700; }
.page-head .eyebrow { color: var(--brand-dark); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.lead { margin-top: 18px; max-width: 58ch; font-size: 18px; color: #c6cbd4; }
.page-head .lead { color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-stats { margin: 0; border-top: 1px solid #3a404a; }
.hero-stats > div { padding-block: 16px; border-bottom: 1px solid #3a404a; }
.hero-stats dt { font-size: 13px; color: #a7aeb9; }
.hero-stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 700; }
.hero-stats small { display: block; font-size: 13px; font-weight: 400; color: #a7aeb9; }

.page-head { padding-block: 56px; background: var(--tint); border-bottom: 1px solid var(--line); }

/* Sections */
.section { padding-block: 64px; }
.section-line { border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.section-lead { margin-top: 8px; color: var(--ink-soft); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.section > .wrap > .plans:first-child { margin-top: 0; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.plan-featured { border: 2px solid var(--brand); padding: 23px; }
.badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 2px 10px;
    background: var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.plan h3 { font-size: 18px; font-weight: 700; }
.audience { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.price { margin-top: 14px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.price-note { font-size: 13px; color: var(--ink-soft); }
.plan ul { flex: 1; margin: 18px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan li { padding-block: 4px; font-size: 15px; }
.plan .btn { width: 100%; }
.fine { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: 28px; }
.features h3 { font-size: 16px; font-weight: 700; }
.features p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }

/* Two columns */
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.two-cols p { margin-top: 10px; color: var(--ink-soft); }
.plain-list { margin: 12px 0 0; padding-left: 20px; }
.plain-list li { padding-block: 2px; overflow-wrap: anywhere; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s; }
.contact-card:hover { border-color: var(--brand); }
.contact-card h2 { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.contact-card p { margin-top: 6px; font-size: 18px; font-weight: 700; }
.contact-card span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* CTA */
.cta { background: var(--night); color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 44px; }
.cta h2 { font-size: 26px; font-weight: 700; }
.cta p { margin-top: 4px; color: #c6cbd4; }

/* Footer */
.footer { padding-top: 48px; background: var(--tint); border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid > div { min-width: 0; }
.footer h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.footer a, .footer span { display: block; padding-block: 3px; color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .footer-phone { color: var(--ink); font-size: 17px; font-weight: 700; white-space: nowrap; }
.footer .footer-email { display: block; margin-block: 10px 3px; }
.topbar-email { align-self: center; }
.contact-email { margin-top: 8px; }
.footer-logo { margin-bottom: 12px; }
.footer p { color: var(--ink-soft); }
.copyright { margin-top: 36px; padding-block: 18px; font-size: 13px; }

/* Tablet */
@media (max-width: 1000px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 767px) {
    .wrap { padding-inline: 16px; }
    .section { padding-block: 44px; }
    .page-head { padding-block: 40px; }
    .topbar-row { align-items: center; justify-content: space-between; padding-block: 4px; }
    .topbar-phone {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: var(--white);
        font-size: 19px;
        font-weight: 700;
        white-space: nowrap;
    }
    .footer .footer-phone { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; font-size: 19px; }
    .header-row { min-height: 64px; }
    .logo { flex-basis: 140px; }

    .menu-toggle {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 14px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        font: inherit;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }
    .nav { display: none; }
    .menu-open .nav { display: flex; }
    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }
    .nav a:not(.btn) { padding-block: 12px; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 12px; }

    .plans, .features, .two-cols, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .actions .btn { flex: 1 1 100%; }
    .cta .btn { width: 100%; }
    .lead { font-size: 17px; }
}

@media (max-width: 479px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

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