/* ============================================================
   SOCIAL BRAIN — styles.css  v4  (multi-página)
   Paleta: #fdeeec | #ffc7af | #f19759 | #ef6240
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --c1: #fdeeec;
  --c2: #ffc7af;
  --c3: #f19759;
  --c4: #ef6240;

  --bg:           var(--c1);
  --bg-alt:       #fff7f5;
  --bg-warm:      #fef4f1;
  --surface:      #ffffff;

  --text-dark:    #3d1f14;
  --text-body:    #5c3526;
  --text-muted:   #a8725e;

  --accent:       var(--c4);
  --accent-mid:   var(--c3);
  --accent-soft:  var(--c2);

  --border:       rgba(239,98,64,0.22);
  --border-soft:  rgba(255,199,175,0.65);
  --shadow:       0 4px 24px rgba(239,98,64,0.10);
  --shadow-lg:    0 12px 48px rgba(239,98,64,0.16);

  --ff-display:   'Cormorant Garamond', Georgia, serif;
  --ff-body:      'DM Sans', sans-serif;
  --ff-review:    'Lato', sans-serif;   /* fuente para reseñas */
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;          /* oculta cursor nativo */
}

/* Forzar cursor none en TODOS los elementos */
*, *::before, *::after { cursor: none !important; }

/* ===== CUSTOM CURSOR — solo SVG, SIN ring, SIN flecha del sistema ===== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; will-change: transform;
}

/* Ocultar cursor personalizado en dispositivos táctiles / móvil */
@media (max-width: 1024px), (hover: none) {
  .cursor { display: none !important; }
  body, *, *::before, *::after { cursor: auto !important; }
}
.cursor-svg {
  width: 36px; height: 36px;
  position: absolute;
  transform: translate(-4px, -4px);
  transition: transform 0.15s ease;
  display: block;
}

/* ===== NOISE (muy sutil) ===== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  transition: background 0.4s, box-shadow 0.4s;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
nav.scrolled {
  background: rgba(253,238,236,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(239,98,64,0.10);
  border-bottom: 1px solid var(--border-soft);
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
}
.nav-logo-img { height: 72px; width: auto; display: block; }
.nav-logo-text { display: none !important; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.25s, background 0.25s;
  padding: 0.45rem 1rem;
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(239,98,64,0.10);
}

.nav-cta {
  background: var(--accent); border: none; color: #fff;
  padding: 0.65rem 1.5rem; font-family: var(--ff-body);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent-mid); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ===== HAMBURGER / MOBILE MENU ===== */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--accent); transition: all 0.3s; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(253,238,236,0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--ff-display); font-size: 2.5rem;
  font-weight: 300; color: var(--text-dark); text-decoration: none; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; color: var(--text-muted); font-size: 1.5rem;
}

/* ===== PAGE HERO (banner superior de páginas internas) ===== */
.page-hero {
  padding: 10rem 4rem 5rem;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: var(--bg); clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-label {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.page-hero-label::before {
  content: ''; display: block; width: 30px; height: 1px; background: var(--accent);
}
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300; color: var(--text-dark); line-height: 1.05;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  margin-top: 1.5rem; font-size: 1rem; color: var(--text-body);
  max-width: 580px; line-height: 1.8;
}

/* ===== BANNER CAROUSEL (inicio) ===== */
.banner-carousel {
  position: relative; width: 100%; overflow: hidden;
  /* Altura mínima mientras no hay imágenes */
  min-height: 480px;
}
.banner-track {
  display: flex; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
  height: 100%;
}
.banner-slide {
  min-width: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.banner-slide img {
  width: 100%; height: 100%; object-fit: cover;
  min-height: 480px;
}
/* Placeholder banner sin imagen */
.banner-placeholder {
  width: 100%; min-height: 480px;
  background: linear-gradient(135deg, var(--c2) 0%, var(--c3) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.banner-placeholder .bp-label {
  font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: #fff; opacity: 0.7;
}
.banner-placeholder .bp-title {
  font-family: var(--ff-display); font-size: 3rem;
  font-weight: 300; color: #fff; text-align: center;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(61,31,20,0.5) 0%, transparent 60%);
  display: flex; align-items: center; padding: 0 5%;
}
.banner-overlay-text { color: #fff; max-width: 500px; }
.banner-overlay-text h2 {
  font-family: var(--ff-display); font-size: clamp(2rem,5vw,4rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 1rem;
}
.banner-overlay-text p { font-size: 1rem; opacity: 0.85; margin-bottom: 1.5rem; }
.banner-overlay-text a {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.8rem 2rem; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s;
}
.banner-overlay-text a:hover { background: var(--accent-mid); }

/* Controles carrusel */
.carousel-controls {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none;
  transition: all 0.3s; padding: 0;
}
.carousel-dot.active { background: #fff; transform: scale(1.3); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
  color: #fff; width: 44px; height: 44px;
  font-size: 1.1rem; z-index: 10; transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }

/* ===== GALLERY CAROUSEL (550×720) ===== */
.gallery-carousel {
  position: relative; width: 100%; overflow: hidden; padding: 2rem 0;
}
.gallery-track {
  display: flex; gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-slide {
  min-width: 550px; width: 550px; height: 720px;
  flex-shrink: 0; position: relative; overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.gallery-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-slide:hover img { transform: scale(1.03); }
/* Placeholder galería */
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
}
.gallery-placeholder .gp-icon { font-size: 3rem; opacity: 0.35; }
.gallery-placeholder .gp-text {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); text-align: center; padding: 0 2rem; line-height: 1.6;
}
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: none; color: #fff;
  width: 48px; height: 48px; font-size: 1.1rem; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s; box-shadow: var(--shadow);
}
.gallery-btn:hover { background: var(--accent-mid); }
.gallery-btn.prev { left: 1rem; }
.gallery-btn.next { right: 1rem; }

/* ===== HERO (index) ===== */
.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem; opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-eyebrow span {
  color: var(--accent);           /* #ef6240 - naranja característico */
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 1px; background: var(--accent-mid);
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300; line-height: 1.0;
  color: var(--text-dark); letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeIn 1s ease 0.7s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-subtitle {
  margin-top: 2rem; font-size: 1rem;
  color: var(--text-muted); max-width: 520px; line-height: 1.8;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 1s forwards;
}
.hero-actions {
  margin-top: 3rem; display: flex; gap: 1.5rem; align-items: center;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 1.2s forwards;
}
.btn-ghost {
  color: var(--text-body); font-size: 0.8rem; letter-spacing: 0.1em;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.3s;
}
.btn-ghost::after { content: "→"; transition: transform 0.3s; }
.btn-ghost:hover { color: var(--accent); }
.btn-ghost:hover::after { transform: translateX(4px); }
@keyframes fadeUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes scrollAnim { 0% { left: -100%; } 100% { left: 100%; } }

/* ===== SECTION BASE ===== */
section { position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }

.section-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-label span {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
}
.section-label::before {
  content: ''; display: block; width: 30px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; color: var(--text-dark); line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ===== ABOUT / NOSOTRAS ===== */
#about { 
  padding: 8rem 0; 
  background: var(--bg-warm); 
}

.protagonist-text {
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.85;
}

.protagonista-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Placeholder */
.about-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.about-placeholder span {
  font-size: 4.5rem;
  opacity: 0.35;
}

.about-placeholder p {
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.8;
}

/* Ocultar placeholder cuando la imagen carga correctamente */
.about-frame img[src]:not([src=""]) ~ .about-placeholder {
  display: none !important;
}

/* ===== TEAM — Corregido ===== */
#team { 
  padding: 8rem 0; 
  background: var(--bg); 
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 5rem;
}
.team-card {
  background: var(--surface); 
  border: 1px solid var(--border-soft);
  overflow: hidden; 
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-lg); 
}

/* TEAM PHOTO - Placeholder corregido */
.team-photo {
  aspect-ratio: 3 / 4; /* 600×800 */
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.04);
}

/* Placeholder */
.team-photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, var(--c1) 0%, var(--c2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}
.ph-icon {
  font-size: 4rem;
  opacity: 0.4;
}
.ph-text {
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* Ocultar placeholder cuando la imagen carga correctamente */
.team-photo img[src]:not([src=""]) ~ .team-photo-placeholder {
  display: none !important;
}

/* TEAM INFO - Formato original + letras más grandes */
.team-info {
  padding: 2rem 2.2rem 2.5rem;
}
.team-name {
  font-family: var(--ff-display);
  font-size: 1.85rem;        /* más grande */
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.team-role {
  font-size: 0.88rem;        /* más grande y claro */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.team-bio {
  font-size: 0.96rem;        /* más grande */
  color: var(--text-body);
  line-height: 1.78;
}

/* ===== PROGRAMS ===== */
#programs { 
  padding: 8rem 0; 
  background: var(--bg-warm); 
}

.programs-intro {
  display: grid; 
  grid-template-columns: 1fr 1fr;
  gap: 4rem; 
  align-items: end; 
  margin-bottom: 5rem;
}

.programs-intro p { 
  color: var(--text-body); 
  font-size: 0.95rem; 
  line-height: 1.9; 
}

.programs-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 2rem; 
}

/* Card principal */
.program-card {
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.program-card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-lg); 
}

/* Contenedor de la imagen */
.program-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
}

.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 2;
}

.program-card:hover .program-img img {
  transform: scale(1.05);
}

/* Placeholder - SOLO visible si la imagen NO carga */
.program-img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;                    /* oculto por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--c2) 0%, var(--c3) 100%);
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.program-img-placeholder span {
  font-size: 2.8rem;
  opacity: 0.55;
}

.program-img-placeholder p {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

/* Mostrar placeholder SOLO cuando falla la imagen */
.program-img img[onerror] ~ .program-img-placeholder,
.program-img-placeholder[style*="display: flex"] {
  display: flex !important;
}

/* Contenido de la tarjeta */
.program-body { 
  padding: 1.8rem 1.8rem 2.2rem; 
}

.program-number {
  font-family: var(--ff-display); 
  font-size: 2.4rem; 
  font-weight: 300;
  color: var(--border-soft); 
  line-height: 1; 
  margin-bottom: 0.6rem;
}

.program-title { 
  font-family: var(--ff-display); 
  font-size: 1.35rem; 
  font-weight: 400; 
  color: var(--text-dark); 
  line-height: 1.2; 
  margin-bottom: 0.9rem; 
}

.program-desc { 
  font-size: 0.88rem; 
  color: var(--text-body); 
  line-height: 1.75; 
  margin-bottom: 1.4rem; 
}

.program-features { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 0.45rem; 
}

.program-features li { 
  font-size: 0.8rem; 
  color: var(--text-muted); 
  display: flex; 
  align-items: center; 
  gap: 0.6rem; 
}

.program-features li::before { 
  content: ''; 
  display: block; 
  width: 14px; 
  height: 1px; 
  background: var(--accent-soft); 
  flex-shrink: 0; 
}
/* ===== METHODOLOGY ===== */
#methodology { padding: 8rem 0; background: var(--bg-alt); }
.method-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; margin-top: 5rem; }
.method-sticky { position: sticky; top: 8rem; align-self: start; }
.method-sticky p { color: var(--text-body); font-size: 0.9rem; line-height: 1.9; margin-top: 1.5rem; }
.method-steps { display: flex; flex-direction: column; }
.method-step {
  padding: 2.5rem 0; border-bottom: 1px solid var(--border-soft);
  display: grid; grid-template-columns: 70px 1fr; gap: 2rem; align-items: start;
  opacity: 0.35; transition: opacity 0.4s;
}
.method-step:first-child { border-top: 1px solid var(--border-soft); }
.method-step:hover, .method-step.active { opacity: 1; }
.step-num { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 300; color: var(--accent-soft); line-height: 1; padding-top: 0.2rem; }
.method-step.active .step-num { color: var(--accent); }
.step-content h3 { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 400; color: var(--text-dark); margin-bottom: 0.6rem; }
.step-content p { font-size: 0.88rem; color: var(--text-body); line-height: 1.8; }
.step-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.step-tag { padding: 0.2rem 0.7rem; background: rgba(241,151,89,0.1); border: 1px solid var(--border); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--accent); }

/* ===== TESTIMONIALS / RESEÑAS — Versión moderna con movimiento automático ===== */
#testimonials {
  padding: 7rem 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 5rem;
}

.testimonials-header .section-label {
  justify-content: center;
}

.testimonials-header .section-label::before {
  display: none;
}

.testimonials-header .section-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
  margin: 0.8rem auto 0;
}

/* Contenedor principal con fade en los bordes (efecto premium) */
.testimonials-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 2rem;
}

/* Efecto fade suave en los laterales */
.testimonials-container::before,
.testimonials-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 3;
  pointer-events: none;
}

.testimonials-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.testimonials-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* Track con animación automática tipo marquee (infinito y fluido) */
.testimonials-track {
  display: flex;
  gap: 2.2rem;
  animation: marquee 40s linear infinite;   /* velocidad suave */
  width: max-content;
  padding: 1rem 2rem;
}

.testimonials-track:hover {
  animation-play-state: paused;   /* pausa elegante al pasar el mouse */
}

/* Animación de movimiento continuo */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }   /* usa -50% gracias a los duplicados */
}

/* Card de reseña - diseño moderno */
.testimonial-card {
  flex: 0 0 360px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Avatar más elegante */
.review-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--accent-soft);
  position: relative;
  background: linear-gradient(135deg, var(--c2), var(--c3));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.review-avatar-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 2.1rem;
  color: #fff;
  font-weight: 500;
}

/* Estrellas */
.stars {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

/* Texto de la reseña */
.testimonial-quote {
  font-family: var(--ff-review);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.75;
  flex-grow: 1;
}

/* Nombre */
.review-name {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  width: 100%;
  text-align: center;
}

/* ===== CONTACT ===== */
#contact { padding: 8rem 0; background: var(--bg-warm); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; margin-top: 5rem; align-items: start; }
.contact-info h3 { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 300; color: var(--text-dark); margin-bottom: 1rem; }
.contact-info p { color: var(--text-body); font-size: 0.9rem; line-height: 1.9; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-soft); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-item-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem; }
.contact-item-value { font-size: 0.88rem; color: var(--text-body); }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--text-dark); padding: 0.9rem 1.2rem;
  font-family: var(--ff-body); font-size: 0.88rem;
  outline: none; transition: border-color 0.3s; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: #fff; color: var(--text-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  margin-top: 0.5rem; background: var(--accent); color: #fff; border: none;
  padding: 1.1rem 2rem; font-family: var(--ff-body);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  transition: all 0.3s; width: 100%; border-radius: 2px;
}
.form-submit:hover { background: var(--accent-mid); box-shadow: var(--shadow-lg); }
.form-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; }

/* ===== LOCATION / MAP ===== */
#location { padding: 8rem 0; background: var(--bg-alt); }
.location-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; margin-top: 5rem; align-items: start; }
.location-info h3 { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 300; color: var(--text-dark); margin-bottom: 1rem; }
.location-info p { color: var(--text-body); font-size: 0.9rem; line-height: 1.9; margin-bottom: 2rem; }
.location-details { display: flex; flex-direction: column; gap: 1.2rem; }
.location-detail-item { display: flex; gap: 0.8rem; align-items: start; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border-soft); }
.location-detail-item:last-child { border-bottom: none; }
.loc-icon { font-size: 1.1rem; flex-shrink: 0; }
.loc-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.15rem; }
.loc-val { font-size: 0.88rem; color: var(--text-body); }
.map-container { position: relative; border: 1px solid var(--border-soft); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-container iframe { display: block; width: 100%; height: 480px; border: none; }
.map-overlay-tag { position: absolute; bottom: 1rem; left: 1rem; background: var(--accent); color: #fff; padding: 0.4rem 1rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ===== FOOTER ===== */
footer { background: var(--c4); padding: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-brand .footer-logo { display: flex; align-items: center; text-decoration: none; margin-bottom: 1rem; }
.footer-logo-img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-text { display: none !important; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.75); line-height: 1.8; max-width: 300px; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a { font-size: 0.82rem; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.footer-bottom a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal       { opacity: 0; transform: translateY(40px); }
.reveal-left  { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .section-inner { padding: 0 2rem; }
  .page-hero { padding: 8rem 2rem 4rem; }
  .team-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .programs-intro { grid-template-columns: 1fr; }
  .method-layout { grid-template-columns: 1fr; }
  .method-sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .gallery-slide { min-width: 90vw; width: 90vw; height: 60vw; max-height: 600px; }
}
@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  .nav-logo-img { height: 52px; }
  .section-inner { padding: 0 1.5rem; }
  footer { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-slide { min-width: 100vw; width: 100vw; height: 75vw; }
}
/* =============================================
   RESPONSIVE GENERAL - Mobile First adjustments
   Mejor responsividad en celular sin romper PC
   ============================================= */

* {
  box-sizing: border-box;
}

/* Ajustes globales para mejor experiencia en móvil */
body {
  font-size: 16px;           /* Base ideal para móviles */
  line-height: 1.65;
}

/* Navbar en móvil */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
}

/* Padding más cómodo en secciones para móvil */
.section-inner {
  padding: 0 1.25rem;
}

@media (max-width: 768px) {
  section {
    padding: 4.5rem 0 !important;
  }
  
  .section-inner {
    padding: 0 1.1rem;
  }
}

/* Tamaño de títulos más legible en móvil */
.hero-title,
.section-title {
  font-size: clamp(2.4rem, 7vw, 3.8rem);   /* más controlado */
}

@media (max-width: 768px) {
  .hero-title,
  .section-title {
    font-size: clamp(2.1rem, 8vw, 3.2rem);
  }
  
  .hero-subtitle,
  .protagonist-text {
    font-size: 1.05rem;
    line-height: 1.75;
  }
}

/* Galería (la que usamos con .gallery-container) */
@media (max-width: 768px) {
  .gallery-container,
  .photo-gallery {
    padding: 0 1rem !important;
    gap: 14px;
  }
  
  .gallery-card,
  .pg-card {
    flex: 0 0 85vw;
    height: 380px;
  }
}

/* Testimonials en móvil */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 88vw;
    min-width: 88vw;
  }
  
  .testimonials-track {
    gap: 1.8rem;
  }
}

/* Footer más legible en móvil */
@media (max-width: 768px) {
  .footer-inner {
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

  50%     { filter: invert(1) sepia(1) saturate(3) hue-rotate(330deg) brightness(1.1)  drop-shadow(0 0 36px rgba(239,98,64,0.65)); }
}

/* ===== SCROLL DOWN CTA — centrado, animado ===== */
.scroll-down-cta {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
  cursor: pointer;
  user-select: none;
}

.scroll-down-cta span {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.scroll-down-cta:hover span {
  color: var(--accent);
}

.scroll-arrow {
  font-size: 1.8rem;
  color: var(--accent);
  animation: bounceDown 1.8s ease-in-out infinite;
  line-height: 1;
  transition: transform 0.3s;
}

.scroll-down-cta:hover .scroll-arrow {
  transform: scale(1.2);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}


  100% { transform: rotate(360deg); }
}


  100% { transform: rotate(360deg); }
}

/* ===== HOVER GALLERY — Corregido: Sin ensanchamiento y efecto carrusel ===== */
.hover-gallery {
  display: flex;
  gap: 12px;
  padding: 0 4rem;
  height: 520px; /* Un poco más de aire para el formato 550x720 */
  align-items: stretch;
  width: 100%;
}

.hg-card {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.4s ease, 
              transform 0.4s ease;
  cursor: pointer;
  min-width: 0;
  position: relative;
}

/* ESTO CORRIGE EL ENSANCHAMIENTO */
.hg-card img,
.hg-placeholder {
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* Mantiene la proporción de la foto sin estirarla */
  border-radius: 12px;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem;
  transition: transform 0.6s ease;
}

.hg-placeholder span { font-size: 2.5rem; opacity: 0.5; }
.hg-placeholder p { 
  font-size: 0.7rem; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  color: #fff; 
  opacity: 0.7; 
  text-align: center; 
}

/* Comportamiento del carrusel/acordeón al hacer hover */
.hover-gallery:hover > .hg-card:not(:hover) {
  opacity: 0.5;
  flex: 0.6; /* Se achican las que no tienen el mouse encima */
}

.hover-gallery:hover > .hg-card:hover {
  flex: 4; /* La foto activa se expande horizontalmente */
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(239,98,64,0.25);
}

.hg-card:hover img {
  transform: scale(1.05); /* Zoom sutil interno */
}

/* Ajustes para que en móviles no se rompa el diseño */
@media (max-width: 1024px) {
  .hover-gallery { height: 400px; padding: 0 2rem; }
}

@media (max-width: 768px) {
  .hover-gallery { 
    height: 350px; 
    padding: 0 1.5rem; 
    gap: 8px; 
    overflow-x: auto; /* Permite scroll si las fotos son muy grandes */
  }
  .hover-gallery:hover > .hg-card:not(:hover) {
    flex: 1; /* En móviles es mejor no achicarlas tanto */
  }
}

/* ══════════════════════════════════════════════
   HERO — SECCIÓN COMPLETA
══════════════════════════════════════════════ */
/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  overflow: hidden;
  background: var(--bg);           /* mismo fondo que las otras secciones */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(253,238,236,0.85) 0%, rgba(253,238,236,0.70) 50%, transparent 100%);
  z-index: 1;
}

/* Contenido del texto - igual comportamiento que .section-inner en #intro */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content .section-inner {
  max-width: 680px;     /* ancho similar al de las otras secciones */
}

/* Logo a la derecha - más pequeño y mejor posicionado */
.hero-logo-wrap {
  position: absolute;
  right: 5.5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.hero-logo-3d {
  width: 320px;                    /* ← Más pequeño (antes era más grande) */
  max-width: 30vw;
  height: auto;
  filter: 
    invert(52%) sepia(65%) saturate(420%) hue-rotate(335deg) brightness(1.08)
    drop-shadow(0 0 28px rgba(239,98,64,0.28));
  animation: logoFloat 6.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

/* Scroll CTA — clickeable */
.scroll-down-cta {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  animation: fadeUp 0.8s ease 1.5s both;
  cursor: pointer !important;
  user-select: none;
}
.scroll-down-cta:hover .scroll-arrow { color: var(--accent-mid); }
.scroll-down-cta span {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}
.scroll-down-cta:hover span { color: var(--accent); }
.scroll-arrow {
  font-size: 1.3rem;
  color: var(--accent);
  animation: bounceDown 1.8s ease-in-out infinite;
  line-height: 1;
  transition: color 0.3s;
}
@keyframes bounceDown {
  0%,100% { transform: translateY(0);    opacity: 1;   }
  50%     { transform: translateY(9px);  opacity: 0.5; }
}

/* Hero lado derecho: foto */
/* TODO: reemplazar hero image → assets/img/imagen-hero.jpg (mín. 1200×900px) */
.hero-right-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: transparent;   /* importante */
}

.hero-photo-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: transparent;
}
/* Degradado de transición izquierda para que funda con el texto */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 35%);
  z-index: 1;
  pointer-events: none;
}
/* Placeholder si no hay foto */
.hero-photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--c2), var(--c3));
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}
.hero-photo-placeholder span { font-size: 3rem; opacity: 0.7; }

/* ══════════════════════════════════════════════
   NAV-CTA "RESERVÁ TU LUGAR" — efecto shimmer
   Limpio, sin pseudo-elementos giratorios rotos
══════════════════════════════════════════════ */
.nav-cta {
  position: relative;
  background: var(--c4);
  border: none;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.65rem 1.6rem;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
/* Shimmer sweep de izquierda a derecha */
.nav-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  animation: ctaShimmer 2.4s ease-in-out infinite;
}
@keyframes ctaShimmer {
  0%   { left: -80%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}
.nav-cta:hover {
  background: var(--c3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239,98,64,0.35);
}

/* ══════════════════════════════════════════════
   NAV LINK ACTIVO — borde coral animado
   Efecto borde pulsante limpio (sin conic roto)
══════════════════════════════════════════════ */
.nav-links li {
  position: relative;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
  display: block;
  position: relative;
}
.nav-links a:hover {
  color: var(--accent);
  background: rgba(239,98,64,0.08);
}
/* Item activo: fondo coral suave + borde animado */
.nav-links a.active {
  color: var(--accent) !important;
  background: rgba(239,98,64,0.10);
}
/* Línea inferior que crece */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--c3), var(--c4), var(--c3));
  background-size: 200% 100%;
  animation: activeBarSlide 2s linear infinite;
  border-radius: 2px;
}
@keyframes activeBarSlide {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ══════════════════════════════════════════════
   HOVER GALLERY
══════════════════════════════════════════════ */
.hover-gallery {
  display: flex;
  gap: 12px;
  padding: 0 4rem;
  height: 480px;
  align-items: stretch;
}
.hg-card {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  transition: flex 0.5s ease, opacity 0.4s ease, transform 0.35s ease, box-shadow 0.35s ease;
  min-width: 0;
}
.hg-card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
}
.hg-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 12px;
}
.hg-placeholder span { font-size: 2.5rem; opacity: 0.5; }
.hg-placeholder p { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; opacity: 0.7; text-align: center; }

.hover-gallery:hover > .hg-card:not(:hover) {
  opacity: 0.3;
  flex: 0.4;
}
.hover-gallery:hover > .hg-card:hover {
  flex: 3;
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(239,98,64,0.25);
}

/* ══════════════════════════════════════════════
   RESPONSIVE HERO
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section { padding: 0 2rem; }
  .hero-logo-3d { width: 300px; max-width: 40vw; }
}
@media (max-width: 768px) {
  .hover-gallery { height: 280px; padding: 0 1.5rem; gap: 8px; }
  .hero-logo-wrap { display: none; }
}
@media (max-width: 480px) {
  .hover-gallery { height: 200px; }
  .hero-section { padding: 0 1.5rem; }
}

/* GALERÍA - Efecto que querías (imágenes no gigantes + hover bonito) */
.gallery-container {
  display: flex;
  gap: 18px;
  padding: 0 4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 265px;           /* Ancho fijo - esto evita que se vean gigantes */
  height: 480px;              /* Altura fija (ajustá según prefieras) */
  border-radius: 18px;
  overflow: hidden;           /* ← Muy importante: corta la imagen */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Mantiene proporción sin distorsionar */
  transition: transform 0.6s ease;
}

/* Efecto hover */
.gallery-container:hover > .gallery-card:not(:hover) {
  opacity: 0.35;              /* Las demás se oscurecen */
  transform: scale(0.92);
}

.gallery-card:hover {
  transform: scale(1.08);     /* La que estás viendo se agranda */
  z-index: 2;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.gallery-card:hover img {
  transform: scale(1.12);     /* Zoom suave dentro de la tarjeta */
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-container { padding: 0 2.5rem; gap: 16px; }
  .gallery-card { flex: 0 0 260px; height: 390px; }
}

@media (max-width: 768px) {
  .gallery-container { padding: 0 1.8rem; gap: 14px; }
  .gallery-card { flex: 0 0 240px; height: 360px; }
}

@media (max-width: 480px) {
  .gallery-container { padding: 0 1.2rem; }
  .gallery-card { flex: 0 0 82vw; height: 380px; }
}

/* ══════════════════════════════════════════════
   BTN-LINK-ANIMATED — Botón de texto con
   subrayado dinámico y zoom sutil al hover
══════════════════════════════════════════════ */
.btn-link-animated {
  position: relative;
  display: inline-block;
  color: #e8835a;          /* naranja suavizado */
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.3s ease, transform 0.3s ease;
}
/* Subrayado que crece desde la izquierda */
.btn-link-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #e8835a;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s;
}
.btn-link-animated:hover {
  color: #c96b3f;
  transform: translateY(-1px);
}
.btn-link-animated:hover::after {
  width: 100%;
  background: #c96b3f;
}

/* ==================== ABOUT SECTION - Foto arriba en móvil ==================== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.about-visual {
  order: 1;
}

.about-text {
  order: 2;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-body);
}

/* En móvil: centrar todo el contenido del about-grid */
@media (max-width: 767px) {
  .about-grid {
    text-align: center;
  }

  .about-grid .section-title,
  .about-grid .protagonist-text,
  .about-grid .btn-link-animated {
    text-align: center;
  }

  .about-grid .reveal-right {
    display: flex;
    justify-content: center;
  }

  .about-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .protagonista-image {
    width: 80%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
  }
}

.about-text {
  order: 2;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-body);
}

.about-text p {
  margin-bottom: 1.6rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text-dark);
  font-weight: 500;
}

.about-frame {
  width: 100%;
  aspect-ratio: 4 / 5;           /* Cambia a 5/6 si querés más alta */
  overflow: hidden;
  border-radius: 16px;
  background: #f8f8f8;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}

.about-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Desktop: foto a la izquierda + texto a la derecha */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  
  .about-frame {
    aspect-ratio: 3 / 4;         /* más clásico en grande */
  }
}

/* Celulares muy pequeños */
@media (max-width: 480px) {
  .about-frame {
    aspect-ratio: 4 / 5.3;
  }
  
  .about-text {
    font-size: 1rem;
  }
}

/* ══════════════════════════════════════════════
   FOOTER — textos más grandes
══════════════════════════════════════════════ */
.footer-brand p {
  font-size: 1rem !important;
  line-height: 1.85;
}
.footer-col h4 {
  font-size: 0.82rem !important;
  letter-spacing: 0.22em;
  margin-bottom: 1.5rem;
}
.footer-col ul a {
  font-size: 1rem !important;
  line-height: 1.6;
}
.footer-bottom p {
  font-size: 0.9rem !important;
}
.footer-logo-img { height: 68px !important; }

/* ==================== PROGRAMS GRID — 4 col desktop, 1 col móvil ==================== */
.programs-grid--4col {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

@media (max-width: 1024px) {
  .programs-grid--4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}

@media (max-width: 600px) {
  .programs-grid--4col {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
