: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; align-items: center; justify-content: flex-end; gap: 4px 28px; padding-block: 8px; }
.topbar-phone { color: var(--white); font-size: 18px; font-weight: 700; white-space: nowrap; }
.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: 84px; }
.logo { flex: 0 1 210px; min-width: 0; }

.menu-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav .btn + .btn { margin-left: -16px; }
.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; }
.claude-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; vertical-align: bottom; }
.claude-mark img { flex: 0 0 18px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tech-grid li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    overflow-wrap: anywhere;
    transition: border-color .15s, transform .15s;
}
.tech-grid li:hover { border-color: var(--brand); transform: translateY(-2px); }
.tech-grid img { flex: 0 0 22px; }
.tags-title { margin-top: 24px; font-size: 16px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tags li {
    max-width: 100%;
    padding: 5px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.narrow { max-width: 860px; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    position: relative;
    padding: 18px 40px 18px 0;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-dark);
    font-size: 24px;
    font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--brand-dark); }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); }
.faq-answer p + p { margin-top: 10px; }
.faq-more { margin-top: 20px; }
.faq-more a { color: var(--brand-dark); font-weight: 600; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.testimonial { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; margin: 0; padding: 28px; background: var(--tint); border-radius: var(--radius); }
.testimonial blockquote { position: relative; margin: 0; padding-top: 28px; font-size: 17px; line-height: 1.6; }
.testimonial blockquote::before { content: "\201C"; position: absolute; top: -12px; left: -2px; color: var(--brand); font-size: 64px; font-weight: 800; line-height: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.testimonial strong { display: block; font-size: 15px; }
.testimonial small { display: block; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.testimonial small a { color: var(--brand-dark); font-weight: 600; text-underline-offset: 3px; }
.testimonial small a:hover { color: var(--ink); }
.avatar { display: grid; place-items: center; flex: 0 0 44px; height: 44px; background: var(--night); border-radius: 50%; color: var(--white); font-size: 15px; font-weight: 700; }

/* Server photos */
.section-dark { background: var(--night); color: var(--white); }
.on-dark { color: #a7aeb9; }
.server-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.server-card { min-width: 0; margin: 0; background: #1d2128; border: 1px solid #2d323b; border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.server-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.server-photo { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 16px; background: var(--white); }
.server-photo img { width: 100%; height: 100%; object-fit: contain; }
.server-card figcaption { padding: 16px 18px 18px; }
.server-card strong { display: block; font-size: 16px; }
.server-card span { display: block; margin-top: 4px; color: #a7aeb9; font-size: 14px; }
.hero-photo { padding: 24px; background: var(--white); border-radius: 16px; }
.hero-photo img { width: 100%; height: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
.split-text { margin-top: 10px; color: var(--ink-soft); }
.stack { display: grid; gap: 16px; }
.stack img { width: 100%; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.proposal-note { padding-block: 10px; background: #fff4e5; color: var(--brand-dark); font-size: 14px; font-weight: 600; }
.proposal-label { padding-block: 14px; background: var(--ink); color: var(--white); font-size: 15px; }
.proposal-label span { display: inline-block; margin-right: 8px; padding: 2px 10px; background: var(--brand); border-radius: 999px; color: var(--ink); font-weight: 700; }

/* 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; }
.support-link { color: var(--brand-dark) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.contact-card .support-link { display: inline-block; margin-top: 8px; font-size: 14px; }
.optional {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}
.footer-logo { margin-bottom: 12px; }
.footer p { color: var(--ink-soft); }
.payments { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.payments span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.payments img { height: auto; }
.copyright { margin-top: 12px; padding-block: 18px; font-size: 13px; }

/* Tablet */
@media (max-width: 1000px) {
    .plans, .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .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 */
/* Collapsed menu: below 1000 px the links and both buttons no longer fit next to the logo. */
@media (max-width: 1000px) {
    .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; }
    .nav .btn + .btn { margin-left: 0; margin-top: 8px; }
}

@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;
    }
    .topbar-email { width: auto; height: 21px; }
    .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: 165px; }

    .plans, .features, .two-cols, .contact-grid, .testimonials, .server-grid { grid-template-columns: minmax(0, 1fr); }
    .testimonial { padding: 22px; }
    .faq-item summary { font-size: 16px; }
    .actions .btn { flex: 1 1 100%; }
    .cta .btn { width: 100%; }
    .lead { font-size: 17px; }
}

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

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