/* ============================================================
   W-ADMIN.COM — Cinematic Extension v1
   "Desarrollo web y de aplicaciones, acelerado por Andy"
   Componentes: marquee · bento services · feature lists ·
                tech-stack grid · project metrics · platform badge
   ============================================================ */

/* ── Marquee (tech strip) ────────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
  background: rgba(255,255,255,0.01);
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Bento Services Grid ─────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 36px 30px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-style: preserve-3d;
  grid-column: span 4;
}
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 { grid-column: span 12; }

.bento-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradient-shift 4s ease-in-out infinite;
}
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradient-shift 4s ease-in-out infinite;
}
.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 60px rgba(108, 60, 224, 0.12);
}
.bento-card:hover::before { opacity: 0.55; }
.bento-card:hover::after { opacity: 1; }

.bento-icon {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: var(--radius);
  background: rgba(108, 60, 224, 0.12);
  border: 1px solid var(--border-glow);
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}
.bento-card:hover .bento-icon { transform: scale(1.08) rotate(-3deg); }
.bento-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.bento-card > p { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }

/* Feature list inside service cards */
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.service-features li::before {
  content: '▸';
  color: var(--cyan);
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.4;
}

/* ── Tech Stack Grid ─────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.tech-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.4s ease;
}
.tech-group:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.tech-group h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}
.tech-group .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-pill {
  font-size: 0.78rem;
  padding: 5px 13px;
  border-radius: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.tech-pill:hover {
  background: rgba(108,60,224,0.18);
  border-color: var(--border-glow);
  color: var(--cyan);
}

/* ── Project metrics row ─────────────────────────────────── */
.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.project-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 78px;
}
.project-metric .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.project-metric .label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Platform status badge ───────────────────────────────── */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.platform-badge.live {
  background: rgba(0, 255, 120, 0.08);
  border: 1px solid rgba(0, 255, 120, 0.3);
  color: #4cff8a;
}
.platform-badge.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4cff8a;
  box-shadow: 0 0 8px #4cff8a;
  animation: pulse-dot 2s ease-in-out infinite;
}
.platform-badge.prod {
  background: rgba(108, 60, 224, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
}

/* ── Project link / case study ───────────────────────────── */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 14px;
}
.project-link:hover { color: var(--white); gap: 10px; }

/* ── Hero video background ──────────────────────────────── */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(5,5,16,0.35) 0%, rgba(5,5,16,0.72) 60%, rgba(5,5,16,0.92) 100%);
}
.hero-media .parallax-img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}

/* ── Parallax utility ────────────────────────────────────── */
[data-parallax] {
  will-change: transform;
}

/* ── Banner image (section dividers / CTA) ───────────────── */
.banner-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  margin: 0 24px;
}
.banner-image img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.banner-image .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,16,0.1) 0%, rgba(5,5,16,0.55) 60%, rgba(5,5,16,0.85) 100%);
  z-index: 1;
}
.banner-image .banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px;
  z-index: 2;
}

/* ── Andy core (replaces avatar photo) ───────────────────── */
.andy-core-wrapper {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto;
}
.andy-core {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--gradient-brand);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(108, 60, 224, 0.35), 0 0 90px rgba(0, 212, 255, 0.15);
}
.andy-core img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.andy-core-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 50%;
  font-size: 7rem;
}

/* ── Section eyebrow (cinematic label) ───────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '— ';
  color: var(--cyan);
}

/* ============================================================
   VIVID / BOLDER THEME EXTENSION v1
   Más color, gradientes vivos, fondos con tinte, más contraste
   ============================================================ */

/* ── Vivid gradient (multi-hue, saturated) ───────────────── */
.gradient-vivid {
  background: linear-gradient(115deg, #FF2D78 0%, #FF6A00 25%, #FFD400 50%, #00E5A0 75%, #00D4FF 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

.gradient-vivid-2 {
  background: linear-gradient(115deg, #A855F7 0%, #FF2D78 40%, #FF8A00 75%, #FFD400 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

/* ── Vivid section tint backgrounds ──────────────────────── */
.section-tint {
  position: relative;
  background:
    radial-gradient(ellipse 60% 45% at 12% 0%, rgba(255, 45, 120, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 88% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(108, 60, 224, 0.14) 0%, transparent 65%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Bolder cards: stronger border + glow ────────────────── */
.bento-card.vivid {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bento-card.vivid::after { opacity: 0.7; }
.bento-card.vivid:hover {
  box-shadow: 0 0 70px rgba(255, 45, 120, 0.18), 0 0 90px rgba(0, 212, 255, 0.12), var(--shadow-card);
}

/* ── Vivid icon chip ─────────────────────────────────────── */
.bento-icon.vivid {
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.22), rgba(255, 138, 0, 0.18));
  border-color: rgba(255, 45, 120, 0.4);
  box-shadow: 0 0 24px rgba(255, 45, 120, 0.25);
}

/* ── Vivid stat number ───────────────────────────────────── */
.stat-number.vivid {
  background: linear-gradient(115deg, #FF2D78 0%, #FF8A00 40%, #FFD400 70%, #00E5A0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease-in-out infinite;
}

/* ── Vivid CTA banner ────────────────────────────────────── */
.cta-banner.vivid {
  background:
    radial-gradient(ellipse 55% 60% at 20% 30%, rgba(255, 45, 120, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 80% 30%, rgba(0, 212, 255, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 138, 0, 0.14) 0%, transparent 65%);
}

/* ── Vivid platform badge ────────────────────────────────── */
.platform-badge.hot {
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.16), rgba(255, 138, 0, 0.14));
  border: 1px solid rgba(255, 45, 120, 0.4);
  color: #ff8ab0;
}

/* ── Light-theme vivid tints ─────────────────────────────── */
[data-theme="light"] .section-tint {
  background:
    radial-gradient(ellipse 60% 45% at 12% 0%, rgba(255, 45, 120, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 88% 20%, rgba(0, 212, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(108, 60, 224, 0.08) 0%, transparent 65%);
}
[data-theme="light"] .platform-badge.hot {
  color: #c2185b;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bento-card, .bento-card.span-6, .bento-card.span-8 { grid-column: span 6; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card.span-6, .bento-card.span-8, .bento-card.span-12 { grid-column: span 1; }
  .bento-card, .bento-card:hover { transform-style: flat; transform: none; }
  .bento-card:hover { transform: translateY(-3px); }
  .marquee-track { gap: 30px; }
  .marquee-item { font-size: 0.92rem; }
  .andy-core-wrapper { width: 240px; height: 240px; }
  .banner-image { height: 260px; margin: 0 16px; }
  .banner-image .banner-caption { padding: 24px; }
  .hero-video { transform: scale(1.25); }
}
