/* ════════════════════════════════════════════════════════════════
   IdeagoX — styles.css
   © 2026 Diego Castillo. Todos los derechos reservados.
   Prohibida la reproducción sin autorización expresa del autor.
════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg:         #050911;
  --surface:    #0d1520;
  --card:       #0f1c2d;
  --primary:    #00d4ff;
  --secondary:  #0066cc;
  --accent:     #7c3aed;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --border:     rgba(0, 212, 255, 0.15);
  --border-dim: rgba(255, 255, 255, 0.06);
  --success:    #10b981;
  --warning:    #f59e0b;
  --danger:     #ef4444;
  --nav-h:      64px;
  --radius:     16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
  --font-head:  'Orbitron', 'Courier New', monospace;
  --font-body:  'Inter', system-ui, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 102, 204, 0.12) 0%, transparent 60%),
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ─── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2), 0 0 24px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.4), 0 0 48px rgba(0, 212, 255, 0.2);
  }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.3; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* ─── Typography helpers ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #050911;
  border: none;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.btn-price {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white;
  font-size: 0.8rem;
}

.btn-price:hover {
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-buy {
  background: rgba(77, 184, 168, 0.08);
  border-color: rgba(77, 184, 168, 0.3) !important;
  color: #4db8a8 !important;
  font-size: 0.8rem;
}

.btn-buy:hover {
  background: rgba(77, 184, 168, 0.15) !important;
  box-shadow: 0 6px 18px rgba(77, 184, 168, 0.2);
}

.btn-hero {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.price-tag {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(5, 9, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  flex-shrink: 0;
}

.logo-bracket {
  color: var(--muted);
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.03em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-stats {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.stat-badge.hot {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}

.stat-badge.user {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.stat-icon {
  font-size: 0.85rem;
}

/* ─── Hero Band ──────────────────────────────────────────────── */
.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3rem) 4rem 4rem;
  gap: 3rem;
  overflow: hidden;
  position: relative;
}

.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-band-inner {
  flex: 1;
  max-width: 620px;
  animation: fadeInUp 0.8s ease both;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: 'Courier New', monospace;
}

.hero-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-tech-stack {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-item {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.tech-sep {
  color: rgba(0, 212, 255, 0.3);
  font-size: 0.9rem;
}

/* ─── Memory Visual ───────────────────────────────────────────── */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.mem-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  gap: 4px;
  padding: 0;
  overflow: hidden;
}

.mem-cell {
  border-radius: 3px;
  background: linear-gradient(160deg,
    rgba(0, 212, 255, 0.045) 0%,
    rgba(0, 212, 255, 0.02) 60%,
    rgba(0, 0, 0, 0.12) 100%
  );
  border: 1px solid rgba(0, 212, 255, 0.08);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.04),
    inset 2px 0 0 rgba(255, 255, 255, 0.02),
    inset -2px 0 0 rgba(0, 0, 0, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  animation: mem-cube var(--dur, 0.32s) var(--delay, 0s) ease forwards;
}

.mem-cell--dark {
  animation: none !important;
  background: linear-gradient(160deg,
    rgba(0, 212, 255, 0.022) 0%,
    rgba(0, 212, 255, 0.008) 100%
  ) !important;
  border-color: rgba(0, 212, 255, 0.045) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    inset -1px 0 0 rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22) !important;
}

/* Cinema intro: fully-lit grid state */
.mem-cell.bright {
  animation: none !important;
  background: linear-gradient(160deg,
    rgba(200, 248, 255, 0.96) 0%,
    rgba(0,   212, 255, 0.75) 45%,
    rgba(0,    60, 110, 0.45) 100%
  ) !important;
  border-color: rgba(0, 212, 255, 1) !important;
  box-shadow:
    inset 0 2px 0  rgba(255, 255, 255, 0.55),
    inset 2px 0 0  rgba(255, 255, 255, 0.28),
    inset -2px 0 0 rgba(0, 0, 0, 0.22),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 0 10px rgba(0, 212, 255, 0.85),
    0 0 24px rgba(0, 212, 255, 0.38) !important;
  transition: none;
}

@keyframes mem-cube {
  0% {
    background: linear-gradient(160deg,
      rgba(0, 212, 255, 0.045) 0%,
      rgba(0, 212, 255, 0.02) 60%,
      rgba(0, 0, 0, 0.12) 100%
    );
    border-color: rgba(0, 212, 255, 0.08);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.04),
      inset 2px 0 0 rgba(255, 255, 255, 0.02),
      inset -2px 0 0 rgba(0, 0, 0, 0.22),
      inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  }
  42% {
    background: linear-gradient(160deg,
      rgba(200, 248, 255, 0.95) 0%,
      rgba(0, 212, 255, var(--intensity, 0.65)) 45%,
      rgba(0, 60, 110, calc(var(--intensity, 0.65) * 0.55)) 100%
    );
    border-color: rgba(0, 212, 255, 1);
    box-shadow:
      0 0 22px rgba(0, 212, 255, 0.85),
      0 0 44px rgba(0, 212, 255, 0.3),
      inset 0 5px 0 rgba(255, 255, 255, 0.4),
      inset 5px 0 0 rgba(255, 255, 255, 0.22),
      inset -4px 0 0 rgba(0, 20, 45, 0.65),
      inset 0 -4px 0 rgba(0, 10, 30, 0.75);
  }
  100% {
    background: linear-gradient(160deg,
      rgba(120, 230, 255, calc(var(--intensity, 0.38) * 1.4)) 0%,
      rgba(0, 212, 255, var(--intensity, 0.38)) 50%,
      rgba(0, 40, 90, calc(var(--intensity, 0.38) * 0.5)) 100%
    );
    border-color: rgba(0, 212, 255, 0.42);
    box-shadow:
      0 0 10px rgba(0, 212, 255, calc(var(--intensity, 0.38) * 0.65)),
      inset 0 3px 0 rgba(255, 255, 255, 0.14),
      inset 3px 0 0 rgba(255, 255, 255, 0.07),
      inset -3px 0 0 rgba(0, 0, 0, 0.38),
      inset 0 -3px 0 rgba(0, 0, 0, 0.44);
  }
}

/* Status bar reposicionado */
.hero-mem-status {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 2;
  width: 200px;
}

/* El contenido del hero encima del grid */
.hero-band-inner {
  position: relative;
  z-index: 1;
}

.mem-status {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mem-status-bar {
  height: 3px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.mem-status-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), var(--primary));
  border-radius: 99px;
  transition: width 0.1s linear;
}

.mem-status-label {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: rgba(0, 212, 255, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}

/* ─── Section Shared ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Projects Section ───────────────────────────────────────── */
.projects-section {
  padding: 5rem 0 2rem;
  min-height: 80vh;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── Project Card ───────────────────────────────────────────── */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  cursor: default;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.12s; }
.project-card:nth-child(3) { animation-delay: 0.19s; }
.project-card:nth-child(4) { animation-delay: 0.26s; }
.project-card:nth-child(5) { animation-delay: 0.33s; }
.project-card:nth-child(6) { animation-delay: 0.40s; }

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1), 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 4s ease-in-out infinite;
}

.card-category {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-family: 'Courier New', monospace;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  min-height: 22px;
}

.stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.rating-avg {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.rating-count {
  color: var(--muted);
  font-size: 0.75rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─── Reviews Section ────────────────────────────────────────── */
.reviews-section {
  padding: 5rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--muted);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.add-review-cta {
  text-align: center;
  margin: 1.5rem 0;
}

.reviews-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.9rem 1.25rem;
  border: 1px dashed rgba(0, 212, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 1.5rem;
}

.note-icon {
  font-size: 1rem;
}

/* ─── Subscribe Banner ───────────────────────────────────────── */
.subscribe-banner {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(124, 58, 237, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.subscribe-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.banner-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.banner-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.banner-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.footer-bottom span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: fadeInUp 0.3s ease both;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.06);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box--wide {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.modal-box h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.modal-box p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal-box p strong {
  color: var(--primary);
}

.modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.modal-subtitle {
  color: var(--primary) !important;
  font-size: 0.85rem !important;
  font-family: 'Courier New', monospace;
  margin-bottom: 1.25rem !important;
}

.modal-disclaimer {
  color: var(--muted) !important;
  font-size: 0.75rem !important;
  text-align: center;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

/* Modal form elements */
.modal-box input,
.modal-box textarea,
.modal-box select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.modal-box input:focus,
.modal-box textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.modal-box input::placeholder,
.modal-box textarea::placeholder {
  color: var(--muted);
}

.modal-box .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
  font-size: 0.925rem;
}

/* ─── Test card form — remove per-input margin inside grid ──── */
#testCardForm input { margin-bottom: 0; }

/* ─── Rating Input ───────────────────────────────────────────── */
.rating-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.rating-input > span {
  color: var(--muted);
  font-size: 0.875rem;
}

.stars-input {
  display: flex;
  gap: 0.25rem;
}

.star-btn {
  font-size: 1.75rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s, transform 0.12s;
  user-select: none;
  line-height: 1;
}

.star-btn:hover,
.star-btn.hover,
.star-btn.active {
  color: #fbbf24;
  transform: scale(1.15);
}

/* ─── Project Detail (inside modal) ─────────────────────────── */
.project-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.detail-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.detail-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.25rem;
}

.detail-placeholder {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.placeholder-badge {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.detail-placeholder p {
  color: var(--muted) !important;
  margin-bottom: 0.5rem !important;
}

.detail-desc {
  font-size: 0.875rem !important;
  color: #94a3b8 !important;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 0.875rem 1.75rem !important;
  font-size: 0.95rem !important;
}

/* ─── Success Message ────────────────────────────────────────── */
.success-msg {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.success-msg h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem !important;
}

.success-msg p {
  color: var(--muted) !important;
  margin-bottom: 0.5rem !important;
}

/* ─── Responsive — Large ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ─── Responsive — Tablet ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-band {
    flex-direction: column;
    padding: calc(var(--nav-h) + 2rem) 2rem 3rem;
    min-height: auto;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .mem-panel {
    gap: 3px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tech-stack {
    justify-content: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .subscribe-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Responsive — Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
    display: none;
  }

  .nav-stats {
    gap: 0.4rem;
  }

  .stat-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 3rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-band {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .reviews-section {
    padding: 4rem 1rem 3rem;
  }

  .modal-box {
    padding: 2rem 1.5rem;
  }

  .footer-links {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .btn-primary,
  .detail-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .mem-panel {
    gap: 2px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .modal-box {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
}

/* ─── Card Image ─────────────────────────────────────────────── */
.card-image-wrap {
  position: relative;
  width: calc(100% + 3.5rem);
  margin: -1.75rem -1.75rem 1.25rem;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}

.project-card:hover .card-image {
  transform: scale(1.05);
  filter: brightness(0.95) saturate(1);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-coming-soon {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 17, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.coming-soon-badge {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 6px;
  padding: 0.4rem 1rem;
}

.card-locked {
  opacity: 0.75;
}

.card-locked:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

/* ─── Navbar Brand ───────────────────────────────────────────── */
.logo-main {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-sub {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-top: 1px;
}

/* ─── Reviews Grid ───────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.review-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-stars {
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-project {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

.review-text {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.review-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
}

.reviews-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* ─── Detail Gallery ─────────────────────────────────────────── */
.detail-gallery {
  margin-bottom: 1.5rem;
}

.gallery-main img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.9);
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gallery-thumb {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

/* ─── Detail Video ───────────────────────────────────────────── */
.detail-video-wrap {
  margin-bottom: 1.5rem;
}

.detail-video-label {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.detail-video-container {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}

.detail-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── Detail Long Description ────────────────────────────────── */
.detail-long-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.detail-long-desc p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.detail-long-desc h4 {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
}

.detail-long-desc ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-long-desc li {
  color: var(--muted);
}

.detail-long-desc strong {
  color: var(--text);
}

/* ─── Utility ────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Scanline overlay (subtle effect) ──────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── Sobre Nosotros Section ─────────────────────────────────── */
.about-section {
  padding: 6rem 4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 204, 0.04) 50%, transparent 100%);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-tag {
  margin-bottom: 1rem;
}

.about-mission {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.75);
  transition: border-color 0.2s, background 0.2s;
}

.about-pillar:hover {
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.07);
}

.about-pillar-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.about-pillar-text strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.founder-card {
  background: linear-gradient(145deg, rgba(13, 21, 32, 0.9), rgba(15, 28, 45, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 102, 204, 0.06);
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), var(--accent), rgba(0, 212, 255, 0.5), transparent);
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.2));
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.founder-meta .founder-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.founder-meta .founder-role {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.founder-bio {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Founder location */
.founder-location {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Founder LinkedIn link */
.founder-links {
  margin-bottom: 1.2rem;
}
.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(10, 102, 194, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.founder-linkedin:hover {
  background: rgba(10, 102, 194, 0.12);
  color: #3b9fe8;
  border-color: rgba(10, 102, 194, 0.7);
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── Portfolio section tabs ─────────────────────────────────── */
.portfolio-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.ptab {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--muted);
  border-radius: 24px;
  padding: 0.5rem 1.3rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.ptab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}
.ptab.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
/* Animación al cambiar sección */
.projects-grid.changing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.projects-grid.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.founder-tag {
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--primary);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .about-section {
    padding: 4rem 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 3rem 1.5rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   CINEMA INTRO  —  cubes converge → big cube spins → letter I → lamp
════════════════════════════════════════════════════════════════ */

.cinema-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

/* ── 3-D cube ─────────────────────────── */
.cinema-cube-wrap {
  position: absolute;
  left: 72%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
}

/* outer glow ring behind the cube */
.cinema-cube-wrap::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    0 0 60px  rgba(0, 212, 255, 0.65),
    0 0 120px rgba(0, 212, 255, 0.28);
  opacity: 0;
}
.cinema-cube-wrap.glowing::after {
  animation: cube-wrap-glow 2.8s ease forwards;
}
@keyframes cube-wrap-glow {
  0%, 5%  { opacity: 0; }
  15%     { opacity: 1; }
  85%     { opacity: 0.85; }
  100%    { opacity: 0; }
}

.cinema-perspective {
  position: absolute;
  inset: 0;
  perspective: 640px;
  perspective-origin: 50% 44%;
}

.cinema-cube {
  width: 160px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  opacity: 0;
  transform: scale(0.01);
}

.cinema-cube.spin {
  animation: cinema-spin 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes cinema-spin {
  0%   { transform: scale(0.04) rotateY(0deg)   rotateX(30deg);  opacity: 0; }
  7%   { transform: scale(1.02) rotateY(80deg)  rotateX(6deg);   opacity: 1; }
  20%  { transform: scale(1.05) rotateY(150deg) rotateX(-8deg); }
  48%  { transform: scale(1.0)  rotateY(270deg) rotateX(12deg); }
  74%  { transform: scale(1.0)  rotateY(395deg) rotateX(-3deg); }
  88%  { transform: scale(1.0)  rotateY(438deg) rotateX(0deg);   opacity: 1; }
  100% { transform: scale(0.82) rotateY(450deg) rotateX(0deg);   opacity: 0; }
}

/* ── cube faces ── */
.c-face {
  position: absolute;
  width: 160px;
  height: 160px;
  backface-visibility: hidden;
  border: 1.5px solid rgba(0, 212, 255, 0.72);
}
.c-front {
  transform: translateZ(80px);
  background: linear-gradient(148deg,
    rgba(210, 252, 255, 0.42) 0%,
    rgba(0,  212, 255, 0.22) 52%,
    rgba(0,  28,  70, 0.30) 100%);
  box-shadow: inset 0 0 28px rgba(0, 212, 255, 0.28);
}
.c-back   { transform: rotateY(180deg) translateZ(80px);  background: rgba(0, 4, 18, 0.75); }
.c-left   { transform: rotateY(-90deg) translateZ(80px);  background: linear-gradient(90deg,  rgba(0,0,0,0.55), rgba(0,212,255,0.11)); }
.c-right  { transform: rotateY( 90deg) translateZ(80px);  background: linear-gradient(270deg, rgba(0,0,0,0.55), rgba(0,212,255,0.11)); }
.c-top {
  transform: rotateX(90deg) translateZ(80px);
  background: linear-gradient(180deg,
    rgba(215, 252, 255, 0.62) 0%,
    rgba(0,   212, 255, 0.26) 100%);
}
.c-bottom { transform: rotateX(-90deg) translateZ(80px); background: rgba(0, 0, 0, 0.62); }

/* ── letter I ─────────────────────────── */
.cinema-letter-i {
  position: absolute;
  left: 72%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 154px;
  height: 236px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cinema-letter-i.visible { opacity: 1; }

.i-bar-top, .i-bar-bottom {
  width: 100%;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(180deg,
    rgba(225, 254, 255, 0.98) 0%,
    rgba(0,   212, 255, 0.82) 100%);
  border: 2px solid rgba(0, 212, 255, 1);
  box-shadow:
    0 0 22px rgba(0, 212, 255, 0.88),
    0 0 55px rgba(0, 212, 255, 0.42),
    inset 0 3px 10px rgba(255, 255, 255, 0.48);
  transform: scaleX(0);
  transform-origin: center;
}

.i-stem {
  flex: 1;
  width: 46px;
  background: linear-gradient(180deg,
    rgba(0, 212, 255, 0.62),
    rgba(0, 212, 255, 0.40));
  border-left:  2px solid rgba(0, 212, 255, 0.95);
  border-right: 2px solid rgba(0, 212, 255, 0.95);
  box-shadow:
    0 0 16px rgba(0, 212, 255, 0.55),
    inset  3px 0 0 rgba(255, 255, 255, 0.11),
    inset -3px 0 0 rgba(0,   0,   0,   0.32);
  transform: scaleY(0);
  transform-origin: top center;
}

.i-bar-top.draw    { animation: bar-in  0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.i-stem.draw       { animation: stem-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.i-bar-bottom.draw { animation: bar-in  0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes bar-in  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stem-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── lamp burst ─────────────────────────── */
.cinema-lamp-burst {
  position: absolute;
  left: 72%;
  top: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.cinema-lamp-burst.lit {
  animation: lamp-burst 2.4s ease-out forwards;
}

@keyframes lamp-burst {
  0%  {
    opacity: 0;
    background: radial-gradient(ellipse 8px 8px at 50% 50%,
      rgba(255,255,255,1) 0%, transparent 100%);
    transform: translate(-50%, -50%) scale(0.05);
  }
  6% {
    opacity: 1;
    background: radial-gradient(ellipse 80px 160px at 50% 50%,
      rgba(255,255,255,1)    0%,
      rgba(220,255,255,1)   12%,
      rgba(0, 212,255,0.96) 32%,
      rgba(0,  40, 90,0.70) 60%,
      transparent 100%);
    transform: translate(-50%, -50%) scale(1);
  }
  22% {
    background: radial-gradient(ellipse 400px 700px at 50% 50%,
      rgba(255,255,255,0.88)  0%,
      rgba(220,252,255,0.75) 10%,
      rgba(0,  212,255,0.60) 28%,
      rgba(0,   30, 80,0.32) 58%,
      transparent 84%);
  }
  52% {
    background: radial-gradient(ellipse 800px 1000px at 50% 50%,
      rgba(230,252,255,0.18)  0%,
      rgba(0,  212,255,0.42) 18%,
      rgba(0,   20, 60,0.22) 52%,
      transparent 78%);
  }
  100% {
    opacity: 0;
    background: radial-gradient(ellipse 1400px 1600px at 50% 50%,
      rgba(220,252,255,0.02)  0%,
      rgba(0,  212,255,0.07) 25%,
      transparent 52%);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ── SVG bulb — IdeagoX logo ───── */
.cinema-bulb-wrap {
  position: absolute;
  left: 72%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 300px;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.cinema-bulb-wrap.visible { opacity: 1; }
.b-svg { width: 100%; height: 100%; overflow: visible; }

/* Rays */
.b-ray {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cinema-bulb-wrap.draw .b-ray-1 { opacity: 1; transition-delay: 1.05s; }
.cinema-bulb-wrap.draw .b-ray-2 { opacity: 1; transition-delay: 1.10s; }
.cinema-bulb-wrap.draw .b-ray-3 { opacity: 1; transition-delay: 1.15s; }
.cinema-bulb-wrap.draw .b-ray-4 { opacity: 1; transition-delay: 1.20s; }
.cinema-bulb-wrap.draw .b-ray-5 { opacity: 1; transition-delay: 1.25s; }
.cinema-bulb-wrap.draw .b-ray-6 { opacity: 1; transition-delay: 1.20s; }
.cinema-bulb-wrap.draw .b-ray-7 { opacity: 1; transition-delay: 1.15s; }
.cinema-bulb-wrap.draw .b-ray-8 { opacity: 1; transition-delay: 1.10s; }
.cinema-bulb-wrap.lit .b-ray {
  stroke: #00eeff !important;
  filter: drop-shadow(0 0 4px rgba(0, 220, 255, 0.85));
}

/* Globe: dark state */
.b-globe-dark {
  fill: url(#bGlobeOff);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.cinema-bulb-wrap.draw .b-globe-dark { opacity: 1; }

/* Globe: lit state */
.b-globe-lit {
  fill: url(#bGlobeOn);
  opacity: 0;
  transition: opacity 0.7s ease;
}
.cinema-bulb-wrap.lit .b-globe-lit { opacity: 1; }

/* Globe: stroke draws itself */
.b-globe-stroke {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 2.5;
  stroke-dasharray: 472;
  stroke-dashoffset: 472;
  transition: stroke-dashoffset 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}
.cinema-bulb-wrap.draw .b-globe-stroke { stroke-dashoffset: 0; }
.cinema-bulb-wrap.lit  .b-globe-stroke { opacity: 0.35; }

/* Glass shine */
.b-shine {
  fill: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: fill 0.5s ease, opacity 0.5s ease;
}
.cinema-bulb-wrap.lit .b-shine {
  fill: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

/* Bolt: stroke draws first */
.b-bolt-dark {
  fill: rgba(5, 15, 40, 0.85);
  stroke: rgba(0, 212, 255, 0.55);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 241;
  stroke-dashoffset: 241;
  opacity: 0;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.8s,
              opacity 0.01s ease 0.79s;
}
.cinema-bulb-wrap.draw .b-bolt-dark {
  opacity: 1;
  stroke-dashoffset: 0;
}
.cinema-bulb-wrap.lit .b-bolt-dark { opacity: 0; transition: opacity 0.2s ease; }

/* Bolt: white glowing on lit */
.b-bolt-lit {
  fill: rgba(255, 255, 255, 0);
  stroke: none;
  stroke-linejoin: round;
  opacity: 0;
  transition: fill 0.4s ease, opacity 0.4s ease;
}
.cinema-bulb-wrap.lit .b-bolt-lit {
  fill: rgba(255, 255, 255, 0.96);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.72));
}

/* Collar */
.b-collar {
  fill: #2a3d50;
  stroke: rgba(0, 212, 255, 0.45);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity 0.3s ease 0.72s;
}
.cinema-bulb-wrap.draw .b-collar { opacity: 1; }
.cinema-bulb-wrap.lit  .b-collar { stroke: rgba(0, 212, 255, 0.65); }

/* Base bands */
.b-base {
  fill: #1c2e3e;
  stroke: rgba(0, 212, 255, 0.22);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cinema-bulb-wrap.draw .b-base-1 { opacity: 1; transition-delay: 0.78s; }
.cinema-bulb-wrap.draw .b-base-2 { opacity: 1; transition-delay: 0.84s; }
.cinema-bulb-wrap.draw .b-base-3 { opacity: 1; transition-delay: 0.90s; }

/* Settled ambient pulse */
@keyframes bulb-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.70))
            drop-shadow(0 0 35px rgba(0, 212, 255, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.92))
            drop-shadow(0 0 60px rgba(0, 212, 255, 0.48));
  }
}
.cinema-bulb-wrap.settled {
  animation: bulb-pulse 2.5s ease-in-out infinite;
}

/* ── IdeagoX logo text — aparece tras la explosión ─── */
.cinema-logo-text {
  position: absolute;
  left: 72%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: #00d4ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  text-shadow:
    0 0 18px rgba(0, 212, 255, 0.85),
    0 0 50px rgba(0, 212, 255, 0.40);
}
.cinema-logo-text span {
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.6),
    0 0 50px rgba(0, 212, 255, 0.35);
}
.cinema-logo-text.visible { opacity: 1; }

@keyframes logo-pulse {
  0%, 100% {
    text-shadow:
      0 0 18px rgba(0, 212, 255, 0.85),
      0 0 50px rgba(0, 212, 255, 0.40);
    filter: none;
  }
  50% {
    text-shadow:
      0 0 28px rgba(0, 212, 255, 1.0),
      0 0 80px rgba(0, 212, 255, 0.60),
      0 0 140px rgba(0, 100, 200, 0.30);
    filter: brightness(1.15);
  }
}
.cinema-logo-text.settled {
  animation: logo-pulse 3s ease-in-out infinite;
}

/* Founder photo */
.founder-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 255, 0.55);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* Mobile: reposition animation to top-center */
@media (max-width: 768px) {
  .cinema-letter-i,
  .cinema-lamp-burst,
  .cinema-bulb-wrap,
  .cinema-logo-text {
    left: 50%;
    top: 30%;
  }
}

/* ── Particle explosion ─────────────────────────────────────── */
@keyframes particle-fly {
  0%   {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  55%  { opacity: 0.75; }
  100% {
    transform: translate(calc(-50% + var(--pdx)), calc(-50% + var(--pdy))) scale(0);
    opacity: 0;
  }
}

/* ── Loop centered mode: all elements move to screen center ─── */
.cinema-stage.centered .cinema-letter-i,
.cinema-stage.centered .cinema-lamp-burst,
.cinema-stage.centered .cinema-bulb-wrap,
.cinema-stage.centered .cinema-logo-text {
  left: 68%;
  top:  50%;
}

/* ── stage exit ── */
.cinema-stage.exit {
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* ─── Sumate section ─────────────────────────────────────── */
.sumate-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.sumate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .sumate-grid { grid-template-columns: 1fr; } }
.sumate-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sumate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.04);
}
.sumate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(0,212,255,0.3);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.07);
}
.sumate-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sumate-title { font-size: 1.1rem; font-weight: 600; color: #e2e8f0; }
.sumate-desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; flex: 1; }
.sumate-cta { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-top: 0.5rem; }
