/* ============================================================
   READY FOR DEFENSE — Sistema de diseño
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --rfd-black: #0B0E14;
  --rfd-black-soft: #141824;
  --rfd-card-bg: #1A1F2C;
  --rfd-card-border: rgba(255,255,255, 0.08);
  --rfd-orange: #EB8207;
  --rfd-orange-bright: #FF9214;
  --rfd-blue: #2B579A;
  --rfd-blue-bright: #3B72C4;
  --rfd-mint: #50EB97;
  --rfd-white: #FFFFFF;
  --rfd-gray: #94A3B8;
  --rfd-gray-light: #CBD5E1;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --radius: 12px;
  --shadow-deep: 0 20px 50px rgba(0,0,0,.65);
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background: var(--rfd-black);
  color: var(--rfd-white);
  font-family: var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; }
h1,h2,h3,h4{ font-family: var(--font-display); letter-spacing:-0.03em; font-weight:700; text-transform:uppercase; }

.container{ max-width:1160px; margin:0 auto; padding:0 24px; }

/* ---------- Resaltados ---------- */
mark, .accent, .orange{
  color: var(--rfd-orange);
  background: transparent;
}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px;
  border-radius: var(--radius);
  font-weight:700; font-size:14px; letter-spacing:.02em; text-transform:uppercase;
  transition: all .25s ease;
}
.btn:active{ transform: scale(.97); }
.btn-primary{
  background: var(--rfd-blue);
  color: var(--rfd-white);
  box-shadow: 0 6px 20px rgba(43,87,154,.35);
}
.btn-primary:hover{ background: var(--rfd-blue-bright); transform: translateY(-2px); }
.btn-outline{
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--rfd-white);
}
.btn-outline:hover{ border-color: var(--rfd-white); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.4; cursor:not-allowed; transform:none; }

/* ---------- Navbar Header ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 36px;
  background: rgba(11,14,20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--rfd-card-border);
}
.nav-brand{ display:flex; align-items:center; gap:12px; }
.nav-logo{ height:38px; width:auto; }
.nav-menu{ display:flex; align-items:center; gap:28px; list-style:none; }
.nav-menu a{ font-size:13px; font-weight:600; color: var(--rfd-gray); letter-spacing:.05em; text-transform:uppercase; transition: color .2s; }
.nav-menu a:hover{ color: var(--rfd-white); }
@media (max-width:960px){
  .nav-menu{ display:none; }
  .nav{ padding:14px 20px; }
}

/* ---------- Hero Section ---------- */
.hero{
  position: relative;
  min-height: 86vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding: 100px 24px 80px;
  background-image: 
    linear-gradient(180deg, rgba(11,14,20,0.72) 0%, rgba(11,14,20,0.88) 65%, rgba(11,14,20,1) 100%),
    url('../images/cabezal-v3.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hero-tag{
  font-size:13px; font-weight:700; letter-spacing:.15em; color: var(--rfd-orange);
  margin-bottom:18px; text-transform:uppercase;
}
.hero h1{
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}
.hero p{
  max-width:680px;
  color: var(--rfd-gray-light);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero-cta-group{
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:44px;
}
.hero-cities{
  font-size:13px; color: var(--rfd-gray); text-transform:uppercase; letter-spacing:.08em;
}
.hero-cities strong{ color: var(--rfd-white); font-weight:700; }

/* ---------- General Sections ---------- */
.section{ padding:90px 24px; border-bottom:1px solid rgba(255,255,255,0.03); }
.section-alt{ background: var(--rfd-black-soft); }
.eyebrow{ font-size:12px; font-weight:700; letter-spacing:.18em; color: var(--rfd-orange); margin-bottom:10px; text-transform:uppercase; }
.section-title{ font-size: clamp(28px, 4.5vw, 42px); line-height:1.15; margin-bottom:24px; }

/* ---------- Section 1: Realismo Urbano ---------- */
.realismo-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:start;
}
.realismo-text p{ color: var(--rfd-gray-light); font-size:16px; line-height:1.7; }
.features-stack{ display:flex; flex-direction:column; gap:20px; }
.feature-card{
  background: var(--rfd-card-bg);
  border: 1px solid var(--rfd-card-border);
  border-radius: var(--radius);
  padding:24px 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover{ border-color: rgba(235,130,7, 0.4); transform: translateX(6px); }
.feature-card h3{ font-size:18px; margin-bottom:8px; color: var(--rfd-white); letter-spacing:.05em; }
.feature-card p{ font-size:14px; color: var(--rfd-gray); line-height:1.55; }

@media (max-width:880px){
  .realismo-grid{ grid-template-columns: 1fr; gap:36px; }
}

/* ---------- Section 2: Inteligencia Táctica ---------- */
.tactical-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:54px; align-items:center;
}
.tactical-media{
  border-radius: 16px; overflow:hidden;
  border: 1px solid var(--rfd-card-border);
  box-shadow: var(--shadow-deep);
}
.tactical-media img{ width:100%; height:auto; object-fit:cover; display:block; filter: grayscale(20%) contrast(1.1); }
.tactical-steps{ display:flex; flex-direction:column; gap:24px; margin-top:28px; }
.step-item{ display:flex; gap:20px; align-items:flex-start; }
.step-number{
  width:40px; height:40px; min-width:40px;
  background: var(--rfd-blue);
  color: var(--rfd-white);
  font-family: var(--font-display);
  font-weight:700; font-size:18px;
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
}
.step-content h3{ font-size:17px; margin-bottom:4px; letter-spacing:.05em; }
.step-content p{ font-size:14px; color: var(--rfd-gray); line-height:1.5; }

@media (max-width:880px){
  .tactical-grid{ grid-template-columns: 1fr; gap:36px; }
}

/* ---------- Section 3: Instructor ---------- */
.instructor-grid{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:54px; align-items:center;
}
.instructor-credentials{
  background: var(--rfd-card-bg);
  border: 1px solid var(--rfd-card-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 24px;
}
.credentials-list{ list-style:none; display:flex; flex-direction:column; gap:16px; }
.credentials-list li{ display:flex; align-items:flex-start; gap:12px; font-size:14.5px; color: var(--rfd-gray-light); }
.credentials-list li svg{ min-width:18px; width:18px; height:18px; fill: var(--rfd-orange); margin-top:3px; }
.quote-box{
  margin-top:24px; padding:20px; border-left: 3px solid var(--rfd-orange);
  background: rgba(235,130,7, 0.05); border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--rfd-gray-light); font-size:14.5px; line-height:1.6;
}
.instructor-photo{
  border-radius: 16px; overflow:hidden;
  border: 1px solid var(--rfd-card-border);
  box-shadow: var(--shadow-deep);
  background: var(--rfd-card-bg);
}
.instructor-photo img{ width:100%; height:auto; display:block; }

@media (max-width:880px){
  .instructor-grid{ grid-template-columns: 1fr; gap:36px; }
}

/* ---------- Section 4: Podcast ---------- */
.podcast-header{ text-align:center; margin-bottom:50px; }
.podcast-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:22px;
}
.podcast-card{
  background: var(--rfd-card-bg);
  border: 1px solid var(--rfd-card-border);
  border-radius: var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition: transform .25s ease, border-color .25s ease;
}
.podcast-card:hover{ transform: translateY(-6px); border-color: var(--rfd-orange); }
.podcast-thumb{ position:relative; aspect-ratio: 1/1; overflow:hidden; }
.podcast-thumb img{ width:100%; height:100%; object-fit:cover; }
.podcast-info{ padding:20px; display:flex; flex-direction:column; flex-grow:1; justify-content:space-between; }
.podcast-info h3{ font-size:14px; margin-bottom:8px; line-height:1.4; color: var(--rfd-white); }
.podcast-info p{ font-size:12.5px; color: var(--rfd-gray); margin-bottom:16px; line-height:1.45; }
.podcast-link{ font-size:12px; font-weight:700; color: var(--rfd-orange); text-transform:uppercase; letter-spacing:.08em; display:inline-flex; align-items:center; gap:4px; }
.podcast-cta{ text-align:center; margin-top:40px; }

@media (max-width:1024px){ .podcast-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:580px){ .podcast-grid{ grid-template-columns: 1fr; } }

/* ---------- Section 5: Sedes ---------- */
.sedes-header{ text-align:center; margin-bottom:50px; }
.sedes-grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; }
.sede-box{
  background: var(--rfd-card-bg);
  border: 1px solid var(--rfd-card-border);
  border-radius: 16px;
  padding: 36px 30px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.sede-box h3{ font-size:26px; margin-bottom:12px; }
.sede-detail-label{ font-size:11px; font-weight:700; letter-spacing:.15em; color: var(--rfd-orange); text-transform:uppercase; margin-bottom:4px; }
.sede-detail-time{ font-size:15px; color: var(--rfd-gray-light); margin-bottom:28px; }
.sede-actions{ display:flex; flex-direction:column; gap:12px; }

@media (max-width:720px){ .sedes-grid-2{ grid-template-columns: 1fr; } }

/* ---------- Section 6: Lista VIP Banner ---------- */
.vip-banner{
  background: linear-gradient(180deg, var(--rfd-card-bg) 0%, rgba(26,31,44,0.6) 100%);
  border: 1px solid var(--rfd-card-border);
  border-radius: 20px;
  padding: 60px 40px;
  text-align:center;
  max-width: 900px; margin: 0 auto;
}
.vip-banner h2{ font-size: clamp(30px, 5vw, 46px); margin-bottom:16px; }
.vip-banner p{ max-width:600px; margin:0 auto 36px; color: var(--rfd-gray-light); font-size:15px; line-height:1.6; }
.vip-actions{ display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.vip-action-box{
  background: rgba(11,14,20, 0.7);
  border: 1px solid var(--rfd-card-border);
  border-radius: 12px;
  padding:24px; min-width:240px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.vip-action-box h4{ font-size:18px; margin:0; }
.vip-action-box span{ font-size:11px; font-weight:700; color: var(--rfd-gray); text-transform:uppercase; letter-spacing:.1em; }

/* ---------- Footer ---------- */
footer{
  background: #080A0E;
  padding: 70px 24px 30px;
  border-top: 1px solid var(--rfd-card-border);
}
.footer-grid{
  display:grid; grid-template-columns: 2fr 1fr 1fr; gap:60px; margin-bottom:50px;
}
.footer-brand p{ font-size:13.5px; color: var(--rfd-gray); margin-top:14px; max-width:380px; line-height:1.6; }
.footer-col h4{ font-size:13px; letter-spacing:.12em; color: var(--rfd-orange); margin-bottom:18px; }
.footer-links{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a{ font-size:13px; color: var(--rfd-gray); transition: color .2s; }
.footer-links a:hover{ color: var(--rfd-white); }
.footer-bottom{
  padding-top:24px; border-top:1px solid rgba(255,255,255,0.05);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  font-size:12px; color: var(--rfd-gray);
}

@media (max-width:800px){ .footer-grid{ grid-template-columns: 1fr; gap:36px; } }

/* ---------- Tatami Board & Form (sede.html) ---------- */
.tatami-bg{
  position:relative;
  background-color: var(--rfd-black);
  background-image:
    linear-gradient(rgba(11,14,20,0.85), rgba(11,14,20,0.85)),
    repeating-conic-gradient(
      from 90deg,
      #0B0E14 0deg 90deg,
      #141824 90deg 180deg
    );
  background-size: auto, var(--rfd-tile) var(--rfd-tile);
}
.sede-hero{ padding:70px 24px 40px; text-align:center; }
.sede-hero h1{ font-size: clamp(34px, 6vw, 56px); margin-bottom:10px; }
.sede-hero p{ color: var(--rfd-gray); max-width:560px; margin:0 auto; }

.horarios{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; padding: 0 24px 40px; }
.horario-chip{
  padding:14px 22px; border-radius:12px;
  border:1.5px solid rgba(255,255,255,.12);
  background: var(--rfd-card-bg);
  text-align:left; min-width:180px; color:var(--rfd-white);
}
.horario-chip.activo{ border-color: var(--rfd-orange); background: rgba(235,130,7,.1); }
.horario-chip .dia{ font-family:var(--font-display); font-size:20px; font-weight:700; }
.horario-chip .hora{ font-size:13px; color: var(--rfd-gray); margin-top:2px; }
.horario-chip .cupo{ font-size:12px; margin-top:8px; font-weight:600; }
.horario-chip .cupo.lleno{ color: var(--rfd-orange); }
.horario-chip .cupo.libre{ color: var(--rfd-mint); }

.tablero-wrap{ padding: 20px 24px 90px; }
.tablero{
  max-width: 760px; margin:0 auto;
  border-radius:18px; overflow:hidden;
  box-shadow: var(--shadow-deep);
  border:4px solid var(--rfd-card-border);
}
.tablero-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.tile{
  aspect-ratio:1/1; position:relative;
  display:flex; align-items:center; justify-content:center;
  border-right:1px solid rgba(255,255,255,.05);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.tile.tile-black{ background: #0E121C; }
.tile.tile-red{ background: #1B2130; }
.tile.ocupada{ background: rgba(0,0,0,.35); }
.ficha{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  animation: aparecer .35s ease;
  width:100%; height:100%; justify-content:center; padding:6px;
}
.ficha .avatar{
  width:32px; height:32px; border-radius:50%;
  background: var(--rfd-white);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.ficha .avatar svg{ width:18px; height:18px; }
.ficha .nombre{
  font-size:10px; font-weight:700; text-align:center;
  color: var(--rfd-white); max-width:78px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
@keyframes aparecer{ from{ opacity:0; transform:scale(.5); } to{ opacity:1; transform:scale(1); } }

.tablero-footer{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; background: var(--rfd-card-bg);
  border-top:1px solid var(--rfd-card-border); font-size:14px;
}
.tablero-footer .num{ font-family:var(--font-display); font-size:22px; font-weight:700; color: var(--rfd-orange); }

.form-card{
  max-width:440px; margin: 0 auto; padding:36px 30px;
  background: var(--rfd-card-bg);
  border-radius:16px; border:1px solid var(--rfd-card-border);
}
.form-card h3{ font-size:22px; margin-bottom:6px; }
.form-card .sub{ color: var(--rfd-gray); font-size:14px; margin-bottom:24px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; color: var(--rfd-gray); margin-bottom:6px; font-weight:600; }
.field input{
  width:100%; padding:14px 16px;
  background: #0B0E14;
  border:1.5px solid var(--rfd-card-border);
  border-radius:10px; color: var(--rfd-white); font-size:15px; font-family:inherit;
}
.field input:focus{ outline:none; border-color: var(--rfd-orange); }
.form-msg{ font-size:13.5px; margin-top:14px; padding:12px 14px; border-radius:8px; display:none; }
.form-msg.ok{ display:block; background: rgba(80,235,151,.15); color:#7fd88f; }
.form-msg.error{ display:block; background: rgba(235,130,7,.18); color:#ff98a0; }
