/* =========================
   RESET & VARIABLES
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font-main: 'Poppins', sans-serif;

  --blue-dark: #0c2238;
  --blue-dark-2: #071a2d;
  --blue-main: #2f80ed;
  --blue-mid: #5faee3;
  --blue-light: #c6dcf0;
  --blue-very-light: #dbe9f6;
  --accent: #00A3E0;

  --text-dark: #1c2e45;
  --text-muted: #5a6a7a;

  --shadow-sm: 0 4px 12px rgba(12, 34, 56, 0.08);
  --shadow-md: 0 10px 30px rgba(12, 34, 56, 0.10);
  --shadow-lg: 0 20px 45px rgba(30, 75, 143, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Eliminar highlight táctil */
* { -webkit-tap-highlight-color: transparent; }
a, button { outline: none !important; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-main) !important;
  outline-offset: 2px;
}

/* =========================
   BOTONES MODERNOS
========================= */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue-main);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid var(--blue-main);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.25);
}
.btn-solid:hover {
  background: #256ad6;
  border-color: #256ad6;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.35);
}
.btn-solid-accent {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.35);
}
.btn-solid-accent:hover {
  background: #0089bd;
  border-color: #0089bd;
  box-shadow: 0 12px 28px rgba(0, 163, 224, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--blue-main);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid var(--blue-main);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--blue-main);
  color: #fff;
  transform: translateY(-2px);
}

/* .btn-primary antiguo (por compatibilidad con otras páginas) */
.btn-primary {
  position: relative;
  display: inline-block;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-main);
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.btn-primary::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.btn-primary:hover { color: var(--blue-dark); }
.btn-primary:hover::after { transform: scaleX(1); }

/* Eyebrow reutilizable */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-main);
  background: rgba(47, 128, 237, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* =========================
   HERO MODERNO
========================= */
.hero-modern {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding: 100px 6% 90px;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 55%, #e3efff 100%);
  overflow: hidden;
  min-height: 85vh;
}

.hero-modern::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-modern::after {
  content: "";
  position: absolute;
  bottom: -140px; left: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content-modern { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: #fff;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero-badge img {
  width: 34px; height: 34px;
  object-fit: contain;
  border-radius: 50%;
}
.hero-badge span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-main);
}

.hero-title {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--blue-main), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-eyebrow {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 600;
  color: var(--blue-main);
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 520px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-location {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual-image {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.floating-badge-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-main);
  line-height: 1;
}
.floating-badge-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero-modern {
    grid-template-columns: 1fr;
    padding: 60px 5% 70px;
    gap: 45px;
    min-height: auto;
  }
  .hero-visual-image { height: 340px; }
  .floating-badge { bottom: 15px; left: 15px; padding: 15px 20px; }
  .hero-buttons { width: 100%; }
  .hero-buttons a { flex: 1 1 auto; }
}

/* =========================
   video youtube (NO TOCAR)
========================= */
.youtube-video {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 20px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
}

.youtube-video iframe {
width: 100%;
height: 100%;
border: 0;
display: block;
}




/* =========================
   ACADEMIAS-WRAPPER  (NO TOCAR)
========================= */
.academias-wrapper {
  display: flex;
  justify-content: center;
  padding: 90px 0;
}
.academias-container {
  width: 70%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.gradient-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.academias-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.academias-image img {
  max-width: 70%;
  transform: rotate(-5deg);
}
@media (max-width: 900px) {
  .academias-container { width: 90%; grid-template-columns: 1fr; }
  .academias-image { text-align: center; }
  .academias-image img { max-width: 85%; margin: auto; }
}

/* =========================
   FEATURES  (nuevo)
========================= */
.features-section {
  padding: 90px 6%;
  background: #fff;
}
.features-header {
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}
.features-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.features-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.feature-card {
  background: #fff;
  border: 1px solid #eaf1f9;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue-main), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47,128,237,0.12), rgba(0,163,224,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue-main);
}
.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================
   ZONAS-ACTIVAS-SECTION  (NO TOCAR)
========================= */
.zonas-activas-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  font-family: 'Poppins', sans-serif;
}
.zonas-header { text-align: center; margin-bottom: 30px; }
.zonas-header h2 {
  font-size: 2.2rem;
  color: #0b1f33;
  font-weight: 700;
  margin-bottom: 10px;
}
.zonas-header p { color: #666; font-size: 1.1rem; }

.zonas-carousel-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 30px;
  position: relative;
  overflow: visible !important;
}
.zonas-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 25px 10px 40px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: default;
}
.zonas-carousel::-webkit-scrollbar { display: none; }

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: #0b1f33;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.nav-btn:hover {
  background: #3984C6;
  color: white;
  border-color: #3984C6;
  box-shadow: 0 6px 20px rgba(57,132,198,0.5);
  transform: translateY(-50%) scale(1.05);
}
.prev-btn { left: 5px; }
.next-btn { right: 5px; }

.zona-card {
  flex: 0 0 270px;
  height: 390px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zona-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(29,69,103,0.25);
}
.zona-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.zona-card:hover img { transform: scale(1.08); }

.zona-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,51,0.95) 0%, rgba(11,31,51,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  z-index: 2;
  pointer-events: none;
}
.zona-overlay h3, .btn-ver-galeria { pointer-events: auto; }
.zona-overlay h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.zona-card:hover .zona-overlay h3 { transform: translateY(0); }

.btn-ver-galeria {
  background: #3984C6;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.zona-card:hover .btn-ver-galeria { opacity: 1; transform: translateY(0); }
.btn-ver-galeria:hover { background: #2a6495; }

@media (max-width: 768px) {
  .zonas-header h2 { font-size: 1.8rem; }
  .zona-card { flex: 0 0 280px; height: 350px; }
  .btn-ver-galeria { opacity: 1; transform: translateY(0); }
  .nav-btn { display: none; }
}

/* MODAL DE GALERÍA (NO TOCAR) */
.galeria-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background-color: rgba(11,31,51,0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
.galeria-modal.active { display: flex; }

.galeria-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-modal {
  position: absolute; top: 15px; right: 25px;
  color: #333; font-size: 35px; font-weight: bold;
  cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: #e74c3c; }
.galeria-content h3 {
  color: #0b1f33; font-size: 1.8rem;
  margin-bottom: 20px; text-align: center;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.galeria-grid img {
  width: 100%; height: 200px;
  object-fit: cover; border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, filter 0.3s;
  cursor: zoom-in;
}
.galeria-grid img:hover { transform: scale(1.03); filter: brightness(0.8); }

/* LIGHTBOX (NO TOCAR) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background-color: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
  max-width: 95%; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.active img { transform: scale(1); }
.close-lightbox {
  position: absolute;
  top: 20px; right: 40px;
  color: white; font-size: 50px; font-weight: bold;
  cursor: pointer; transition: color 0.3s;
  z-index: 11001;
}
.close-lightbox:hover { color: #3984C6; }

/* =========================
   GALERÍA DE EVENTOS  (nuevo)
========================= */
.galeria-eventos {
  padding: 90px 9%;
  background: #f8fafd;
}
.galeria-eventos-header {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}
.galeria-eventos-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.galeria-eventos-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.galeria-eventos-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.galeria-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.galeria-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.galeria-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.galeria-card:hover img { transform: scale(1.08); }

.galeria-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.92) 0%, rgba(10,37,64,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 22px 20px;
  color: #fff;
}
.galeria-card-overlay strong {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.galeria-card-overlay span {
  font-size: 0.85rem;
  opacity: 0.88;
  line-height: 1.4;
}

/* =========================
   FRANCHISE CTA  (dark)
========================= */
.franchise-cta {
  position: relative;
  padding: 110px 6%;
  background: linear-gradient(135deg, #0a2540 0%, #0c2238 50%, #071a2d 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.franchise-cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0,163,224,0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(47,128,237,0.18) 0%, transparent 45%);
  pointer-events: none;
}
.franchise-cta-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.franchise-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 163, 224, 0.4);
  border-radius: 50px;
}
.franchise-cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 26px;
  letter-spacing: -0.5px;
}
.franchise-cta h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.franchise-cta p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 38px;
}

/* =========================
   SEDES · ACORDEÓN
========================= */
.sedes {
  padding: 90px 20px;
  background: #fff;
}
.sedes-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  position: relative;
}
.sedes-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #1b5299, #5faee3);
}

.accordion {
  max-width: 900px;
  margin: 45px auto 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 8px 28px;
}
.accordion-item { border-bottom: 1px solid transparent; }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  width: 100%;
  padding: 22px 4px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-dark);
  text-align: left;
}
.accordion-icon {
  font-size: 22px;
  color: var(--blue-main);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s ease;
  padding: 0 4px;
}
.accordion-content p {
  padding: 6px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.accordion-content p:first-child {
  color: var(--text-dark);
  font-weight: 600;
  padding-top: 12px;
}
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-item.active .accordion-content { max-height: 2000px; }

/* =========================
   TECH SECTION
========================= */
.tech-section {
  padding: 100px 6%;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}
.tech-title-wrapper { max-width: 780px; margin: 0 auto 55px; }
.tech-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.tech-card-wrapper { display: flex; justify-content: center; }
.tech-card {
  position: relative;
  max-width: 720px;
  padding: 55px 50px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 40px rgba(12, 34, 56, 0.12),
    0 4px 12px rgba(12, 34, 56, 0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.tech-card.show { opacity: 1; transform: translateY(0); }
.tech-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(47,128,237,0.2), transparent 70%);
  pointer-events: none;
}
.tech-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.tech-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.tech-card .btn-solid { margin-top: 14px; }

@media (max-width: 768px) {
  .tech-card { padding: 38px 26px; }
  .tech-card h3 { font-size: 1.25rem; }
}

/* =========================
   REVEAL ANIMATIONS
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* =========================
   UTILIDADES DE PÁGINAS ANTIGUAS (para no romper otras)
========================= */
@media (max-width: 992px) {
  .main-wrapper {
    width: 100%;
    flex-direction: column;
    padding: 0;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 20px;
  }
  .content-area { width: 100%; padding: 20px; }
  .courses-container { width: 100%; grid-template-columns: 1fr; margin: 0; }
  .course-card { width: 100%; }
}