/* ============================================
   CALLEJÓN PC — styles.css
   ============================================ */

/* RESET & ROOT */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --neon-cyan: #00f5ff;
  --neon-blue: #0af;
  --neon-purple: #b400ff;
  --neon-pink: #ff006e;
  --dark: #050810;
  --dark2: #0a0f1e;
  --dark3: #0d1530;
  --steel: #1a2240;
  --text: #c8d8f0;
  --text-dim: #6a7fa8;
  --font-graffiti: 'Bebas Neue', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-tech);
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

/* ── GRID LINES ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 2px; }

/* ── SCAN LINE ── */
.scanline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.08), transparent);
  animation: scanline 6s linear infinite;
  pointer-events: none;
  z-index: 9998;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.3), transparent);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CURSOR BLINK ── */
.cursor-blink { animation: blink 1s step-end infinite; }

/* ── CORNER DECORATIONS ── */
.corner { position: absolute; width: 20px; height: 20px; }
.corner-tl { top: 0; left: 0; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.corner-tr { top: 0; right: 0; border-top: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }
.corner-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(5,8,16,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,245,255,.12);
  gap: 1rem;
}

.nav-logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0,245,255,.5));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}

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

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

.nav-cta {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: .45rem 1.2rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--neon-cyan);
  color: var(--dark);
  box-shadow: 0 0 20px rgba(0,245,255,.4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
  z-index: 1100;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  transition: all .3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(5,8,16,.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 6rem 2rem 2rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-graffiti);
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: var(--text-dim);
  transition: color .2s;
}

.nav-mobile a:hover { color: var(--neon-cyan); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--neon-cyan);
  color: var(--dark);
  border: none;
  padding: .9rem 2.5rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  transition: all .2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,245,255,.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.2);
  padding: .9rem 2.5rem;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  transition: all .2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn-wa {
  background: rgba(37,211,102,.15);
  border: 1px solid rgba(37,211,102,.4);
  color: #25d366;
  padding: .9rem 2rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .2s;
}

.btn-wa:hover {
  background: rgba(37,211,102,.25);
  box-shadow: 0 0 20px rgba(37,211,102,.2);
}

.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================
   SECTIONS — base
   ============================================ */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.section-tag::before { content: '//'; opacity: .5; }

.section-title {
  font-family: var(--font-graffiti);
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 1rem;
}

.section-title .accent { color: var(--neon-cyan); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(0,170,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(180,0,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255,0,110,.05) 0%, transparent 60%);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  opacity: .8;
  animation: fadeInDown .8s ease both;
}

.hero-logo-img {
  width: min(480px, 80vw);
  margin-bottom: 1.5rem;
  animation: fadeInUp .8s ease .2s both;
  filter: drop-shadow(0 0 30px rgba(0,245,255,.4)) drop-shadow(0 0 60px rgba(0,170,255,.2));
}

.hero-subtitle {
  font-family: var(--font-tech);
  font-size: clamp(.9rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeInUp .8s ease .4s both;
}

.hero-subtitle span { color: var(--neon-cyan); font-weight: 700; }

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp .8s ease .6s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .4;
  animation: pulse 2s ease infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--neon-cyan), transparent);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--dark2);
  border-top: 1px solid rgba(0,245,255,.08);
  border-bottom: 1px solid rgba(0,245,255,.08);
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item { padding: 1rem; }

.stat-num {
  font-family: var(--font-graffiti);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--neon-cyan);
  display: block;
  line-height: 1;
  text-shadow: 0 0 15px rgba(0,245,255,.4);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: .4rem;
}

/* ============================================
   SERVICES
   ============================================ */
#servicios { background: var(--dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--dark2);
  border: 1px solid rgba(0,245,255,.1);
  overflow: hidden;
  transition: all .3s;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(0,245,255,.35);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,245,255,.1);
}

.service-img-wrap {
  overflow: hidden;
  height: 180px;
  flex-shrink: 0;
  background: var(--dark3);
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(.8) saturate(.85);
  transition: filter .4s, transform .4s;
}

.service-card:hover .service-img {
  filter: brightness(1) saturate(1.1);
  transform: scale(1.06);
}

.service-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
}

.service-img-placeholder .ph-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: 2px;
  color: rgba(0,245,255,.3);
  text-align: center;
  padding: 0 .5rem;
}

.service-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.service-num {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--neon-cyan);
  opacity: .5;
  letter-spacing: 2px;
}

.service-name {
  font-family: var(--font-graffiti);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
}

.service-desc {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  margin-top: .25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: 1px;
  padding: .2rem .55rem;
  border: 1px solid rgba(0,245,255,.2);
  color: var(--neon-cyan);
  background: rgba(0,245,255,.05);
}

/* ============================================
   COURSES
   ============================================ */
#cursos { background: var(--dark2); }

.courses-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.course-main {
  background: var(--dark3);
  border: 1px solid rgba(0,245,255,.15);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.course-badge {
  background: var(--neon-cyan);
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: .3rem .8rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.course-title {
  font-family: var(--font-graffiti);
  font-size: 2.5rem;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: .5rem;
}

.course-title span { color: var(--neon-cyan); }

.course-meta {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.course-modules { list-style: none; }

.course-modules li {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text);
}

.course-modules li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.course-benefits {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.course-benefits-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,245,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-title {
  font-family: var(--font-graffiti);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
}

.benefit-desc {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================
   ASESORÍAS
   ============================================ */
#asesoria { background: var(--dark); }

.asesorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.asesoria-card {
  border: 1px solid rgba(255,255,255,.06);
  padding: 1.75rem;
  background: rgba(255,255,255,.02);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.asesoria-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.asesoria-card:hover {
  border-color: rgba(180,0,255,.25);
  transform: translateY(-3px);
}

.asesoria-card:hover::after { transform: scaleX(1); }

.asesoria-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.asesoria-title {
  font-family: var(--font-graffiti);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: .5rem;
}

.asesoria-desc {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================
   UBICACIÓN / MAPA
   ============================================ */
#ubicacion { background: var(--dark2); }

.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
}

.map-frame {
  border: 2px solid transparent;
  background:
    linear-gradient(#050810, #050810) padding-box,
    linear-gradient(135deg, var(--neon-cyan), transparent, var(--neon-purple)) border-box;
  overflow: hidden;
  position: relative;
  height: 400px;
}

/* map-frame::before removido para permitir iframe de Google Maps */

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(.9) hue-rotate(180deg) brightness(.85) saturate(1.2);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.map-placeholder svg { opacity: .2; }

.map-placeholder p {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.8;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-info-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 1.5rem;
  position: relative;
}

.map-info-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--neon-cyan), var(--neon-purple));
}

.map-info-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  opacity: .7;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.map-info-val {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.map-info-val span {
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 400;
}

/* ============================================
   CONTACTO / CTA
   ============================================ */
#contacto {
  background: var(--dark2);
  text-align: center;
  padding: 8rem 2rem;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--dark3);
  border: 1px solid rgba(0,245,255,.15);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan), var(--neon-pink));
}

.cta-tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  opacity: .7;
}

.cta-title {
  font-family: var(--font-graffiti);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-title span { color: var(--neon-cyan); }

.cta-desc {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-logo img {
  height: 32px;
  width: auto;
  opacity: .6;
  filter: drop-shadow(0 0 4px rgba(0,245,255,.3));
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  transition: color .2s;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: .7; }
}
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================
   RESPONSIVE — TABLETS (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  section { padding: 5rem 2rem; }
  .stats-bar { padding: 2rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-container { gap: 2rem; }
  .map-layout { grid-template-columns: 1fr 280px; }
}

/* ============================================
   RESPONSIVE — TABLETS PORTRAIT (≤768px)
   ============================================ */
@media (max-width: 768px) {
  /* Nav → hamburger */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
  nav { padding: .85rem 1.5rem; }

  section { padding: 4rem 1.5rem; }
  #contacto { padding: 5rem 1.5rem; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .courses-container { grid-template-columns: 1fr; gap: 2rem; }

  .map-layout { grid-template-columns: 1fr; }
  .map-frame  { height: 280px; }

  .cta-box { padding: 3rem 1.5rem; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
  }

  .footer-links { gap: 1rem; }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; max-width: 280px; text-align: center; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .section-title { letter-spacing: 2px; }

  .service-img-wrap,
  .service-img { height: 160px; }

  .cta-box { padding: 2.5rem 1.25rem; }

  .cta-btns { flex-direction: column; align-items: center; }
  .btn-wa, .btn-outline { width: 100%; justify-content: center; }

  .course-main { padding: 1.75rem; }
  .course-title { font-size: 2rem; }

  .asesorias-grid { grid-template-columns: 1fr; }

  .map-info-card { padding: 1rem 1.25rem; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤360px)
   ============================================ */
@media (max-width: 360px) {
  nav { padding: .75rem 1rem; }
  .nav-logo img { height: 36px; }
  section { padding: 3.5rem 1rem; }
  .hero { padding: 5rem 1rem 3rem; }
  .stats-bar { padding: 1rem; }
  .stat-num { font-size: 1.8rem; }
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.cta-box {
  max-width: 780px; /* un poco más ancho para el form */
}

.cta-wa-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.btn-wa-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  color: #25d366;
}

.cta-pending-note {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: 2px;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* Form layout */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  opacity: .8;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--dark);
  border: 1px solid rgba(0,245,255,.15);
  color: var(--text);
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 600;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  resize: vertical;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
  font-weight: 400;
  opacity: .6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,245,255,.5);
  box-shadow: 0 0 0 2px rgba(0,245,255,.08);
}

.form-group input.error,
.form-group textarea.error {
  border-color: rgba(255,0,110,.5);
  box-shadow: 0 0 0 2px rgba(255,0,110,.08);
}

.form-submit {
  align-self: flex-start;
  margin-top: .5rem;
  border: none;
  cursor: pointer;
}

.form-status {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: 1px;
  min-height: 1.2rem;
  text-align: center;
}

.form-status.success { color: #25d366; }
.form-status.error   { color: var(--neon-pink); }

/* Responsive form */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; text-align: center; }
}

/* Form actions row */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.form-submit {
  /* override anterior align-self: flex-start */
  align-self: auto;
  margin-top: 0;
  border: none;
  cursor: pointer;
}

/* Botón Facebook */
.btn-facebook {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(24,119,242,.15);
  border: 1px solid rgba(24,119,242,.4);
  color: #4f9ef8;
  padding: .9rem 1.75rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn-facebook:hover {
  background: rgba(24,119,242,.28);
  box-shadow: 0 0 20px rgba(24,119,242,.25);
  color: #74b3ff;
}

@media (max-width: 600px) {
  .form-actions { flex-direction: column; }
  .form-submit,
  .btn-facebook { width: 100%; justify-content: center; text-align: center; }
}
/* ── CLASES CSP FIX ── */
.course-cta { margin-top: 2rem; }
.map-placeholder-note { color: rgba(0,245,255,.4); font-size: .6rem; }
.map-email-link { color: var(--neon-cyan); text-decoration: none; }
.map-email-link:hover { text-decoration: underline; }
.btn-como-llegar { display: block; text-align: center; font-size: .85rem; margin-top: .5rem; }
.cursor-dot {
  position: fixed; width: 4px; height: 4px;
  background: rgba(0,245,255,0.4); border-radius: 50%;
  pointer-events: none; z-index: 9997; transition: opacity .4s;
}
