/* ═══════════════════════════════════════════════════════════
   LITASO.COM — main.css
   Base, layout, hero, socials, videos, email, footer
═══════════════════════════════════════════════════════════ */

/* ─── RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ─── BODY */
body {
  background: #111;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 768px) { body { cursor: auto; } }

/* ─── CURSOR */
.c-dot, .c-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 20000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: left, top;
}
.c-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.c-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 50%;
  transition: width .22s, height .22s, border-color .22s;
}
@media (max-width: 768px) { .c-dot, .c-ring { display: none; } }

/* ─── HERO */
#hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 500px;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #111;
  contain: layout style;
}

.firelight {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at bottom, rgba(255,255,255,.09) 0%, transparent 70%);
  animation: fl 2.5s ease infinite;
}
@keyframes fl { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(0,0,0,.82) 100%);
}

.hero-cnt {
  position: relative; z-index: 10;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  margin-bottom: 20vh;
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5.5rem, 18vw, 14rem);
  letter-spacing: .08em; line-height: 1;
  color: #fff;
  text-shadow: 4px 4px 0 rgba(0,0,0,.9), 8px 8px 20px rgba(0,0,0,.8), 0 0 40px rgba(255,255,255,.15);
  animation: sway 4.5s ease-in-out infinite;
  user-select: none;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes sway {
  0%,100% { transform: rotate(-.8deg); }
  33% { transform: rotate(.7deg) translateY(-5px); }
  66% { transform: rotate(-.4deg) translateY(-2px); }
}
@keyframes textGlow {
  0%,100% { text-shadow: 4px 4px 0 rgba(0,0,0,.9), 8px 8px 20px rgba(0,0,0,.8), 0 0 40px rgba(255,255,255,.15); }
  20% { text-shadow: 4px 4px 0 rgba(0,0,0,.5), 0 0 30px rgba(255,255,255,.9), 0 0 80px rgba(255,255,255,.65), 0 0 140px rgba(255,255,255,.4); }
  50% { text-shadow: 4px 4px 0 rgba(0,0,0,.3), 0 0 20px #fff, 0 0 60px rgba(255,255,255,.9), 0 0 130px rgba(255,255,255,.55), 0 0 200px rgba(255,255,255,.25); }
  80% { text-shadow: 4px 4px 0 rgba(0,0,0,.5), 0 0 30px rgba(255,255,255,.9), 0 0 80px rgba(255,255,255,.65), 0 0 140px rgba(255,255,255,.4); }
}
/* NEW */
@keyframes titleWiggle {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px) rotate(-1deg);
    }

    40% {
        transform: translateX(3px) rotate(1deg);
    }

    60% {
        transform: translateX(-2px) rotate(-0.5deg);
    }

    80% {
        transform: translateX(2px) rotate(0.5deg);
    }

    100% {
        transform: translateX(0);
    }
}
/* ENDNEW */

.title-wiggle {
    animation: titleWiggle 0.35s ease;
}
.hero-tag {
  font-size: clamp(.72rem, 2vw, .95rem);
  letter-spacing: .36em; text-transform: uppercase;
  color: rgba(255,255,255,.38); font-weight: 300;
  animation: fuA 1s .5s ease both;
}
@keyframes fuA { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.scroll-h {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  opacity: 0;
  animation: fuA 1s 1.6s ease both, bob 2.4s 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-h span { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.28); }
.scroll-h svg { width: 17px; height: 17px; stroke: rgba(255,255,255,.28); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── LAYOUT */
.section { max-width: 900px; margin: 0 auto; padding: 5.5rem 1.5rem; }

.sec-label {
  font-size: .67rem; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.sec-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,.14), transparent);
}

.divider { border: none; border-top: 1px solid rgba(255,255,255,.07); }

/* ─── REVEAL */
@keyframes ru { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ─── SOCIALS */
.sg { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width: 480px) { .sg { grid-template-columns: 1fr; } }

.sc {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  text-decoration: none; color: #fff;
  background: rgba(255,255,255,.03);
  transition: border-color .3s, background .3s, transform .25s, box-shadow .3s;
  opacity: 0; transform: translateY(26px);
  will-change: transform;
}
.sc.vis { animation: ru .52s ease forwards; }
.sc:hover {
  border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.07);
  transform: translateY(-3px); box-shadow: 0 12px 38px rgba(0,0,0,.5);
}
.sc:nth-child(1) { animation-delay: 0s; }
.sc:nth-child(2) { animation-delay: .09s; }
.sc:nth-child(3) { animation-delay: .18s; }
.sc:nth-child(4) { animation-delay: .27s; }

.si {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border-radius: 4px; flex-shrink: 0;
  transition: background .3s;
}
.sc:hover .si { background: rgba(255,255,255,.14); }
.si svg { width: 21px; height: 21px; fill: #fff; }
.sn { display: flex; flex-direction: column; }
.sname { font-weight: 600; font-size: .93rem; }
.shandle { font-size: .76rem; color: rgba(255,255,255,.38); margin-top: 2px; }
.sarr {
  margin-left: auto; color: rgba(255,255,255,.3); font-size: 1rem;
  opacity: 0; transform: translateX(-5px);
  transition: opacity .25s, transform .25s;
}
.sc:hover .sarr { opacity: 1; transform: translateX(0); }

/* ─── VIDEOS */
.vg { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
@media (max-width: 660px) { .vg { grid-template-columns: 1fr; } }
@media (min-width: 661px) and (max-width: 840px) { .vg { grid-template-columns: repeat(2,1fr); } }

.vc {
  display: block; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; overflow: hidden;
  transition: border-color .3s, transform .25s, box-shadow .3s;
  opacity: 0; transform: translateY(26px);
  will-change: transform;
}
.vc.vis { animation: ru .52s ease forwards; }
.vc:hover { border-color: rgba(255,255,255,.32); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.vc:nth-child(1) { animation-delay: 0s; }
.vc:nth-child(2) { animation-delay: .13s; }
.vc:nth-child(3) { animation-delay: .26s; }

.vt-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.vt {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(20%) brightness(.88);
  transition: filter .35s, transform .35s;
}
.vc:hover .vt { filter: grayscale(0%) brightness(1); transform: scale(1.05); }
.po {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  background: rgba(0,0,0,.35);
}
.po svg { width: 46px; height: 46px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)); }
.vc:hover .po { opacity: 1; }
.vi { padding: .85rem 1rem; }
.vtitle {
  font-size: .82rem; line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vdate { font-size: .69rem; color: rgba(255,255,255,.3); margin-top: 4px; }

/* skeleton */
.sk { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 6px; overflow: hidden; animation: sp 1.6s ease-in-out infinite; }
.sk-th { width: 100%; aspect-ratio: 16/9; background: rgba(255,255,255,.05); }
.sk-b { padding: .85rem 1rem; }
.sk-l { height: 11px; background: rgba(255,255,255,.06); border-radius: 3px; margin-bottom: 8px; }
.sk-l:last-child { width: 52%; margin-bottom: 0; }
@keyframes sp { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.ve { grid-column: 1/-1; text-align: center; color: rgba(255,255,255,.32); font-size: .87rem; padding: 3rem 0; }
.ve a { color: #fff; text-decoration: underline; }

/* ─── EMAIL */
.eb {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  background: rgba(255,255,255,.03);
  padding: 2.2rem 2.5rem;
  opacity: 0; transform: translateY(26px);
  transition: border-color .3s, background .3s;
  position: relative; overflow: hidden;
  will-change: transform;
}
.eb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 55%);
  pointer-events: none;
}
.eb.vis { animation: ru .52s ease forwards; }
.eb:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.ec { flex: 1 1 200px; }
.ee { font-size: .63rem; letter-spacing: .35em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .45rem; }
.et { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem,4vw,2.7rem); letter-spacing: .05em; line-height: 1; }
.el {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.7rem;
  border: 1px solid #fff; border-radius: 4px;
  color: #111; background: #fff;
  text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.el:hover { background: #e5e5e5; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.el svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ─── FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center; padding: 1.8rem 1rem;
  font-size: .7rem; color: rgba(255,255,255,.18); letter-spacing: .12em;
}

/* ─── SUGGESTIONS SECTION (COMPACT & ATTRACTIVE) ─── */
.sug-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.sug-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
}

.sug-header {
  text-align: center;
  margin-bottom: 32px;
}

.sug-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #fff;
}

.sug-header p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

/* Grid de Categorías Compacto */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.cat-item {
  position: relative;
  cursor: pointer;
}

.cat-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.cat-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  min-height: 50px;
}

.cat-item:hover span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cat-item input:checked + span {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Inputs y Textarea Compactos */
input[type="email"],
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="email"] {
  margin-bottom: 5px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Botón de Envío Llamativo */
.sug-btn {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.sug-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.sug-btn:hover {
  transform: translateY(-3px);
  background: #f0f0f0;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.sug-btn:hover svg {
  transform: translate(3px, -3px);
}

/* Estado del formulario (Formspree AJAX) */
.form-status {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1rem;
  padding: 15px;
  border-radius: 12px;
  font-weight: 500;
}

.form-status.success { 
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-status.error { 
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.field-error {
  display: block;
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 5px;
}

/* Popup de Éxito Sugerencias */
#sug-popup-overlay {
  display: none; /* Oculto por defecto */
}

#sug-popup-overlay.open {
  display: flex; /* Se muestra solo cuando tiene la clase .open */
}

.sug-success-card {
  text-align: center;
  padding: 40px 30px;
  max-width: 400px;
}

.sug-success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.sug-success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #fff;
}

.sug-success-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.sug-success-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sug-success-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .sug-box { padding: 24px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
