:root {
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e2e8f0;
    --paper: #ffffff;
    --paper-alt: #f1f5f9;
    --night: #0f172a;
    --night-2: #020617;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --amber: #f59e0b;
    --green: #16a34a;
    --slate: #64748b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id], footer[id] { scroll-margin-top: 64px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* CABECERA */
.top { background: linear-gradient(100deg, #fff 45%, #dbeafe 100%); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 52px; height: 52px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 30px; font-weight: 300; letter-spacing: -0.5px; }
.logo-name b { font-weight: 800; }
.logo-name em { font-style: normal; font-weight: 800; color: var(--blue); }
.logo-tag { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.account { display: flex; background: var(--night); border-radius: 6px; overflow: hidden; flex: none; }
.account-link { color: #fff; font-size: 15px; font-weight: 600; padding: 12px 16px; transition: background .2s; }
.account-link + .account-link { border-left: 1px solid rgba(255,255,255,.15); }
.account-link:hover { background: #1e293b; }
.account-strong { background: var(--blue); }
.account-strong:hover { background: var(--blue-dark); }

/* MENÚ */
.menu { background: var(--night); position: sticky; top: 0; z-index: 20; }
.menu-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.menu-inner::-webkit-scrollbar { display: none; }
.menu a {
    color: #e2e8f0; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    padding: 18px 22px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.08); transition: background .2s, color .2s;
}
.menu a:first-child { border-left: 1px solid rgba(255,255,255,.08); }
.menu a:hover { background: #1e293b; color: #fff; }

/* PORTADA */
.hero { position: relative; overflow: hidden; background: linear-gradient(100deg, #fff 0%, #eef1f5 55%, #d9dde2 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 80px; }
.hero-copy { max-width: 58%; }

/* La foto ocupa el lado derecho y se funde con el fondo por la izquierda */
.hero-photo { position: absolute; z-index: 1; margin: 0; top: 0; bottom: 0; right: max(0px, calc((100vw - 1180px) / 2 - 80px)); }
.hero-photo img {
    display: block; height: 100%; width: auto; max-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 88%, transparent 100%);
}
.hero-photo figcaption { position: absolute; right: 24px; bottom: 22px; background: #fff; border-left: 4px solid var(--amber); border-radius: 6px; padding: 9px 16px; box-shadow: 0 10px 24px rgba(15,23,42,.16); line-height: 1.3; }
.hero-photo figcaption b { display: block; font-size: 16px; }
.hero-photo figcaption span { font-size: 13px; color: var(--ink-soft); }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 300; line-height: 1.12; letter-spacing: -1px; }
.hero h1 b { font-weight: 800; }
.hero-sub { font-size: clamp(19px, 2vw, 26px); font-weight: 300; margin-top: 18px; }
.hero-stats { margin: 40px 0 36px; font-size: clamp(18px, 1.9vw, 23px); font-weight: 300; display: grid; gap: 10px; }
.hero-stats b { font-weight: 800; }

.btn {
    display: inline-block; text-align: center; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    border-radius: 5px; padding: 15px 34px; font-size: 16px; border: 2px solid transparent; cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--amber); color: var(--night); box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.btn-cta:hover { background: #fbbf24; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* SECCIONES */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 300; text-align: center; letter-spacing: -.5px; margin-bottom: 48px; }
.title b { font-weight: 800; }

/* PILARES */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 8px; padding: 0 22px 26px; background: #fff; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pillar-img { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 22px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-alt); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,23,42,.1); }
.pillar-blue { --c: var(--blue); } .pillar-amber { --c: var(--amber); } .pillar-slate { --c: var(--slate); } .pillar-green { --c: var(--green); }
.pillar-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--c); color: #fff; font-weight: 800; }
.pillar h3 { font-size: 19px; line-height: 1.25; margin: 14px 0 8px; }
.pillar p { color: var(--ink-soft); font-size: 15px; }
.pillar ul { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; display: grid; gap: 6px; }
.pillar li::before { content: '▸ '; color: var(--c); }

/* PLANES */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--blue); box-shadow: 0 20px 40px rgba(37,99,235,.18); }
.plan-top { height: 110px; position: relative; }
.plan-top-grey { background: linear-gradient(90deg, #e2e8f0, #475569); }
.plan-top-amber { background: linear-gradient(90deg, #fef3c7, #f59e0b); }
.plan-top-blue { background: linear-gradient(90deg, #dbeafe, #2563eb); }
.plan-flag { position: absolute; top: 0; right: 0; background: var(--night); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 7px 14px; border-bottom-left-radius: 8px; }
.plan-body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.plan h3 { font-size: 25px; font-weight: 800; letter-spacing: -.3px; }
.plan-price { font-size: 30px; font-weight: 800; color: var(--blue); margin-top: 6px; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan-saving { font-size: 13px; font-weight: 700; color: var(--green); min-height: 20px; }
.plan-lead { margin: 16px 0 12px; color: var(--ink-soft); font-size: 16px; }
.plan ul { display: grid; gap: 8px; margin-bottom: 28px; font-size: 16px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.plan li.no { color: #94a3b8; }
.plan li.no::before { content: '✕'; color: #cbd5e1; }
.plan .btn { margin-top: auto; }
.tabs { display: flex; gap: 4px; background: var(--paper-alt); padding: 4px; border-radius: 6px; margin: 14px 0 6px; }
.tab { flex: 1; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 7px 4px; border-radius: 4px; cursor: pointer; transition: background .2s, color .2s; }
.tab.is-on { background: var(--night); color: #fff; }
.plans-note { text-align: center; color: var(--ink-soft); font-size: 15px; margin-top: 28px; }

/* BANDA CON FOTO */
.band { position: relative; background: var(--night); overflow: hidden; }
.band img { display: block; width: 100%; height: 340px; object-fit: cover; opacity: .55; }
.band-copy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.band-copy p { color: #fff; font-size: clamp(26px, 3.8vw, 46px); font-weight: 300; letter-spacing: -.5px; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.band-copy b { font-weight: 800; }

/* RAZONES */
.ribbon { border-bottom: 1px solid var(--line); margin-bottom: 44px; font-size: 22px; font-weight: 400; }
.ribbon span { display: inline-block; background: var(--blue); color: #fff; padding: 8px 38px 8px 18px; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.reasons li { display: flex; gap: 18px; }
.reason-num { flex: none; display: grid; place-items: center; width: 40px; height: 34px; background: var(--amber); color: var(--night); font-weight: 800; }
.reasons h3 { font-size: 20px; margin-bottom: 8px; }
.reasons p { color: var(--ink-soft); font-size: 16px; }

/* PIE */
.foot { background: #1c1c1e; color: #e2e8f0; padding-top: 60px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.foot h4 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.foot-cols a, .foot-cols span { display: block; padding: 5px 0; font-size: 16px; color: #cbd5e1; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #94a3b8; }
.foot-legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* AVISO */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--night); color: #fff; padding: 14px 22px; border-radius: 8px; font-size: 15px; box-shadow: 0 12px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* PANTALLAS MEDIANAS Y MÓVIL */
@media (max-width: 980px) {
    .hero-inner { padding-top: 48px; padding-bottom: 32px; }
    .hero-copy { max-width: none; }
    .hero-photo { position: relative; right: auto; }
    .hero-photo img {
        width: 100%; height: 380px; object-fit: cover; object-position: 60% top;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
    }
    .hero-photo figcaption { right: 16px; bottom: 16px; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .plans, .reasons { grid-template-columns: 1fr; }
    .plans { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding-left: 16px; padding-right: 16px; }
    .top-inner { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
    .logo-name { font-size: 25px; }
    .logo-mark { width: 44px; height: 44px; }
    .account { width: 100%; }
    .account-link { flex: 1; text-align: center; font-size: 14px; padding: 11px 8px; }
    .menu a { padding: 15px 16px; }
    .section { padding: 56px 0; }
    .pillars, .foot-cols { grid-template-columns: 1fr; }
    .btn { display: block; width: 100%; }
    .foot-base { flex-direction: column; align-items: flex-start; }
}
