/* ============================================================
   BROTHERS VR — Stylesheet
   Paleta: negro profundo, púrpura, violeta, magenta, cyan
   ============================================================ */

/* ── Variables de color ──────────────────────────────────── */
:root {
  --bg-void:          #07030f;
  --bg-deep:          #0d0520;
  --bg-dark-purple:   #1a0535;
  --bg-purple:        #2d0a5e;
  --purple-dim:       #6b1a9e;
  --purple-main:      #9b1fe8;
  --purple-bright:    #c430ff;
  --purple-glow:      rgba(155, 31, 232, 0.4);
  --magenta-deep:     #8b0060;
  --magenta-main:     #dc146e;
  --magenta-bright:   #ff40a0;
  --magenta-glow:     rgba(220, 20, 110, 0.45);
  --cyan-dim:         #0088a8;
  --cyan-main:        #00b4cc;
  --cyan-bright:      #00d4e8;
  --cyan-glow:        rgba(0, 212, 232, 0.4);
  --text-primary:     #ffffff;
  --text-secondary:   rgba(220, 200, 255, 0.85);
  --text-muted:       rgba(180, 155, 220, 0.6);
  --text-cyan:        #00d4e8;
  --text-purple:      #d480ff;
  --text-magenta:     #ff60c0;
  --border-purple:    rgba(160, 60, 220, 0.25);
  --border-cyan:      rgba(0, 200, 220, 0.3);
  --border-magenta:   rgba(220, 20, 130, 0.3);
  --border-subtle:    rgba(255, 255, 255, 0.06);
  --glass-dark:       rgba(10, 3, 28, 0.65);
  --glass-purple:     rgba(20, 5, 50, 0.55);
  --glass-border:     rgba(160, 60, 220, 0.2);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 100px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --glow-purple: 0 0 24px rgba(155, 31, 232, 0.45);
  --glow-cyan:   0 0 24px rgba(0, 212, 232, 0.4);
  --glow-magenta:0 0 24px rgba(220, 20, 110, 0.45);
}

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

/* ── Body / Fondo aurora ─────────────────────────────────── */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 130% 65% at 20% 80%,  rgba(220, 20, 130, 0.55)  0%, transparent 60%),
    radial-gradient(ellipse 110% 55% at 80% 40%,  rgba(0, 210, 220, 0.45)   0%, transparent 55%),
    radial-gradient(ellipse 140% 70% at 50% 30%,  rgba(130, 30, 220, 0.65)  0%, transparent 65%),
    radial-gradient(ellipse 90%  45% at 70% 70%,  rgba(180, 0, 180, 0.5)    0%, transparent 55%),
    radial-gradient(ellipse 100% 55% at 30% 50%,  rgba(40, 0, 90, 0.8)      0%, transparent 60%),
    radial-gradient(ellipse 220% 22% at 50% 55%,  rgba(0, 200, 230, 0.32)   0%, transparent 50%),
    radial-gradient(ellipse 220% 16% at 40% 70%,  rgba(220, 0, 140, 0.28)   0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Tipografía ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--cyan-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-bright); }

.text-gradient {
  background: linear-gradient(90deg, var(--purple-bright), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-warm {
  background: linear-gradient(90deg, var(--magenta-bright), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(7, 3, 20, 0.3);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.navbar-logo { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.navbar-links { display: flex; gap: 2rem; list-style: none; }
.navbar-links a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; }
.navbar-links a:hover { color: var(--purple-bright); }

/* ── Hero fullscreen 3D ──────────────────────────────────── */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #07030f;
}
.hero-bg-canvas img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  transition: opacity 0.15s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(7,3,15,0.05) 0%, rgba(7,3,15,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}
.hero-content .hero-badge { margin-bottom: 1.5rem; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 600px; margin: 0 auto 2rem; color: var(--text-secondary); }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  background: rgba(180, 40, 220, 0.15);
  border: 1px solid rgba(180, 40, 220, 0.38);
  color: var(--text-purple);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
}

/* ── Secciones generales ─────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  background: rgba(7, 3, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-secondary); max-width: 650px; margin: 0 auto 3rem; }

/* ── Cards / tarjetas ────────────────────────────────────── */
.card {
  background: var(--glass-dark);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: rgba(160, 60, 220, 0.5); box-shadow: var(--glow-purple); }
.card-cyan { border-color: var(--border-cyan); }
.card-cyan:hover { border-color: rgba(0, 200, 220, 0.55); box-shadow: var(--glow-cyan); }
.card-magenta { border-color: var(--border-magenta); }
.card-magenta:hover { border-color: rgba(220, 20, 130, 0.55); box-shadow: var(--glow-magenta); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple-main), var(--purple-bright));
  color: #fff;
  box-shadow: 0 0 16px rgba(155, 31, 232, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(196, 48, 255, 0.55); opacity: 0.92; }
.btn-secondary {
  background: rgba(0, 212, 232, 0.08);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 212, 232, 0.35);
}
.btn-secondary:hover { background: rgba(0, 212, 232, 0.15); box-shadow: var(--glow-cyan); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-purple { background: rgba(155, 31, 232, 0.18); border: 1px solid rgba(155, 31, 232, 0.38); color: var(--text-purple); }
.badge-cyan { background: rgba(0, 180, 204, 0.15); border: 1px solid rgba(0, 180, 204, 0.35); color: var(--cyan-bright); }
.badge-magenta { background: rgba(220, 20, 110, 0.15); border: 1px solid rgba(220, 20, 110, 0.35); color: var(--magenta-bright); }

/* ── Bienvenida stats ────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.stat-card { text-align: center; padding: 2rem 1rem; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-bright), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ── Qué Somos ───────────────────────────────────────────── */
.qsomos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.qsomos-card { text-align: center; }
.qsomos-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.qsomos-card h3 { margin-bottom: 0.5rem; }
.qsomos-card p { font-size: 0.9rem; }

/* ── Eventos ─────────────────────────────────────────────── */
.eventos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.evento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.evento-card .bg-grad { position: absolute; inset: 0; z-index: 0; }
.evento-card .content { position: relative; z-index: 1; }
.evento-card h3 { margin-bottom: 0.3rem; }
.evento-card p { font-size: 0.85rem; margin: 0; }

/* ── Sucursales ──────────────────────────────────────────── */
.suc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.suc-card { text-align: center; padding: 1.5rem 1rem; }
.suc-card .city { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; }
.suc-card .loc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Inputs & formularios ────────────────────────────────── */
input, textarea, select {
  width: 100%; font-family: var(--font-sans); font-size: 0.875rem;
  color: var(--text-primary); background: rgba(10, 3, 28, 0.7);
  border: 1px solid var(--border-purple); border-radius: var(--radius-md);
  padding: 0.65rem 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus { border-color: var(--purple-main); box-shadow: 0 0 0 3px rgba(155, 31, 232, 0.2); }

/* ── Divisor ─────────────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--purple-dim), var(--cyan-dim), transparent); border: none; margin: 2.5rem 0; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: rgba(7, 3, 20, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--purple-dim); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-main); }
::selection { background: rgba(155, 31, 232, 0.38); color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .qsomos-grid, .eventos-grid { grid-template-columns: 1fr; }
  .suc-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-links { display: none; }
}
@media (max-width: 480px) {
  .suc-grid { grid-template-columns: 1fr; }
}
