﻿/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --bg: #f5f9fc;
  --bg2: #eef3f8;
  --surface: #ffffff;
  --surface2: #edf4fa;
  --teal: #009d8f;
  --teal2: #00c4b0;
  --cyan: #0099b8;
  --green: #3a7e2a;
  --purple: #6d28d9;
  --navy: #0d2748;
  --purple-glow: rgba(109,40,217,0.07);
  --teal-glow: rgba(0,157,143,0.1);
  --white: #ffffff;
  --text: #0d1f35;
  --text-muted: #5a6b80;
  --border: rgba(0,157,143,0.2);
  --border2: rgba(0,0,0,0.09);
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Raleway', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

section { position: relative; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(13,39,72,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span.br { color: var(--teal); }

.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

/* Animated underline bar */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--navy);
}

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

.nav-links a.active {
  color: var(--teal);
}

.nav-links a.active::after {
  transform: scaleX(1);
  background: var(--teal);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16,185,129,0.4);
  background: #0da672;
}

.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu — slide-in panel */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: min(340px, 88vw);
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 28px 32px 40px;
  box-shadow: 8px 0 40px rgba(13,39,72,0.15);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Dark overlay behind panel */
.mobile-menu::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgb(255, 255, 255);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}

.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-menu.open::before {
  opacity: 1;
  pointer-events: auto;
}

/* Header row: logo + close */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.mm-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background var(--transition), border-color var(--transition);
}
.mm-close:hover { background: var(--bg2); border-color: var(--teal); }
.mm-close svg { width: 18px; height: 18px; }

/* Nav links */
.mm-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mm-links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--border2);
  /* stagger start state */
  opacity: 0;
  transform: translateX(-24px);
  transition: color 0.25s ease, transform 0.25s ease;
}

.mm-links a span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
  opacity: 0.7;
  min-width: 20px;
}

.mm-links a:hover {
  color: var(--teal);
  transform: translateX(6px);
}

/* Staggered reveal when open */
.mobile-menu.open .mm-links a {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu.open .mm-links a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open .mm-links a:nth-child(2) { transition-delay: 0.21s; }
.mobile-menu.open .mm-links a:nth-child(3) { transition-delay: 0.27s; }
.mobile-menu.open .mm-links a:nth-child(4) { transition-delay: 0.33s; }
.mobile-menu.open .mm-links a:nth-child(5) { transition-delay: 0.39s; }

/* WhatsApp bottom button */
.mm-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 12px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.mobile-menu.open .mm-wa {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}
.mm-wa:hover { box-shadow: 0 8px 28px rgba(0,157,143,0.35); }

/* =============================================
   HERO
   ============================================= */
#inicio {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(109,40,217,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,157,143,0.04) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 90px;
}

.slides-wrapper {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.leaving {
  opacity: 0;
  transform: translateY(-12px) scale(0.99);
  position: relative;
  pointer-events: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(0,157,143,0.07);
}

.slide-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.slide h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 80%;
  margin-bottom: 20px;
}

.slide h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--navy), var(--teal));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-gradient-shift 5s linear infinite;
}

.slide p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 80%;
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,201,177,0.4);
}

.btn-primary .btn-arrow {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 0;
  transform: translateX(-10px);
  transition: max-width 0.42s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.28s ease,
              transform 0.42s cubic-bezier(0.34,1.56,0.64,1),
              padding-left 0.42s cubic-bezier(0.34,1.56,0.64,1);
}

.btn-primary:hover .btn-arrow {
  max-width: 32px;
  opacity: 1;
  padding-left: 10px;
  transform: translateX(0);
}

.btn-primary .btn-wa-icon {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 0;
  transform: translateX(-10px);
  transition: max-width 0.42s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.28s ease,
              transform 0.42s cubic-bezier(0.34,1.56,0.64,1),
              padding-left 0.42s cubic-bezier(0.34,1.56,0.64,1);
}

.btn-primary:hover .btn-wa-icon {
  max-width: 36px;
  opacity: 1;
  padding-left: 10px;
  transform: translateX(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-outline:hover { background: rgba(0,157,143,0.07); transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 24px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(13,39,72,0.2);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.dot.active {
  background: var(--teal);
  width: 28px;
  border-radius: 4px;
}

.hero-scroll-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-arrow 2s ease-in-out infinite;
  transition: color var(--transition);
}
.hero-scroll-arrow:hover { color: var(--teal); }
.hero-scroll-arrow svg { width: 28px; height: 28px; }

@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(0,157,143,0.08);
  border: 1px solid rgba(0,157,143,0.2);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title span {
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--navy), var(--teal));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-gradient-shift 5s linear infinite;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Animated underline */
.section-title-underline {
  position: relative;
  display: inline-block;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.2s;
}

.section-title-underline.animated::after {
  transform: scaleX(1);
}

/* =============================================
   QUIÉNES SOMOS
   ============================================= */
#quienes {
  padding: 120px 0 100px;
  background: linear-gradient(to bottom, var(--bg), var(--bg2));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 40px;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  box-shadow: 0 8px 40px rgba(13,39,72,0.14);
  position: relative;
}

.about-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(13,39,72,0.75) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-text h2 .about-highlight {
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--navy), var(--teal));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-gradient-shift 5s linear infinite;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(90deg, var(--teal), var(--cyan), #0a8a7a, var(--teal));
  background-size: 300% 100%;
  animation: name-gradient-shift 6s linear infinite;
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 80px;
  gap: 0;
}

.stats-bar-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stats-bar-item + .stats-bar-item {
  border-left: 1px solid rgba(255,255,255,0.25);
}

.stats-bar-item .stat-number {
  color: #fff;
  font-size: 3rem;
}

.stats-bar-item .stat-label {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.species-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.pill {
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0,157,143,0.08);
  border: 1px solid rgba(0,157,143,0.2);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,39,72,0.07);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
  display: inline-block;
  transition: transform 0.15s ease;
}
.stat-number.counter-done {
  animation: statPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes statPop {
  0%   { transform: scale(1); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Staff */
.staff-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,39,72,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 64px rgba(13,39,72,0.13);
}

.staff-photo {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--bg2);
  flex-shrink: 0;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.staff-card:hover .staff-photo img {
  transform: scale(1.50);
}

.staff-info {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.staff-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--navy), var(--teal));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-gradient-shift 5s linear infinite;
}

@keyframes name-gradient-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.staff-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.staff-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}

.staff-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
}

.staff-role svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
}

.staff-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0,119,181,0.1);
  border: 1px solid rgba(0,119,181,0.2);
  color: #5fa8d3;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.staff-linkedin:hover {
  background: rgba(0,119,181,0.22);
  transform: translateY(-2px);
}

.staff-linkedin svg { width: 14px; height: 14px; }

/* =============================================
   INSTITUTO BANNER
   ============================================= */
.instituto-banner {
  margin: 48px 0 60px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 40px rgba(13,39,72,0.14);
}

.instituto-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  transition: transform 0.6s ease;
}

.instituto-banner:hover img {
  transform: scale(1.02);
}

.instituto-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 28px;
  background: linear-gradient(to top, rgba(13,39,72,0.75) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =============================================
   GALERÍA DE LABORATORIO
   ============================================= */
.galeria-section {
  padding: 100px 0 0;
  background: var(--bg);
  overflow: hidden;
}

/* Full-width marquee track */
.galeria-carousel-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 48px;
  padding-bottom: 100px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
}

.galeria-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: galeria-scroll 40s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

/* Pause on hover — disabled */

@keyframes galeria-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.galeria-item {
  border-radius: 14px;
  overflow: hidden;
  width: 360px;
  height: 260px;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: 0 2px 16px rgba(13,39,72,0.08);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galeria-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .instituto-banner img { height: 280px; }
  .galeria-item { width: 280px; height: 200px; }
}
@media (max-width: 540px) {
  .instituto-banner img { height: 200px; }
  .galeria-item { width: 220px; height: 160px; }
}

/* =============================================
   SERVICIOS
   ============================================= */
#servicios {
  padding: 100px 0;
  background: var(--bg2);
  position: relative;
}

#servicios::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-card.sr-hidden {
  opacity: 0;
  transform: translateY(40px);
}

/* Staggered entrance delays (row 1 & row 2 stagger separately) */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }
.service-card:nth-child(3) { transition-delay: 0.25s; }
.service-card:nth-child(4) { transition-delay: 0.05s; }
.service-card:nth-child(5) { transition-delay: 0.15s; }
.service-card:nth-child(6) { transition-delay: 0.25s; }
.service-card:nth-child(7) { grid-column: span 3; transition-delay: 0.05s; }
.service-card:nth-child(8) { grid-column: span 3; transition-delay: 0.15s; }

/* Once scrolled into view: reveal + switch to fast hover transitions */
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
  transition-delay: 0s;
}

.service-card:hover {
  border-color: rgba(0,157,143,0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,157,143,0.15);
  background: #fff;
}

.serv-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  /* Bouncy scale transition + continuous glow */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
  animation: iconGlow 3s ease-in-out infinite;
}

.service-card:hover .serv-icon-wrap {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: rgba(0,157,143,0.55) 0px 8px 32px;
  animation: none;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: rgba(0,157,143,0.18) 0px 4px 15px; }
  50%       { box-shadow: rgba(0,157,143,0.48) 0px 4px 26px; }
}

.serv-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: #fff;
  stroke: #fff;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .serv-icon-wrap svg {
  transform: scale(1.1);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--teal);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

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

/* =============================================
   CURSOS
   ============================================= */
#cursos {
  padding: 100px 0;
  position: relative;
  isolation: isolate;
}

.cursos-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.cursos-bg__img {
  position: absolute;
  inset: 0;
  background: url('../img/biorepro13.webp') center center / cover no-repeat;
  opacity: 70%;
}

.cursos-bg__blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(13, 39, 72, 0.86),
    rgba(0, 157, 143, 0.78),
    rgba(13, 39, 72, 0.88)
  );
}

.cursos-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

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

#cursos .section-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

/* Restore teal tag inside the white sponsors card */
#cursos .sponsors-card .section-tag {
  background: rgba(0,157,143,0.08);
  color: var(--teal);
  border-color: rgba(0,157,143,0.2);
}

#cursos .section-title {
  color: #fff;
}

#cursos .cursos-subtitle {
  color: rgba(255,255,255,0.75);
}

.cursos-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cursos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.cursos-column {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cursos-column.sr-hidden {
  opacity: 0;
  transform: translateY(40px);
}
.cursos-column:nth-child(1) { transition-delay: 0.05s; }
.cursos-column:nth-child(2) { transition-delay: 0.2s; }
.cursos-column.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 0s;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.column-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.column-icon svg {
  width: 20px; height: 20px;
  stroke: #fff;
}

.column-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.curso-item {
  border-bottom: 1px solid var(--border2);
  padding: 20px 0;
  cursor: pointer;
}

.curso-item:last-child { border-bottom: none; }

.curso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.curso-num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,157,143,0.12), rgba(0,153,184,0.08));
  border: 1px solid rgba(0,157,143,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

.curso-name {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
  color: var(--navy);
}

.curso-arrow {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  font-size: 1rem;
}

.curso-item.open .curso-arrow { transform: rotate(180deg); color: var(--teal); }

.curso-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding-top: 0;
}

.curso-body p {
  margin: 0 0 10px;
}

.curso-body p:last-child {
  margin-bottom: 0;
}

.curso-item.open .curso-body {
  max-height: 600px;
  padding-top: 12px;
}

.cursos-download {
  text-align: center;
  margin-bottom: 32px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgb(255, 255, 255);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.download-link:hover { background: rgba(0,157,143,0.07); transform: translateY(-2px); }

.download-link svg { width: 26px; height: 26px; flex-shrink: 0; }

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

/* =============================================
   SPONSORS (dentro de #cursos)
   ============================================= */
.sponsors-card {
  max-width: 800px;
  margin: 48px auto 0;
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.sponsors-card::before {
  display: none;
}

.sponsors-card::after {
  display: none;
}

.sponsors-header {
  text-align: center;
  margin-bottom: 24px;
}

.sponsors-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sponsors-header p { color: var(--text-muted); }

/* =============================================
   SPONSOR MODAL
   ============================================= */
.sponsor-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sponsor-modal.open {
  opacity: 1;
  pointer-events: all;
}

.sponsor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 39, 72, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sponsor-modal__box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(13,39,72,0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.sponsor-modal.open .sponsor-modal__box {
  transform: translateY(0) scale(1);
}

.sponsor-modal__box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sponsor-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.sponsor-modal__close:hover {
  background: rgba(0,157,143,0.12);
  color: var(--teal);
}

.sponsor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--navy), var(--teal));
  background-size: 300% 100%;
  animation: name-gradient-shift 5s linear infinite;
  padding: 3px 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.form-group:has(textarea) label {
  top: 16px;
  transform: translateY(0) translateX(8px);
}

.form-group:has(input:focus) label,
.form-group:has(input:not(:placeholder-shown)) label,
.form-group:has(textarea:focus) label,
.form-group:has(textarea:not(:placeholder-shown)) label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.form-group:has(textarea:focus) label,
.form-group:has(textarea:not(:placeholder-shown)) label {
  transform: translateY(0) translateX(0);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,201,177,0.5);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.sponsor-form .btn-primary {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 8px;
}

/* =============================================
   CONTACTO
   ============================================= */
#contacto {
  padding: 100px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,157,143,0.08);
  border: 1px solid rgba(0,157,143,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon-wrap svg {
  width: 20px; height: 20px;
  stroke: var(--teal);
}

.contact-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-item-value {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-item-value a {
  color: var(--teal);
  transition: color var(--transition);
}

.contact-item-value a:hover { color: var(--cyan); }

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(13,39,72,0.08);
  white-space: nowrap;
  text-decoration: none;
}

.social-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #fff;
  transition: filter 0.25s ease;
}

.social-btn--ig .social-btn__icon,
.social-btn--li .social-btn__icon {
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--navy), var(--teal));
  background-size: 300% 100%;
  animation: name-gradient-shift 5s linear infinite;
}

.social-btn__text {
  padding: 0 16px 0 12px;
  color: var(--text);
  transition: color 0.25s ease;
}

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

.social-btn--ig:hover,
.social-btn--li:hover {
  box-shadow: 0 8px 24px rgba(0,157,143,0.28);
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(13,39,72,0.07);
}

.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  border-top: none;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-logo span { color: var(--teal); }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--teal2); }

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer-social:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,201,177,0.07);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-by {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-by span { color: var(--teal); }
.footer-by a { text-decoration: none; }
.footer-by a:hover span { text-decoration: underline; }

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-float 3s ease-in-out infinite;
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,211,102,0.7);
  animation: none;
}

.float-wa svg { width: 30px; height: 30px; fill: #fff; }

@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =============================================
   AOS / SCROLL REVEAL
   ============================================= */
/* Elements are ALWAYS visible by default.
   JS adds .will-reveal to off-screen elements only,
   then removes it (via .aos-animate) when scrolled in. */
[data-aos] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].will-reveal:not(.aos-animate) {
  opacity: 0;
  transform: translateY(40px);
}

[data-aos="fade-right"].will-reveal:not(.aos-animate) {
  transform: translateX(-40px);
}

[data-aos="fade-left"].will-reveal:not(.aos-animate) {
  transform: translateX(40px);
}

[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* =============================================
   GLOW LINES (decorative)
   ============================================= */
.glow-line {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  pointer-events: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { min-height: 280px; }
  .stats-bar { flex-wrap: wrap; gap: 24px; padding: 36px 24px; }
  .stats-bar-item { flex: 1 1 40%; }
  .stats-bar-item + .stats-bar-item { border-left: none; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card { grid-column: span 1; }
  .cursos-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .sponsors-card { padding: 48px 40px; }
  .sponsor-form { grid-template-columns: 1fr 1fr; }
  .footer-inner { gap: 24px; }
  .footer-nav { gap: 16px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */
@media (max-width: 768px) {
  /* --- Navbar --- */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #navbar { left: 0; right: 0; width: 100%; max-width: 100vw; overflow: hidden; }
  #navbar .container { padding: 0 16px; }
  .nav-inner { gap: 0; }
  .nav-logo img { height: 38px; max-width: calc(100vw - 80px); }

  /* --- Hero --- */
  #inicio { min-height: 600px; }
  .hero-content { padding-top: 80px; }
  .slide h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .slide p { font-size: 0.95rem; }
  .hero-scroll-arrow { display: none; }
  .hero-dots { left: 16px; bottom: 24px; }
  .btn-primary, .btn-outline { padding: 12px 22px; font-size: 0.88rem; }

  /* --- Sections padding --- */
  section { padding: 64px 0; }

  /* --- About / Stats --- */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-image { min-height: 240px; }
  .stats-bar { flex-wrap: wrap; gap: 16px; padding: 28px 16px; border-radius: 14px; }
  .stats-bar-item { flex: 1 1 40%; padding: 12px; }
  .stats-bar-item + .stats-bar-item { border-left: none; }
  .stats-bar-item .stat-number { font-size: 2.2rem; }
  .stat-number { font-size: 2.2rem; }
  .species-pills { gap: 6px; }
  .pill { font-size: 0.78rem; padding: 5px 11px; }

  /* --- Staff --- */
  .staff-grid { grid-template-columns: 1fr; gap: 20px; }
  .staff-photo { height: 220px; }

  /* --- Services --- */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-grid .service-card:nth-child(7),
  .services-grid .service-card:nth-child(8) { grid-column: span 1; }
  .service-card { padding: 24px 20px; }
  .service-card:nth-child(n) { transition-delay: 0s; }

  /* --- Cursos --- */
  .cursos-grid { grid-template-columns: 1fr; gap: 20px; }
  .cursos-column { padding: 28px 20px; }
  .cursos-subtitle { font-size: 0.95rem; }
  .cursos-download { text-align: center; }

  /* --- Sponsors --- */
  .sponsors-card { padding: 32px 20px; }
  .sponsor-form { grid-template-columns: 1fr; gap: 12px; }
  .sponsor-form .btn-primary { grid-column: 1; width: 100%; justify-content: center; }
  .sponsors-header h2 { font-size: 1.4rem; }

  /* --- Contact --- */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-info h2 { font-size: 1.5rem; }
  .social-links { flex-wrap: wrap; gap: 8px; }
  .social-btn { font-size: 0.82rem; padding: 0; }

  /* --- Footer --- */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .footer-nav a { font-size: 0.85rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .slide h1 { font-size: clamp(1.45rem, 8vw, 1.9rem); }
  .slide p { font-size: 0.9rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .stats-bar { flex-wrap: wrap; padding: 24px 12px; border-radius: 12px; }
  .stats-bar-item { flex: 1 1 45%; padding: 8px; }
  .stats-bar-item .stat-number { font-size: 2rem; }
  .stat-number { font-size: 2rem; }
  .staff-photo { height: 200px; }
  .sponsors-card { padding: 24px 16px; }
  .sponsor-form .btn-primary { padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
