/* =============================================
   SYNERGIES — Estilo principal
   Paleta exacta: synergies.ar (Kadence palette)
   Fuente: Lato (Google Fonts)
   Mobile-first responsive
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* --- Variables --- */
:root {
  /* Paleta exacta de synergies.ar */
  --blue:        #2B6CB0;
  --blue-dark:   #215387;
  --navy:        #1A202C;
  --text-dark:   #2D3748;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --bg-gray:     #EDF2F7;
  --bg-light:    #F7FAFC;
  --white:       #ffffff;
  --border:      #E2E8F0;

  --max-width:   1140px;
  --radius:      4px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --transition:  0.22s ease;
}

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

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

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p { margin-bottom: 1rem; }
ul { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* --- Utilidades --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section--gray  { background: var(--bg-gray); }
.section--light { background: var(--bg-light); }
.section--navy  { background: var(--navy); }
.section--blue  { background: var(--blue); }

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

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p  { color: var(--text-mid); max-width: 640px; margin: 0.5rem auto 0; }

.badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43,108,176,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

.btn-lg { padding: 0.9rem 2.1rem; font-size: 0.95rem; }

/* =============================================
   SKIP LINK
   ============================================= */
.skip-link {
  position: absolute; top: -50px; left: 0;
  background: var(--blue); color: #fff;
  padding: 0.5rem 1rem; z-index: 9999;
  font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.header-logo img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-primary a {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-primary a:hover,
.nav-primary a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-cta a {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: var(--radius);
  margin-left: 0.5rem;
}
.nav-cta a:hover {
  background: var(--blue-dark) !important;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: 0.5rem;
}
.lang-btn {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  padding: 0.28rem 0.55rem;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-btn.lang-active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255,255,255,0.25);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-primary {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .nav-primary.open { display: flex; }
  .nav-primary a { padding: 0.65rem 0.75rem; font-size: 0.88rem; }
  .nav-cta a { margin-left: 0; margin-top: 0.25rem; text-align: center; }
}

/* =============================================
   HERO (home)
   ============================================= */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,32,44,0.85) 45%, rgba(26,32,44,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 600px;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}
.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* PAGE HERO (páginas de curso) */
.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,32,44,0.90) 30%, rgba(26,32,44,0.25) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  text-align: center;
  width: 100%;
}
.page-hero-content h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin: 0.4rem 0 0.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero-content .subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* =============================================
   GRIDS
   ============================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================
   ABOUT SPLIT (home)
   ============================================= */
.about-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-split { grid-template-columns: 1fr 1fr; }
}
.about-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* =============================================
   FEATURE CARDS (fortalezas)
   ============================================= */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.feature-card p  { color: var(--text-mid); font-size: 0.9rem; margin: 0; }

/* =============================================
   SERVICIO CARDS
   ============================================= */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.service-card p  { color: var(--text-mid); font-size: 0.88rem; margin: 0; }

/* =============================================
   COURSE CARDS (home)
   ============================================= */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--border);
}
.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.course-card-img {
  height: 210px;
  overflow: hidden;
}
.course-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-card-img img { transform: scale(1.05); }

.course-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card-body h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.course-card-body p  { color: var(--text-mid); font-size: 0.88rem; flex: 1; margin-bottom: 1rem; }

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.course-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =============================================
   EQUIPO
   ============================================= */
.team-grid { gap: 2rem; }

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

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 4px solid var(--bg-gray);
  box-shadow: var(--shadow-md);
  background: var(--bg-gray);
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-card h3   { font-size: 1.05rem; margin-bottom: 0.2rem; }
.team-card .role {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.team-card p { color: var(--text-mid); font-size: 0.87rem; margin: 0; }

/* =============================================
   ALIADOS
   ============================================= */
.aliados-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3.5rem;
}
.aliado-item { display: flex; align-items: center; }
.aliado-item img {
  max-height: 54px;
  max-width: 160px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.65;
  mix-blend-mode: multiply;
  transition: filter var(--transition), opacity var(--transition);
  object-fit: contain;
}
.aliado-item img:hover { filter: grayscale(0%); opacity: 1; }

.aliados-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0 0;
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}
.cta-band p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   INFO CHIPS (página de curso)
   ============================================= */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.chip-dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================
   PÁGINA CURSO — CONTENIDO
   ============================================= */
.course-content { max-width: 840px; margin: 0 auto; }

.content-block { margin-bottom: 3rem; }

.content-block h2 {
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
  color: var(--navy);
}

.objetivos-list {
  list-style: none;
  padding: 0;
}
.objetivos-list li {
  padding: 0.65rem 0 0.65rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.95rem;
}
.objetivos-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.tematica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}
.tematica-item {
  background: var(--bg-light);
  border-left: 3px solid var(--blue);
  padding: 0.6rem 0.85rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.87rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ITINERARIO (field-trip) */
.itinerary {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .itinerary { grid-template-columns: repeat(3, 1fr); }
}
.day-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.day-header { margin-bottom: 0.75rem; }
.day-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.day-card h3 { font-size: 0.97rem; margin-bottom: 0; }
.day-card ul  { padding-left: 1.2rem; }
.day-card li  { font-size: 0.87rem; color: var(--text-mid); }

.itinerario-grid { gap: 1.5rem; }

.itinerario-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.itinerario-card .dia {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
  display: block;
}
.itinerario-card h3 { font-size: 0.97rem; margin-bottom: 0.7rem; }
.itinerario-card ul { padding-left: 1.2rem; }
.itinerario-card li { font-size: 0.87rem; color: var(--text-mid); }

/* INSTRUCTOR BLOCKS */
.instructor-block {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.instructor-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

@media (min-width: 540px) {
  .instructor-block { grid-template-columns: 120px 1fr; }
}

.instructor-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  background: var(--bg-gray);
  flex-shrink: 0;
  margin: 0 auto;
}
.instructor-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.instructor-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin: 0 auto;
}
.instructor-info h3 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.instructor-info .spec {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}
.instructor-info p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 0.4rem; }
.instructor-info strong { color: var(--text-dark); }

/* FIGURAS GRANDES */
.figure-block {
  margin: 2rem 0;
}
.figure-block img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.figure-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* =============================================
   GALERÍA FOTOS (Envira-style grid)
   ============================================= */
.gallery-section { margin-top: 2rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (min-width: 540px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-grid a,
.gallery-grid > img {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-gray);
  aspect-ratio: 4/3;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  opacity: 0.9;
}
.gallery-grid > img:hover,
.gallery-grid a:hover img {
  transform: scale(1.07);
  opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #0d131e;
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand img {
  height: 32px;
  margin-bottom: 0.9rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.5); margin-bottom: 0.9rem; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  font-size: 0.84rem;
}
.footer-social a:hover { color: #fff; }

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.86rem; }
.footer-col a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: #fff; }
.footer-contact-label {
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 1px;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   GALERÍA — cursor pointer + overlay zoom
   ============================================= */
.gallery-grid > img {
  cursor: zoom-in;
  position: relative;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 3rem 1rem 1.5rem;
}
.lightbox[hidden] { display: none; }

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 120px);
  margin: 0;
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
  user-select: none;
}

.lb-counter {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lb-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  font-weight: 300;
}
.lb-close:hover { color: #fff; }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 300;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

@media (max-width: 480px) {
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 1.3rem; }
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
  .lb-figure img { max-height: calc(100vh - 140px); }
}

/* =============================================
   RESPONSIVE — MOBILE 375px
   ============================================= */
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }

  .hero { min-height: 440px; }
  .hero-content { max-width: 100%; padding: 3rem 0 3rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; text-align: center; }

  .page-hero { min-height: 280px; }
  .page-hero-content { padding: 1.5rem 0 2rem; }

  .info-chips { gap: 0.4rem; }
  .chip { font-size: 0.78rem; padding: 0.3rem 0.7rem; }

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

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

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

  .section-title h2 { font-size: 1.3rem; }
  .cta-band { padding: 2rem 0; }
}

/* =============================================
   RESPONSIVE — TABLET 768px
   ============================================= */
@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 2rem; }

  .hero-content { max-width: 100%; }

  .course-card-footer { flex-direction: column; align-items: flex-start; }
  .course-card-footer .btn { width: 100%; text-align: center; }

  .instructor-block { grid-template-columns: 1fr; }
  .instructor-photo { width: 100px; height: 100px; }
  .instructor-avatar { width: 100px; height: 100px; font-size: 1.4rem; }

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