:root {
    --bg: #050b16;
    --bg-soft: #091426;
    --panel: #0c1a30;
    --panel-soft: #10213c;
    --text: #f5f9ff;
    --muted: #91a6c2;
    --accent: #39c6ff;
    --accent-2: #62e3ff;
    --border: rgba(255,255,255,.09);
    --container: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(92%, var(--container)); margin: auto; }

/* HEADER */
.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 1000;
    padding: 10px 14px; border-radius: 8px;
    background: var(--accent); color: #00111b; font-weight: 800;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section[id], article[id], #contenido-principal { scroll-margin-top: 110px; }
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5,11,22,.88); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0; }
.brand-mark { display: block; width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.brand-name { color: var(--text); font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-name span { color: var(--accent); }
.brand-tagline {
    margin-top: 6px; color: var(--muted); font-size: .64rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.navigation { display: flex; align-items: center; gap: 22px; }
.navigation a, .navigation-disabled { color: var(--muted); font-size: .95rem; font-weight: 600; white-space: nowrap; }
.navigation a:hover { color: white; }
.navigation-disabled {
    padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px;
    cursor: not-allowed; opacity: .65;
}
.menu-button {
    display: none; width: 46px; height: 46px; border: 1px solid transparent;
    border-radius: 9px; background: transparent; color: white;
    font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.menu-button:hover { border-color: var(--border); background: rgba(255,255,255,.03); }

/* HERO */
.hero {
    position: relative; overflow: hidden; padding: 110px 0 85px;
    background: radial-gradient(circle at 80% 20%, rgba(57,198,255,.15), transparent 30%),
                radial-gradient(circle at 20% 80%, rgba(57,198,255,.07), transparent 35%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 45px 45px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.badge, .eyebrow { color: var(--accent); font-size: .78rem; letter-spacing: .16em; font-weight: 700; }
.badge {
    display: inline-block; padding: 8px 13px; border: 1px solid rgba(57,198,255,.3);
    border-radius: 999px; margin-bottom: 25px; background: rgba(57,198,255,.07);
}
.hero h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 5.3rem); line-height: 1; letter-spacing: -.055em; }
.hero h1 span { display: block; color: var(--accent); }
.hero-text { margin-top: 28px; max-width: 640px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.button {
    display: inline-flex; justify-content: center; align-items: center; min-height: 50px;
    padding: 0 23px; border-radius: 9px; font-weight: 700; transition: .2s ease;
}
.primary { color: #00111b; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.primary:hover { transform: translateY(-2px); }
.secondary { border: 1px solid var(--border); background: rgba(255,255,255,.025); }
.hero-status { margin-top: 28px; color: var(--muted); font-size: .9rem; }
.status-dot {
    width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin-right: 8px;
    background: #48e894; box-shadow: 0 0 12px #48e894;
}

/* SERVER VISUAL */
.server-panel {
    border: 1px solid var(--border); border-radius: 18px; background: rgba(12,26,48,.8);
    box-shadow: 0 35px 90px rgba(0,0,0,.4); padding: 20px;
}
.panel-header { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: .75rem; }
.online { color: #48e894; }
.server-row {
    display: flex; justify-content: space-between; align-items: center; min-height: 78px;
    padding: 15px 18px; margin-bottom: 10px; border-radius: 10px;
    background: var(--panel-soft); border: 1px solid var(--border);
}
.server-row strong, .server-row small { display: block; }
.server-row small { color: var(--muted); }
.server-lights { display: flex; gap: 7px; }
.server-lights span {
    width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}
.traffic { height: 60px; display: flex; gap: 8px; align-items: end; margin-top: 18px; }
.traffic span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--accent), rgba(57,198,255,.08)); }
.traffic span:nth-child(1) { height: 42%; }
.traffic span:nth-child(2) { height: 75%; }
.traffic span:nth-child(3) { height: 52%; }
.traffic span:nth-child(4) { height: 90%; }
.traffic span:nth-child(5) { height: 65%; }

/* FEATURES */
.features { padding-bottom: 70px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .service-card { border: 1px solid var(--border); background: var(--bg-soft); border-radius: 14px; }
.feature-card { padding: 25px; }
.feature-icon { color: var(--accent); font-size: 1.5rem; margin-bottom: 13px; }
.feature-card p, .service-card p, .infrastructure p, .section-heading p, .cta p { color: var(--muted); }
.feature-card h3 { margin-bottom: 7px; }

/* COMMON */
.section { padding: 100px 0; }
.section-heading { max-width: 680px; margin-bottom: 50px; }
.section-heading h2, .infrastructure h2, .cta h2 {
    font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin: 12px 0 20px;
}

/* SERVICES */
.services { background: #07101e; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { padding: 30px; }
.service-number { color: var(--accent); font-size: .8rem; margin-bottom: 35px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 13px; }
.service-card ul { list-style: none; margin-top: 25px; }
.service-card li { padding: 9px 0; color: #c5d3e5; border-bottom: 1px solid var(--border); }
.service-card li::before { content: "✓"; color: var(--accent); margin-right: 10px; }

/* PLANS */
.plans { background: var(--bg); }
.plans-heading { margin-bottom: 64px; }
.plan-group + .plan-group { margin-top: 78px; }
.plan-group-heading {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
    align-items: end; gap: 48px; margin-bottom: 16px;
}
.plan-group-heading h3 { margin-top: 9px; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em; }
.plan-group-copy { color: var(--muted); max-width: 620px; }
.plan-note {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; margin-bottom: 22px;
    border: 1px solid rgba(57,198,255,.2); border-radius: 999px; background: rgba(57,198,255,.05);
    color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan-card {
    min-height: 338px; padding: 27px; display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft);
}
.plan-card-enterprise {
    background: linear-gradient(145deg, rgba(57,198,255,.09), transparent 48%), var(--bg-soft);
    border-color: rgba(57,198,255,.2);
}
.plan-tier { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.plan-card h4 { margin: 12px 0 13px; font-size: 1.45rem; line-height: 1.1; }
.plan-card > p { color: var(--muted); font-size: .95rem; }
.plan-card ul { list-style: none; margin-top: auto; padding-top: 26px; }
.plan-card li {
    position: relative; padding: 8px 0 8px 18px; color: #c5d3e5;
    border-top: 1px solid var(--border); font-size: .9rem;
}
.plan-card li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* INFRASTRUCTURE */
.infrastructure-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.infrastructure p + p { margin-top: 14px; }
.architecture { padding: 30px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-soft); }
.arch-node {
    padding: 16px; text-align: center; border-radius: 9px; background: var(--panel-soft);
    border: 1px solid rgba(57,198,255,.18);
}
.arch-node.internet { color: var(--accent); }
.arch-node.backup { border-color: rgba(72,232,148,.25); }
.arch-line { width: 1px; height: 30px; margin: auto; background: rgba(57,198,255,.4); }
.arch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* CTA */
.cta { padding: 60px 0 100px; }
.cta-box {
    padding: 45px; border-radius: 18px; display: flex; align-items: center;
    justify-content: space-between; gap: 40px;
    background: linear-gradient(135deg, rgba(57,198,255,.12), rgba(57,198,255,.03));
    border: 1px solid rgba(57,198,255,.2);
}
.cta-box h2 { max-width: 760px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-content {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    color: var(--muted); font-size: .9rem;
}

/* DESKTOP HERO TUNING */
@media (min-width: 851px) {
    .hero { padding: 60px 0 72px; }
    .hero-visual { transform: translateY(-32px); }
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .hero { padding: 32px 0 64px; }
    .hero-grid, .infrastructure-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 50px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .plan-group-heading { grid-template-columns: 1fr; gap: 18px; }
    .nav { position: relative; min-height: 86px; }
    .menu-button { display: block; flex: 0 0 46px; }
    .navigation {
        display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10;
        padding: 16px; flex-direction: column; align-items: stretch; gap: 6px; border-radius: 12px;
        background: #0a1526; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.35);
    }
    .navigation a, .navigation-disabled { width: 100%; padding: 10px 9px; border-radius: 7px; }
    .navigation a:hover { background: rgba(255,255,255,.04); }
    .navigation-disabled { border-color: transparent; }
    .navigation.open { display: flex; }
    .cta-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
    .brand { gap: 10px; }
    .brand-mark { width: 56px; height: 56px; flex-basis: 56px; }
    .brand-name { font-size: 1.2rem; }
    .brand-tagline { margin-top: 5px; font-size: .56rem; letter-spacing: .07em; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .hero-grid { gap: 200px; }
    .hero-actions { flex-direction: column; margin-top: 42px; }
    .button { width: 100%; }
    .server-panel { padding: 13px; }
    .section { padding: 75px 0; }
    .plans-heading { margin-bottom: 48px; }
    .plan-group + .plan-group { margin-top: 62px; }
    .plan-grid { grid-template-columns: 1fr; }
    .plan-card { min-height: auto; }
    .cta-box { padding: 28px; }
    .footer-content { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
    .brand-mark { width: 50px; height: 50px; flex-basis: 50px; }
    .brand-name { font-size: 1.08rem; }
    .brand-tagline { font-size: .5rem; letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* DOMAIN SEARCH */
.domain-search {
    margin-top: 32px;
    max-width: 700px;
    padding: 18px;
    border: 1px solid rgba(57,198,255,.25);
    border-radius: 14px;
    background: rgba(9,20,38,.82);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
}

.domain-search-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
}

.domain-search-header strong {
    display: block;
    margin-top: 4px;
    font-size: 1.15rem;
    line-height: 1.2;
}

.domain-search-note {
    color: var(--muted);
    font-size: .85rem;
    white-space: nowrap;
}

.domain-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.domain-search-form input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel-soft);
    color: var(--text);
    font: inherit;
    outline: none;
}

.domain-search-form input::placeholder {
    color: var(--muted);
}

.domain-search-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(57,198,255,.12);
}

.domain-search-button {
    border: 0;
    cursor: pointer;
    min-width: 110px;
}

.domain-search-button:disabled {
    opacity: .65;
    cursor: wait;
}

.domain-search-result {
    margin-top: 12px;
    font-size: .95rem;
    font-weight: 700;
}

.domain-search-result:empty {
    display: none;
}

.domain-search-result.is-success {
    color: #48e894;
}

.domain-search-result.is-error {
    color: #ff8d8d;
}

.domain-search-result.is-loading {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 560px) {
    .domain-search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .domain-search-note {
        white-space: normal;
    }

    .domain-search-form {
        grid-template-columns: 1fr;
    }

    .domain-search-button {
        width: 100%;
    }
}

/* WEBEXPRESS HERO — DESKTOP LAYOUT */
.hero-layout {
    position: relative;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: center;
    gap: 70px;
}

.hero-layout > .domain-search {
    width: 100%;
    max-width: none;
    margin-top: 42px;
}

.hero-layout > .domain-search .domain-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

/* WEBEXPRESS HERO — MOBILE */
@media (max-width: 850px) {
    .hero-layout {
        display: flex;
        flex-direction: column;
    }

    .hero-main {
        display: contents;
    }

    .hero-content {
        order: 1;
    }

    .hero-layout > .domain-search {
        order: 2;
        margin-top: 32px;
    }

    .hero-layout > .hero-status {
        order: 3;
        margin-top: 0;
    }

    .hero-visual {
        order: 4;
    }
}

@media (max-width: 560px) {
    .hero-layout > .domain-search .domain-search-form {
        grid-template-columns: 1fr;
    }
}
