/* ============================================================
   APEX Entrenamiento - Frontend CSS Premium
   Verde Apex / Negro premium / Mobile first
   ============================================================ */

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

:root {
  --green: #4fad2f;
  --green-d: #20a832;
  --green-soft: rgba(46, 204, 64, .14);
  --green-glow: rgba(46, 204, 64, .42);

  --black: #070907;
  --black-2: #0d110d;
  --black-3: #111711;
  --dark: #151a15;

  --white: #ffffff;
  --off: #f4f6f2;
  --muted: #879087;
  --muted-2: #c5ccc3;

  --border: rgba(255,255,255,.09);
  --border-dark: rgba(0,0,0,.08);

  --font: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;

  --shadow: 0 24px 70px rgba(0,0,0,.18);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.10);
  --shadow-green: 0 16px 36px rgba(46,204,64,.22);

  --transition: .25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at top left, rgba(46,204,64,.08), transparent 32rem),
    var(--off);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  background: var(--green);
  color: var(--black);
}

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

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

ul {
  list-style: none;
}

/* --- Utilidades --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.section {
  padding: 4.2rem 0;
  position: relative;
}

.section-alt {
  background:
    linear-gradient(180deg, #eef1ec 0%, #f7f8f5 100%);
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: .95;
  margin-bottom: .7rem;
}

.section-title span {
  color: var(--green);
  text-shadow: 0 0 22px rgba(46,204,64,.20);
}

.section-sub {
  color: #657065;
  margin: 0 auto 2.8rem;
  font-size: 1rem;
  max-width: 620px;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.55rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: .92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, #21b936 100%);
  color: #ffffff;
  box-shadow: var(--shadow-green);
}

.btn-green:hover {
  background: linear-gradient(135deg, #39e24c 0%, var(--green-d) 100%);
}

.btn-outline {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-dark:hover {
  background: #202820;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  padding: 8px 2px 2px 8px;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1aa54d;
  color: #FFFFFF;
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.90);
  padding: .85rem 0;
  border-bottom: 1px solid rgba(0,0,0,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(28px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: 100px;
  height: auto;
}

.main-nav {
  display: none;
  flex-direction: column;
  background: rgba(7,9,7,.98);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem;
  gap: .5rem;
  border-top: 1px solid rgba(46,204,64,.35);
  box-shadow: 0 24px 50px rgba(0,0,0,.34);
}

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

.main-nav a {
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: .75rem .9rem;
  border-radius: 999px;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-toggle {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .62rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header-wa {
  display: none;
}

/* --- Hero --- */
.hero {
  color: var(--white);
  padding: 5.8rem 0 5.2rem;
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  --hero-zoom: 1;
  --hero-shift: 0px;

  background: #070907;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    url('../img/hero.webp') center right / cover no-repeat;

  transform: translateY(var(--hero-shift)) scale(var(--hero-zoom));
  transform-origin: center right;
  transition: transform .08s linear;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(90deg, rgba(7,9,7,.98) 0%, rgba(7,9,7,.90) 34%, rgba(7,9,7,.48) 62%, rgba(7,9,7,.22) 100%),
    radial-gradient(circle at 30% 55%, rgba(46,204,64,.22), transparent 28rem),
    linear-gradient(180deg, rgba(7,9,7,.18) 0%, rgba(7,9,7,.12) 45%, rgba(7,9,7,.92) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 42px,
      rgba(46,204,64,.035) 42px,
      rgba(46,204,64,.035) 84px
    );

  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(46,204,64,.14);
  border: 1px solid rgba(46,204,64,.35);
  color: var(--green);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .48rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--green);
}

.hero h1 {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: clamp(2.1rem, 10vw, 6rem);
  font-weight: 1000;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -5px;
  margin-bottom: 1.35rem;
}

.hero h1 span {
  color: var(--green);
  display: inline-block;
  letter-spacing: -5px;
}

/* Las dos líneas del h1 — especificidad mayor que .hero h1 span */
.hero h1 .h1-t1 {
  display: block;
  color: #fff;
  letter-spacing: normal;
}

.hero h1 .h1-t2 {
  display: block;
  color: var(--green);
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  opacity: .82;
  margin-bottom: 2rem;
  max-width: 580px;
  color: #d7ded5;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

/* --- Cards grilla --- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(46,204,64,.30);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--black);
}

.card-img-placeholder {
  width: 100%;
  height: 220px;
  background:
    radial-gradient(circle at center, rgba(46,204,64,.22), transparent 7rem),
    linear-gradient(135deg, #111711 0%, #262c26 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  position: relative;
}

.card-img-placeholder::before {
  content: 'APEX';
  color: rgba(255,255,255,.08);
  font-size: 3.3rem;
  font-weight: 1000;
  letter-spacing: -2px;
}

.card-body {
  padding: 1.35rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -.4px;
  margin-bottom: .55rem;
}

.card-text {
  color: #667066;
  font-size: .92rem;
  line-height: 1.55;
}

/* --- Actividades --- */
.activity-icon {
  display: none;
}

/* --- Horarios --- */
.schedule-tabs {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.tab-btn {
  padding: .7rem 1rem;
  border: 1px solid rgba(46,204,64,.38);
  background: rgba(255,255,255,.74);
  color: var(--black);
  font-weight: 950;
  font-size: .78rem;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--green);
  color: #061006;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .92rem;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.schedule-table th {
  background: #071007;
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-table th:first-child {
  border-top-left-radius: var(--radius);
}

.schedule-table th:last-child {
  border-top-right-radius: var(--radius);
}

.schedule-table td {
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: #293029;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:nth-child(even) td {
  background: #f3f5f1;
}

.schedule-table tr:hover td {
  background: rgba(46,204,64,.08);
}

/* --- Planes --- */
.plan-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f6f2 100%);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 28px;
  padding: 2.2rem 1.45rem;
  text-align: center;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 5px;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}

.plan-card:hover,
.plan-card.featured {
  border-color: rgba(46,204,64,.55);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.plan-card:hover::before,
.plan-card.featured::before {
  opacity: 1;
}

.plan-card.featured {
  background:
    radial-gradient(circle at top, rgba(46,204,64,.18), transparent 15rem),
    linear-gradient(180deg, #0a0f0a 0%, #111711 100%);
  color: var(--white);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.plan-name {
  font-size: 1.02rem;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: .5rem;
  letter-spacing: -.4px;
}

.plan-price {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1;
  font-weight: 1000;
  color: var(--green);
  margin: 1.25rem 0;
  letter-spacing: -2px;
}

.plan-price small {
  font-size: .85rem;
  font-weight: 700;
  color: #778077;
  letter-spacing: 0;
}

.plan-card.featured .plan-price small {
  color: #aeb8ae;
}

.plan-desc {
  font-size: .92rem;
  color: #657065;
  margin-bottom: 1.6rem;
  white-space: pre-line;
}

.plan-card.featured .plan-desc {
  color: #d1d8d0;
}

/* --- Profesores --- */
.teacher-card {
  text-align: center;
  padding-bottom: 1.5rem;
}

.teacher-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
}

.teacher-img-placeholder {
  width: 100%;
  height: 280px;
  background:
    radial-gradient(circle at center, rgba(46,204,64,.18), transparent 8rem),
    linear-gradient(180deg, #101510 0%, #242b24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  position: relative;
}

.teacher-img-placeholder::before {
  content: 'COACH';
  color: rgba(255,255,255,.10);
  font-size: 2.8rem;
  font-weight: 1000;
  letter-spacing: -1px;
}

.teacher-name {
  font-size: 1.05rem;
  font-weight: 950;
  margin-top: 1.1rem;
}

.teacher-role {
  color: var(--green);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: .55rem;
}

.teacher-bio {
  color: #667066;
  font-size: .9rem;
  padding: 0 1rem;
}

/* --- Galería --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  background: var(--black);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .35s ease,
    opacity .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: .88;
}

/* --- Contacto --- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--green);
  color: #061006;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}

.contact-info-item h4 {
  font-size: .76rem;
  text-transform: uppercase;
  color: #6d766d;
  margin-bottom: .2rem;
  letter-spacing: .7px;
}

.contact-info-item p a {
  color: var(--black);
  font-weight: 800;
}

.contact-info-item p a:hover {
  color: var(--green-d);
}

.btn-wa-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: #25D366;
  color: #061006;
  font-size: 1.05rem;
  font-weight: 950;
  padding: 1.15rem 2rem;
  border-radius: 999px;
  width: 100%;
  max-width: 380px;
  margin: 1.5rem auto 0;
  box-shadow: 0 14px 34px rgba(37,211,102,.25);
}

.btn-wa-big:hover {
  background: #35ea78;
}

/* --- Mapa --- */
.map-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.07);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: none;
  filter: saturate(.88) contrast(1.02);
}

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed;
  bottom: 2.3rem;
  right: 2.3rem;
  z-index: 200;
  width: 62px;
  height: 62px;
  background: #25D366;
  color: #061006;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 22px 60px rgba(91, 156, 75, 0.55);
}

/* --- Instagram strip --- */
.insta-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: var(--white);
  font-weight: 900;
  padding: .78rem 1.25rem;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 14px 32px rgba(204,35,102,.25);
}

.insta-badge:hover {
  opacity: .92;
  transform: translateY(-2px);
}

/* --- Flash messages --- */
.flash {
  padding: .95rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .9rem;
  font-weight: 700;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Cursor dot follower --- */
#apex-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  box-shadow: 0 0 12px rgba(46,204,64,.65);
  will-change: left, top;
  transition: opacity .3s ease;
  transform: translate(-50%, -50%);
}

/* --- Footer --- */
.site-footer {
  background:
    radial-gradient(circle at top left, rgba(46,204,64,.12), transparent 20rem),
    #000f00;
  color: var(--white);
  padding: 3.4rem 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer .logo-img {
  width: 150px;
  height: auto;
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2,.8,.2,1),
    filter .3s ease;
}

.site-footer .logo-img.is-visible {
  opacity: .92;
  transform: translateY(0) scale(1);
}

.site-footer .logo:hover .logo-img.is-visible {
  opacity: 1;
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 0 18px rgba(46,204,64,.32));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding-bottom: 2.8rem;
}

.footer-brand p {
  color: #a8b0a8;
  font-size: .9rem;
  margin-top: .65rem;
}

.footer-contact h4,
.footer-social h4,
.footer-links h4 {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: .9rem;
}

.footer-contact p,
.footer-contact a {
  color: #c7cec7;
  font-size: .9rem;
}

.footer-contact a:hover {
  color: var(--green);
}

.footer-social a {
  color: #c7cec7;
  font-weight: 700;
}

.footer-social a:hover {
  color: var(--green);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.footer-links a {
  color: #c7cec7;
  font-size: .9rem;
}

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

.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 1.25rem 0;
  color: #6e776e;
  font-size: .8rem;
}

/* --- Page header interno --- */
.page-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(46,204,64,.18), transparent 16rem),
    linear-gradient(135deg, #071007 0%, #121812 100%);
  color: var(--white);
  padding: 4rem 0 3.2rem;
  border-bottom: 1px solid rgba(46,204,64,.35);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 42px,
    rgba(46,204,64,.035) 42px,
    rgba(46,204,64,.035) 84px
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: .95;
}

.page-hero h1 span {
  color: var(--green);
}

.page-hero p {
  color: #c5cec5;
  margin-top: .75rem;
}

/* ============================================================
   Responsive - Tablet
   ============================================================ */
@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero {
    padding: 6.5rem 0;
  }
}

/* ============================================================
   Responsive - Desktop
   ============================================================ */
@media (min-width: 900px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    gap: .15rem;
    margin-left: auto;
    box-shadow: none;
  }

  .main-nav a {
    font-size: .68rem;
    padding: .55rem .7rem;
  }

  .header-wa {
    display: inline-flex;
    margin-left: .5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

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

  .map-wrap iframe {
    height: 430px;
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }
}

/* ============================================================
   Mobile refinements
   ============================================================ */
@media (max-width: 599px) {
  .hero {
    min-height: auto;
    padding: 4.5rem 0 4rem;
  }

  .hero h1 {
    letter-spacing: 2px;
    font-size: 2.2rem;
  }

  .hero h1 span {
    letter-spacing: 2px;
    font-size: 2.2rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.4rem 0;
  }

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

  .schedule-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 18px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: .85rem;
  }

  .wa-float {
    width: 56px;
    height: 56px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ============================================================
   Animaciones 
   ============================================================ */

.site-header.is-scrolled {
  background: rgba(0,0,0,.60);
  padding: .68rem 0;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-content.reveal-item {
  transform: translateY(22px);
}

.hero-content.reveal-item.is-visible {
  transform: translateY(0);
}

.card,
.plan-card,
.teacher-card,
.gallery-item,
.contact-info-item,
.map-wrap,
.schedule-table {
  will-change: transform;
}

.tab-anim {
  animation: apexTabIn .35s ease both;
}

@keyframes apexTabIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::before {
  transform: translateY(var(--hero-shift, 0));
  transition: transform .08s linear;
}

.btn,
.card,
.plan-card,
.gallery-item,
.teacher-card,
.contact-info-item {
  backface-visibility: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(46,204,64,.12), transparent 28rem),
    rgba(0,0,0,.92);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(12px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .25s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    background .2s ease,
    transform .2s ease;
}

.lightbox-close:hover {
  background: var(--green);
  color: #061006;
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}