/* Portada v2: estética atardecer de Los Santos */
:root { --pink: var(--v2-a); --orange: var(--v2-hi); --violet: #8a4dff; --ink: #fbf7ff; --ink2: #e8cdf2; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.v2-home { font-family: var(--v2-body); color: var(--ink); background: #1a0b2e; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.v2-home > .top, body.v2-home > .hero, body.v2-home > .foot { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }

/* barra superior */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(18px, 4vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(var(--v2-glow), .55)); }
.top nav { display: flex; align-items: center; gap: 22px; }
.link { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); transition: color .2s; }
.link:hover { color: #fff; }
.pill { display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(var(--v2-c3), .7); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s, background .2s, transform .2s; }
.pill:hover { border-color: var(--pink); background: rgba(90, 20, 90, .55); transform: translateY(-1px); }

/* portada */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(12px, 3vh, 40px) clamp(16px, 4vw, 56px) 40px; min-height: calc(100vh - 150px); justify-content: center; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 400; letter-spacing: .5em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(40, 0, 60, .9), 0 2px 22px rgba(40, 0, 60, .9); }
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .88; text-transform: uppercase; font-weight: 800; }
.logo .l1, .logo .l2 { position: relative; display: inline-block; background: linear-gradient(180deg, #ffffff 0%, #f6dcff 30%, #d98cff 62%, var(--v2-a) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); paint-order: stroke fill; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; --n: 1; opacity: calc(.32 + .68 * var(--n)); }
.logo .l1::before, .logo .l2::before { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; white-space: pre; color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: 0 0 7px rgba(255, 255, 255, calc(.7 * var(--n))), 0 0 24px rgba(var(--v2-glow), calc(.95 * var(--n))), 0 0 56px rgba(var(--v2-glow), calc(.8 * var(--n))), 0 0 110px rgba(var(--v2-glow), calc(.5 * var(--n))), 0 5px 0 rgba(48, 6, 86, .75); }
.logo .l1 { font-size: clamp(40px, min(11vw, 17vh), 148px); letter-spacing: .02em; }
.logo .l2 { font-size: clamp(32px, min(8.6vw, 13vh), 116px); letter-spacing: .34em; margin-right: -.34em; margin-top: .06em; }
.sub { margin: 18px 0 28px; font-size: 14px; font-weight: 400; letter-spacing: .42em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(40, 0, 60, .9), 0 2px 22px rgba(40, 0, 60, .9); }

/* tarjetas */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: clamp(16px, 2.4vw, 34px); justify-content: center; width: 100%; perspective: 1200px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 26px 24px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(160deg, rgba(var(--v2-c1), .66), rgba(var(--v2-c2), .72)); box-shadow: 0 20px 60px rgba(14, 2, 34, .5), inset 0 1px 0 rgba(255, 255, 255, .18); transform-style: preserve-3d; transition: border-color .25s, box-shadow .25s; will-change: transform; overflow: hidden; }
.card:hover { border-color: rgba(var(--v2-glow), .7); box-shadow: 0 24px 80px rgba(var(--v2-glow), .28), 0 20px 60px rgba(14, 2, 34, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.card-glow { position: absolute; inset: -40%; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(var(--v2-glow), .32), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .card-glow { opacity: 1; }
.card-logo { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(var(--v2-glow), .45)); transform: translateZ(40px); }
.card h2 { margin: 4px 0 0; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink2); min-height: 44px; }

.status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; width: 100%; justify-content: center; flex-wrap: wrap; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #9c86b8; box-shadow: 0 0 0 0 transparent; }
.status[data-state="online"] .dot { background: #3dff9a; animation: v2pulse 2s ease-out infinite; }
.status[data-state="offline"] .dot { background: #ff5470; }
.status .st { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.status .pl { color: var(--ink2); }
.status .pl b { color: #fff; }
.bar { width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--orange)); transition: width 1s cubic-bezier(.3, .8, .3, 1); }
.cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 26px; border-radius: 999px; background: linear-gradient(90deg, var(--v2-a), var(--v2-a2)); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; box-shadow: 0 10px 30px rgba(var(--v2-glow), .4); transition: transform .2s, box-shadow .2s; }
.cta em { font-style: normal; transition: transform .2s; }
.card:hover .cta { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(var(--v2-glow), .55); }
.card:hover .cta em { transform: translateX(4px); }

.foot { padding: 18px; text-align: center; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(var(--v2-glow), .6); text-shadow: 0 1px 10px rgba(20, 0, 40, .8); }

/* entrada escalonada: por defecto todo es visible; el script los oculta (.pre) y los suelta uno a uno, así nunca se queda en blanco */
.rise { transition: opacity .9s cubic-bezier(.2, .75, .2, 1), transform .9s cubic-bezier(.2, .75, .2, 1), filter .9s ease; transition-delay: var(--delay, 0s); }
.rise.pre { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); }
@keyframes v2pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 154, .6); } 100% { box-shadow: 0 0 0 10px rgba(61, 255, 154, 0); } }

@media (max-width: 820px) {
  .cards { grid-template-columns: minmax(0, 420px); }
  .top nav .link { display: none; }
  .hero { justify-content: flex-start; padding-top: 20px; }
  .logo .l2 { letter-spacing: .2em; margin-right: -.2em; }
}

/* tipografías */
.logo { font-family: var(--v2-display); font-weight: 400; }
.logo .l1 { letter-spacing: .01em; } .logo .l2 { letter-spacing: .3em; margin-right: -.3em; }
.kicker, .sub, .brand, .link, .pill, .status .st, .status .pl, .cta, .foot { font-family: var(--v2-ui); font-weight: 400; }
.status .n, .status .m, .status .pl b { font-family: var(--v2-num); font-weight: 700; }
.card h2 { font-family: var(--v2-display); font-weight: 400; letter-spacing: .03em; }
.card p { font-family: var(--v2-body); font-size: 16.5px; }
