/* ════════════════════════════════════════════════════
   SALIMOSHOY — styles.css
════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:        #07060f;
  --surface:   #10101e;
  --surface2:  #181828;
  --border:    rgba(255,255,255,0.08);
  --purple:    #7c3aed;
  --purple-lt: #a78bfa;
  --gold:      #f59e0b;
  --rose:      #f43f5e;
  --teal:      #14b8a6;
  --sky:       #38bdf8;
  --text:      #f1f0fb;
  --muted:     #9893b4;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 32px rgba(0,0,0,0.55);
  --nav-h:     64px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Utilities ─────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,6,15,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h); padding: 0 32px;
  max-width: 1440px; margin: 0 auto;
}
.nav__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 900; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--purple-lt), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap; flex-shrink: 0;
}
.nav__links { display: flex; gap: 2px; list-style: none; flex: 1; }
.nav__links a {
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface2); }
.nav__links a.active { color: var(--text); background: var(--surface2); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── LANG PICKER ────────────────────────────────────── */
.lang-picker { position: relative; }
.lang-picker__btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); font-size: .8rem; font-weight: 600;
  transition: border-color .2s;
}
.lang-picker__btn:hover { border-color: var(--purple-lt); }
.lang-picker__menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); list-style: none; min-width: 140px; z-index: 200;
}
.lang-picker__menu.open { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 14px;
  background: none; color: var(--muted);
  font-size: .85rem; font-weight: 500; text-align: left;
  transition: background .15s, color .15s;
}
.lang-opt:hover { background: var(--surface2); color: var(--text); }
.lang-opt.active { color: var(--purple-lt); }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn:active { transform: translateY(0); }
.btn--ghost { background: var(--surface2); color: var(--text); }
.btn--primary {
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.45);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #111; box-shadow: 0 4px 20px rgba(245,158,11,0.4);
}
.btn--lg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 32px; border-radius: 8px;
}
.btn--outline {
  background: none; color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.28);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .2s, transform .15s, opacity .15s;
}
.btn--outline:hover { border-color: var(--text); }

.nav__hamburger {
  display: none; background: none; color: var(--text); font-size: 1.5rem;
  padding: 6px; border-radius: 8px;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 56px 72px;
  position: relative; overflow: hidden;
  background: var(--bg);
}

/* ── HERO 3D SCENE ───────────────────────────────────── */
.hero-3d-scene {
  position: absolute; inset: 0; z-index: 0;
  perspective: 1400px;
  pointer-events: none;
}

/* Atmospheric glow spots */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow--purple { width: 650px; height: 650px; background: var(--purple); opacity: 0.12; top: -20%; right: 0%; }
.hero-glow--gold   { width: 420px; height: 420px; background: var(--gold);   opacity: 0.07; bottom: 0%; right: 28%; }
.hero-glow--teal   { width: 360px; height: 360px; background: var(--teal);   opacity: 0.07; top: 45%; right: -5%; }

/* 3D stage — children positioned from its center */
.hero-3d-stage {
  position: absolute; top: 50%; left: 50%;
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out;
  will-change: transform;
}

/* Card wrappers — 3D position from center of stage */
.card-wrap {
  position: absolute;
  transform-style: preserve-3d;
}
.card-wrap--1 { transform: translate3d( 150px, -130px,  80px) rotateY(-10deg) rotateX( 4deg); }
.card-wrap--2 { transform: translate3d( 370px,  -15px, -40px) rotateY(  8deg) rotateX(-3deg); }
.card-wrap--3 { transform: translate3d( 240px,  145px, 100px) rotateY( -5deg) rotateX( 2deg); }
.card-wrap--4 { transform: translate3d( 440px, -170px, -20px) rotateY( 12deg) rotateX(-5deg); }
.card-wrap--5 { transform: translate3d( 315px,   65px, -90px) rotateY(  6deg) rotateX( 3deg); }

/* Show card */
.hcard {
  width: 188px; height: 258px;
  border-radius: 20px;
  display: flex; flex-direction: column;
  padding: 18px;
  position: relative; overflow: hidden;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.60),
    0  0   0 1px rgba(255,255,255,0.13),
    inset 0 1px 0 rgba(255,255,255,0.22);
  animation: hcard-float 6s ease-in-out infinite;
}
/* Shimmer highlight */
.hcard::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, transparent 55%);
  pointer-events: none;
}

/* Card color themes */
.hcard--teatro  { background: linear-gradient(140deg, #3b0764 0%, #7c3aed 100%); }
.hcard--musica  { background: linear-gradient(140deg, #083344 0%, #06b6d4 100%); }
.hcard--standup { background: linear-gradient(140deg, #78350f 0%, #f59e0b 100%); }
.hcard--danza   { background: linear-gradient(140deg, #831843 0%, #ec4899 100%); }
.hcard--recital { background: linear-gradient(140deg, #0c1a3a 0%, #3b82f6 100%); }

.hcard__icon { width: 52px; height: 52px; margin-bottom: 14px; flex-shrink: 0; }
.hcard__icon svg { width: 100%; height: 100%; }

.hcard__cat {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.hcard__show {
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.92);
  line-height: 1.35; margin-bottom: 5px;
}
.hcard__footer { margin-top: auto; }
.hcard__badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.3px;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 3px 9px;
  display: inline-block;
}

/* Float animations — different duration & delay per card */
@keyframes hcard-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
.card-wrap--1 .hcard { animation-duration: 5.8s; animation-delay:    0s; }
.card-wrap--2 .hcard { animation-duration: 7.2s; animation-delay: -1.8s; }
.card-wrap--3 .hcard { animation-duration: 6.1s; animation-delay: -3.2s; }
.card-wrap--4 .hcard { animation-duration: 8.0s; animation-delay: -0.7s; }
.card-wrap--5 .hcard { animation-duration: 5.3s; animation-delay: -2.5s; }

/* Dark gradient overlay: heavy left (text) → transparent right (cards) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right,
    rgba(7,6,15,0.97) 0%,
    rgba(7,6,15,0.90) 28%,
    rgba(7,6,15,0.55) 52%,
    rgba(7,6,15,0.18) 75%,
    rgba(7,6,15,0.04) 100%);
}

/* Content and stats above the overlay */
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--purple-lt); margin-bottom: 20px;
}
.hero__tag-line { display: block; width: 36px; height: 2px; background: var(--purple-lt); flex-shrink: 0; }
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(62px, 10vw, 130px);
  font-weight: 900; line-height: .9; letter-spacing: -2px;
  position: relative; z-index: 2; margin-bottom: 24px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero__sub {
  font-size: 17px; font-weight: 300; line-height: 1.7;
  color: rgba(241,240,251,0.62); max-width: 480px;
  position: relative; z-index: 2; margin-bottom: 40px;
}
.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.hero__stats {
  position: absolute; right: 56px; bottom: 72px;
  display: flex; flex-direction: column; gap: 28px; z-index: 2;
}
.stat { text-align: right; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 50px; font-weight: 900; line-height: 1; color: var(--gold);
}
.stat-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}

/* ── SEARCH BAR (sticky) ────────────────────────────── */
.search-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  position: sticky; top: var(--nav-h); z-index: 50;
}
.search-bar__inner {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center;
}
.search-bar__wrap { flex: 1; position: relative; }
.search-bar__wrap svg {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.search-bar__wrap input {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px 14px 46px;
  color: var(--text); font-family: inherit; font-size: 15px;
  outline: none; transition: border-color .2s;
}
.search-bar__wrap input::placeholder { color: var(--muted); }
.search-bar__wrap input:focus { border-color: var(--purple); }
.search-bar__btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff; border-radius: 8px; padding: 14px 28px;
  transition: opacity .2s;
}
.search-bar__btn:hover { opacity: .88; }

/* ── SECTION HEADER ─────────────────────────────────── */
.sec-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 12px;
}
.sec-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700;
}
.sec-header a { font-size: .875rem; color: var(--purple-lt); font-weight: 500; }
.sec-header a:hover { text-decoration: underline; }

/* ── FILTER CHIPS ───────────────────────────────────── */
.filters { padding: 20px 20px 16px; }
.filters__label {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .825rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--purple-lt); color: var(--purple-lt); }
.chip.active {
  background: rgba(124,58,237,0.18);
  border-color: var(--purple); color: var(--purple-lt);
}

/* ── VIEW TOGGLE (mobile only) ──────────────────────── */
.view-toggle {
  display: none; gap: 8px; padding: 0 20px 16px;
}
.view-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.view-btn.active {
  background: rgba(124,58,237,0.18);
  border-color: var(--purple); color: var(--purple-lt);
}

/* ── SPLIT LAYOUT ───────────────────────────────────── */
.split-wrapper { display: flex; align-items: flex-start; }
.split-view__list { flex: 1; min-width: 0; }
.split-view__map {
  flex: 0 0 44%; max-width: 580px;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  border-left: 1px solid var(--border);
}
#map { width: 100%; height: 100%; }

/* Desktop: compact horizontal cards */
@media (min-width: 1024px) {
  .split-view__list { min-height: calc(100vh - var(--nav-h)); }
  .split-view__list .cards-grid { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
  .split-view__list .card { flex-direction: row; height: 116px; cursor: pointer; border-radius: var(--radius-sm); }
  .split-view__list .card__img { width: 136px; flex-shrink: 0; aspect-ratio: unset; height: 100%; }
  .split-view__list .card__desc { display: none; }
  .split-view__list .card__title { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .split-view__list .card:hover { transform: translateX(3px) translateY(0); }
}

/* ── CARDS GRID ─────────────────────────────────────── */
.ev-section { padding: 20px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.card__art {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.card__badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.card__price-tag {
  position: absolute; top: 10px; right: 10px;
  background: rgba(7,6,15,0.8); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--gold);
}
.card__featured {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--gold); color: #000;
  padding: 2px 8px; border-radius: 4px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em;
}
.card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card__meta {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--muted);
}
.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; line-height: 1.3;
}
.card__desc { font-size: .83rem; color: var(--muted); line-height: 1.5; flex: 1; }
.card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid var(--border); margin-top: auto;
}
.card__author { display: flex; align-items: center; gap: 8px; }
.card__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.card__author-name { font-size: .78rem; font-weight: 600; }
.card__author-role { font-size: .68rem; color: var(--muted); }
.card__cta {
  padding: 6px 14px; border-radius: 999px;
  background: rgba(124,58,237,0.18); border: 1px solid rgba(124,58,237,0.35);
  color: var(--purple-lt); font-size: .78rem; font-weight: 600;
  transition: background .2s;
}
.card__cta:hover { background: rgba(124,58,237,0.3); }

/* ── BADGE COLORS ───────────────────────────────────── */
.badge--teatro     { background: rgba(124,58,237,0.25); color: #c4b5fd; }
.badge--standup    { background: rgba(245,158,11,0.25); color: #fcd34d; }
.badge--recital    { background: rgba(244,63,94,0.25);  color: #fda4af; }
.badge--unipersonal{ background: rgba(20,184,166,0.25); color: #5eead4; }
.badge--danza      { background: rgba(56,189,248,0.25); color: #7dd3fc; }
.badge--circo      { background: rgba(249,115,22,0.25); color: #fdba74; }
.badge--curso      { background: rgba(245,158,11,0.18); color: #fcd34d; }

/* ── CURSOS ─────────────────────────────────────────── */
.cursos-section { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--border); }
.cursos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.curso-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.curso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.curso-card__header {
  padding: 24px 20px 18px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.curso-card__icon { font-size: 2.2rem; }
.curso-card__body { padding: 0 16px 16px; }
.curso-card__body h3 {
  font-family: 'Playfair Display', serif; font-size: .98rem; font-weight: 700;
  margin-bottom: 6px; line-height: 1.35;
}
.curso-card__body p { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.curso-card__footer { display: flex; align-items: center; justify-content: space-between; }
.curso-card__price { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.curso-card__price small { font-size: .7rem; color: var(--muted); font-weight: 400; }

/* ── PROFESORES ─────────────────────────────────────── */
.profesores-section { padding: 56px 0; }
.profesores-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.prof-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
  transition: transform .2s, box-shadow .2s;
}
.prof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prof-card__avatar {
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.prof-card__name { font-size: .88rem; font-weight: 700; }
.prof-card__specialty { font-size: .72rem; color: var(--purple-lt); font-weight: 600; }
.prof-card__courses { font-size: .7rem; color: var(--muted); }
.prof-card__btn {
  display: block; width: 100%; padding: 7px; border-radius: 999px; margin-top: 4px;
  border: 1px solid rgba(167,139,250,0.35); color: var(--purple-lt);
  font-size: .75rem; font-weight: 600; transition: all .2s;
}
.prof-card__btn:hover { background: rgba(124,58,237,0.15); }

/* ── PUBLISH CTA ────────────────────────────────────── */
.publish-section { padding: 0 0 56px; }
.publish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.publish-card {
  border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.publish-card--artista {
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(244,63,94,0.1));
  border-color: rgba(124,58,237,0.28);
}
.publish-card--profesor {
  background: linear-gradient(135deg, rgba(20,184,166,0.16), rgba(56,189,248,0.09));
  border-color: rgba(20,184,166,0.28);
}
.publish-card__icon { font-size: 2.6rem; }
.publish-card h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; }
.publish-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.publish-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.publish-card ul li { font-size: .83rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.publish-card ul li::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ── FOOTER ─────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px;
}
.footer__logo {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, var(--purple-lt), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.footer__tagline { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.footer__col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul li a { font-size: .85rem; color: var(--muted); transition: color .2s; }
.footer ul li a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: .8rem; color: var(--muted); }

/* ── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 0;
}
.modal__title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; }
.modal__close {
  background: none; color: var(--muted); padding: 6px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.modal__close:hover { color: var(--text); background: var(--surface2); }
.modal__body { padding: 22px 24px 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: .9rem; outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--purple); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff; border-radius: var(--radius-sm);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  transition: opacity .2s;
}
.form-submit:hover { opacity: .88; }
.modal__tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.modal__tab {
  flex: 1; padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--surface2); color: var(--muted);
  font-size: .82rem; font-weight: 600; transition: all .2s;
}
.modal__tab.active { background: rgba(124,58,237,0.2); color: var(--purple-lt); }

/* ── LEAFLET DARK THEME ─────────────────────────────── */
.leaflet-bar a {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-bar a:hover { background: var(--surface2) !important; }
.leaflet-control-attribution {
  background: rgba(7,6,15,0.75) !important;
  color: var(--muted) !important;
  font-size: .65rem !important;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a { color: var(--purple-lt) !important; }
.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--text) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; min-width: 220px; }
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button {
  color: var(--muted) !important; font-size: 1.1rem !important;
  padding: 8px 10px !important; top: 4px !important; right: 4px !important;
}
.leaflet-popup-close-button:hover { color: var(--text) !important; }

/* ── MARKERS ────────────────────────────────────────── */
.custom-marker { background: none !important; border: none !important; }
.marker-dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--mc, #7c3aed);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  cursor: pointer;
}
.marker-dot:hover, .marker-dot.marker--active {
  transform: scale(1.35);
  box-shadow: 0 6px 22px rgba(0,0,0,0.6), 0 0 0 6px rgba(167,139,250,0.2);
}
.map-popup { padding: 16px; }
.map-popup__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; margin-bottom: 9px; }
.map-popup__title { font-family: 'Playfair Display', serif; font-size: .98rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.map-popup__meta { font-size: .72rem; color: var(--muted); margin-bottom: 3px; }
.map-popup__price { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.map-popup__cta {
  width: 100%; padding: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), #4f46e5);
  color: #fff; font-size: .78rem; font-weight: 600; transition: opacity .2s;
}
.map-popup__cta:hover { opacity: .88; }

/* ── MOBILE MENU ─────────────────────────────────────── */
.mobile-menu-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  z-index: 160;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
  padding: calc(var(--nav-h) + 16px) 0 max(24px, env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu__links {
  list-style: none; flex: 1;
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.mobile-menu__links a {
  display: block;
  padding: 14px 28px;
  font-size: 1rem; font-weight: 600; color: var(--muted);
  border-left: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  min-height: 52px; display: flex; align-items: center;
}
.mobile-menu__links a:hover {
  color: var(--text);
  background: var(--surface2);
  border-left-color: var(--purple);
}
.mobile-menu__actions {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
}
.mobile-menu__actions .btn { min-height: 48px; }

/* ── RESPONSIVE ─────────────────────────────────────── */

/* Tablet y mobile — quita el mapa del flow, activa view toggle */
@media (max-width: 1023px) {
  .view-toggle { display: flex; }
  .split-wrapper { flex-direction: column; }
  .split-view__map {
    display: none; position: fixed;
    inset: calc(var(--nav-h) + 60px) 0 0 0; z-index: 90;
    height: calc(100dvh - var(--nav-h) - 60px); max-width: 100%;
    border-left: none; border-top: 1px solid var(--border);
  }
  .split-view__map.map-visible { display: block; }
  .split-view__list .cards-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .publish-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE (≤768px) ───────────────────────────────── */
@media (max-width: 768px) {

  /* Nav — sticky, igual que desktop */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .nav__actions .btn--ghost { display: none; }
  .mobile-menu-overlay { display: block; }

  /* Hero — exactamente el espacio del viewport menos el nav */
  .hero {
    height: calc(var(--vh, 1svh) * 100 - var(--nav-h));
    min-height: 0;
    overflow: hidden;
    padding: 28px 24px 40px;
    justify-content: space-between;
  }

  /* En mobile: mantener el stage pero reposicionar las tarjetas para pantallas estrechas */
  .hero-3d-scene { perspective: 900px; }

  /* Solo 3 tarjetas, más pequeñas, en la zona derecha */
  .card-wrap--2 { display: none; }
  .card-wrap--4 { display: none; }
  .card-wrap--1 { transform: translate3d(  18px, -90px,  50px) rotateY(-8deg) rotateX(3deg); }
  .card-wrap--3 { transform: translate3d( 165px,  30px, 70px) rotateY(-4deg) rotateX(2deg); }
  .card-wrap--5 { transform: translate3d(  90px,-190px,-40px) rotateY( 7deg) rotateX(-3deg); }

  .hcard { width: 130px; height: 186px; padding: 12px; border-radius: 16px; }
  .hcard__icon { width: 40px; height: 40px; margin-bottom: 10px; }
  .hcard__show { font-size: 11px; }
  .hcard__badge { font-size: 8px; padding: 2px 7px; }

  /* Overlay: oscuro a la izquierda (texto), suave a la derecha (tarjetas) */
  .hero-overlay {
    background: linear-gradient(to right,
      rgba(7,6,15,0.97) 0%,
      rgba(7,6,15,0.90) 28%,
      rgba(7,6,15,0.55) 52%,
      rgba(7,6,15,0.18) 75%,
      rgba(7,6,15,0.04) 100%),
    linear-gradient(to bottom,
      transparent 0%,
      transparent 80%,
      rgba(7,6,15,0.92) 92%,
      var(--bg) 100%);
  }

  /* Stats — en mobile son flex items normales (no absolute) */
  .hero__stats {
    position: relative; z-index: 2;
    right: auto; bottom: auto;
    flex-direction: row; flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: auto;
  }
  .stat { text-align: left; }
  .stat-num { font-size: 28px; }

  /* Search */
  .search-bar { padding: 12px 16px; }
  .search-bar__inner { flex-direction: column; gap: 10px; }
  .search-bar__btn { width: 100%; padding: 14px; min-height: 48px; }

  /* Filter chips */
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; min-height: 44px; }

  /* View toggle */
  .view-toggle { padding: 0 16px 12px; }
  .view-btn { min-height: 48px; }

  /* Cards */
  .split-view__list .cards-grid { grid-template-columns: 1fr; padding: 0 12px 16px; gap: 12px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .publish-grid { grid-template-columns: 1fr; }

  /* Modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; }
}

/* ── MOBILE CHICO (≤480px) ─────────────────────────── */
@media (max-width: 480px) {
  .nav__inner { padding: 0 16px; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .profesores-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .cursos-grid { grid-template-columns: 1fr; }
  .sec-header { flex-direction: column; align-items: flex-start; }

  /* Pantalla muy estrecha — tarjetas 3D no tienen espacio, se ocultan */
  .hero-3d-stage { display: none; }
  /* Fallback: imagen de fondo */
  .hero-3d-scene {
    background: url('https://images.unsplash.com/photo-1460723237483-7a6dc9d0b212?w=800&q=80') center 30%/cover no-repeat;
  }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(7,6,15,0.55) 0%, rgba(7,6,15,0.15) 28%,
      rgba(7,6,15,0.15) 62%, rgba(7,6,15,0.88) 84%, var(--bg) 100%);
  }
}
