/* =============================================================
   SECCIONES
   ============================================================= */

/* ----------------------------------------------------- PORTADA */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1000px; overflow: hidden; background: #8fcaf2; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hero-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: url(../assets/tex/scanlines.png); background-size: 4px 4px; image-rendering: pixelated;
  mix-blend-mode: multiply; opacity: .55;
}
.hero::after { /* viñeta + fundido inferior */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 40%, transparent 55%, rgba(11, 21, 48, .45) 100%),
    linear-gradient(90deg, rgba(11, 21, 48, .55) 0%, rgba(11, 21, 48, .15) 45%, transparent 60%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-copy { max-width: 560px; display: flex; flex-direction: column; gap: 18px; padding-top: 60px; }
.chip {
  align-self: flex-start; margin: 0;
  background: var(--purple); color: var(--yellow);
  padding: 9px 14px; border: 2px solid var(--yellow); box-shadow: 4px 4px 0 var(--orange);
}
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(560px, 88vw); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.hero-lema {
  margin: 0; font-family: var(--f-title); font-size: clamp(26px, 3vw, 38px);
  text-shadow: 0 3px 0 var(--purple), 0 6px 18px rgba(0, 0, 0, .45); min-height: 1.2em;
}
.caret { color: var(--yellow); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.hero-desc { margin: 0; font-size: 18px; line-height: 1.55; max-width: 460px; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.daynight { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.daynight .px { font-size: 10px; text-shadow: 0 2px 0 var(--purple); }
.switch {
  position: relative; width: 84px; height: 44px; border-radius: 22px; cursor: pointer;
  border: 3px solid var(--purple); background: linear-gradient(180deg, #8fd0ff, #3d9be8);
  box-shadow: 0 4px 0 var(--purple); transition: background .5s;
}
.switch .knob {
  position: absolute; top: 3px; left: 3px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center; color: var(--purple);
  transition: transform .5s var(--ease), background .5s;
}
.switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.switch .moon { display: none; }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #2b2466, #0b1530); }
.switch[aria-checked="true"] .knob { transform: translateX(40px); background: #e8ecff; }
.switch[aria-checked="true"] .sun { display: none; }
.switch[aria-checked="true"] .moon { display: block; }

.hud { position: absolute; z-index: 3; top: 84px; color: var(--white); font-size: 10px; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); display: flex; align-items: center; gap: 8px; }
.hud-tl { left: 24px; }
.hud-tr { right: 24px; }
.rec { width: 10px; height: 10px; background: #ff3b3b; border-radius: 50%; animation: blink 1.2s steps(1) infinite; }

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 70px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--white); text-decoration: none; font-size: 9px; animation: bob 2s ease-in-out infinite;
}
.scroll-hint svg { width: 24px; height: 24px; fill: none; stroke: var(--yellow); stroke-width: 3; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 200%; height: 60px; z-index: 2; fill: var(--navy); animation: wave 12s linear infinite; }

/* ----------------------------------------------------- CINTA */
.ticker {
  position: relative; z-index: 4; overflow: hidden; margin: -10px -20px 0;
  background: var(--yellow); color: var(--purple);
  border-block: 4px solid var(--purple); transform: rotate(-1.4deg);
  box-shadow: 0 10px 0 rgba(42, 20, 96, .35);
}
.ticker-track { display: flex; width: max-content; gap: 26px; padding: 16px 0; animation: marquee 30s linear infinite; }
.ticker-track span { font-family: var(--f-title); font-size: 28px; letter-spacing: .03em; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--orange); font-size: 22px; align-self: center; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ----------------------------------------------------- SECCIONES GENÉRICAS */
.section { position: relative; padding: 120px 0 70px; }
.sec-head { display: flex; align-items: center; gap: 22px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head > div { flex: 1 1 320px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head .more { font-weight: 800; text-decoration: none; font-size: 16px; }
.prop3d { image-rendering: pixelated; display: block; }
.prop-head { width: 120px; height: 120px; flex: 0 0 auto; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .25)); }

/* ----------------------------------------------------- VÍDEOS */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 34px; }
.vcard {
  display: block; color: var(--white); text-decoration: none;
  background: var(--navy-2); border: 3px solid var(--purple);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 8px 8px 0 var(--purple);
  transform-style: preserve-3d;
}
.vcard:hover { color: var(--white); }
.vthumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-retro { image-rendering: pixelated; transition: opacity .2s; }
.v-color { opacity: 0; clip-path: inset(0 0 100% 0); transition: clip-path .55s steps(10), opacity 0s .55s; }
.vcard:hover .v-color, .vcard:focus-visible .v-color { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .55s steps(10), opacity 0s; }
.vhs {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; color: var(--white);
  text-shadow: 2px 0 #ff3b3b, -2px 0 var(--turq); opacity: 0; transition: opacity .2s; pointer-events: none;
  background: rgba(11, 21, 48, .25);
}
.vcard:hover .vhs { opacity: 1; animation: glitch .5s steps(2) 2; }
.tag { position: absolute; left: 14px; top: 14px; padding: 7px 10px; font-size: 9px; border: 2px solid var(--purple); }
.tag-red { background: #e5243b; color: var(--white); }
.tag-orange { background: var(--orange); color: var(--purple); }
.dur { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .82); padding: 4px 9px; border-radius: 7px; font-weight: 700; font-size: 14px; }
.vbody { padding: 22px 24px 26px; }
.vbody h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.vbody p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ----------------------------------------------------- MUNDOS (QUÉ HAGO) */
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.world {
  position: relative; overflow: hidden;
  border: 4px solid var(--purple); border-radius: 26px;
  padding: 26px 28px 32px; box-shadow: 0 10px 0 var(--purple);
  image-rendering: pixelated;
}
.world::before { /* textura tramada */
  content: ""; position: absolute; inset: 0; z-index: -1; background-size: 256px; image-rendering: pixelated;
}
.world-water::before { background-image: url(../assets/tex/water.png); }
.world-sand::before { background-image: url(../assets/tex/sand.png); }
.world-sunset::before { background-image: url(../assets/tex/sunset.png); background-size: 100% 100%; }
.world { isolation: isolate; }
.world .prop3d { width: 150px; height: 150px; margin: -6px 0 6px -10px; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .3)); }
.world-n { margin: 0 0 8px; font-size: 10px; display: inline-block; padding: 6px 8px; background: var(--purple); color: var(--yellow); }
.world h3 { margin: 0 0 10px; font-family: var(--f-title); font-weight: 400; font-size: 34px; text-shadow: 0 3px 0 var(--purple); }
.world p:last-child { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 500; }
.world { color: var(--white); }
.world::after { /* oscurece la parte del texto para que se lea bien */
  content: ""; position: absolute; inset: 35% 0 0 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(11, 21, 48, .78) 55%);
}
.world p:last-child { text-shadow: 0 2px 0 rgba(11, 21, 48, .7); }

/* ----------------------------------------------------- SOBRE MÍ */
.about-grid { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.about-art { flex: 1 1 440px; min-width: 0; position: relative; aspect-ratio: 1 / 1; max-width: 560px; }
.about-panel {
  position: absolute; inset: 12% 4% 0 4%;
  background: url(../assets/tex/sunset.png); background-size: 100% 100%; image-rendering: pixelated;
  border: 4px solid var(--yellow); border-radius: 28px; box-shadow: 14px 14px 0 var(--orange);
}
.about-face { position: absolute; left: 50%; bottom: 0; width: 92%; transform: translateX(-50%); filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .4)); }
.float-a { position: absolute; width: 130px; height: 130px; right: -6%; top: 4%; }
.float-b { position: absolute; width: 96px; height: 96px; left: -4%; top: 30%; }
.about-tag { position: absolute; left: 8%; bottom: 6%; background: var(--purple); color: var(--yellow); padding: 8px 10px; border: 2px solid var(--yellow); font-size: 9px; }
.about-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stats li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--navy-2); border: 2px solid var(--navy-3); border-radius: 12px; }
.stats .px { color: var(--turq); font-size: 9px; align-self: center; }
.stats b { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: 15px; }

/* ----------------------------------------------------- GALERÍA */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.polaroid {
  margin: 0; background: #fff6dc; color: var(--purple); padding: 14px 14px 18px; border-radius: 6px;
  transform: rotate(var(--r)); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease);
}
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pixelate-layer { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; transition: opacity .5s; }
.pixelate-layer.done { opacity: 0; }
.polaroid figcaption { margin-top: 14px; font-size: 10px; text-align: center; }

/* ----------------------------------------------------- COMUNIDAD */
.community { padding-block: 140px; overflow: hidden; }
.community-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(11, 21, 48, .55) 30%, rgba(11, 21, 48, .55) 70%, var(--navy) 100%), url(../assets/img/noche_crop_retro.png) left center / cover;
  image-rendering: pixelated;
}
.community-card {
  position: relative; max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 44px; align-items: center; justify-content: center;
  padding: clamp(30px, 5vw, 60px);
  background: linear-gradient(135deg, rgba(42, 20, 96, .92), rgba(75, 43, 179, .92));
  border: 4px solid var(--yellow); border-radius: 34px; box-shadow: 0 14px 0 var(--purple);
}
.avatar-ring { position: relative; width: 220px; height: 220px; flex: 0 0 auto; }
.avatar-ring img { position: absolute; inset: 18px; width: 184px; height: 184px; border-radius: 50%; object-fit: cover; animation: bob 4s ease-in-out infinite; }
.ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.ring circle { fill: none; stroke: var(--yellow); stroke-width: 5; stroke-dasharray: 10 10; }
.community-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.community-copy .lead { color: #e6ddff; }
.prop-mega { position: absolute; right: -40px; top: -70px; width: 150px; height: 150px; }

/* ----------------------------------------------------- PIE */
.footer { border-top: 1px solid rgba(255, 255, 255, .1); padding: 48px 0 56px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 52px; width: auto; }
.footer-row p { margin: 8px 0 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); }

/* ----------------------------------------------------- MÓVIL */
@media (max-width: 760px) {
  .hero { height: auto; min-height: 100svh; max-height: none; }
  .hero-inner { align-items: flex-start; }
  .hero-copy { padding: 100px 0 260px; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 21, 48, .65) 0%, rgba(11, 21, 48, .2) 55%, transparent 75%); }
  .hud { display: none; }
  .section { padding: 90px 0 50px; }
  .prop-head { width: 84px; height: 84px; }
  .prop-mega { display: none; }
  .ticker-track span { font-size: 22px; }
}
#hero3d.no-3d{background:url(../assets/img/playa.jpg) center/cover}

/* ----------------------------------------------------- VÍDEOS Y SHORTS AUTOMÁTICOS */
canvas.v-retro { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.tag-new { background: #4ade80; color: var(--purple); }
.vmeta { font-size: 15px !important; }
.latest-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  background: #4ade80; color: var(--purple); text-decoration: none; font-weight: 800;
  padding: 8px 14px; border: 2px solid var(--purple); border-radius: 999px; box-shadow: 0 4px 0 var(--purple);
}
.latest-pill:hover { color: var(--purple); transform: translateY(-2px); }
.latest-pill .px { font-size: 9px; }
.latest-pill .lp-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.shorts { padding-top: 40px; }
.shorts-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 18px;
  overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory;
  scrollbar-color: var(--yellow) transparent;
}
.scard { scroll-snap-align: start; color: var(--white); text-decoration: none; transition: transform .25s var(--ease); }
.scard:hover { color: var(--white); transform: translateY(-8px) rotate(-1deg); }
.sthumb {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000;
  border: 3px solid var(--purple); box-shadow: 6px 6px 0 var(--purple);
}
.sthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard:hover .v-color, .scard:focus-visible .v-color { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .55s steps(10), opacity 0s; }
.sviews { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .8); padding: 3px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.scard p { margin: 10px 2px 0; font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-pill[hidden]{display:none}
