:root {
  --cyan: #b9e2e6;
  --aqua: #3cb6b4;
  --deep: #0f5e66;
  --white: #ffffff;
  --accent: #179ab8;
}

/* --- RESET Y BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
}

body {
  background: var(--white);
  color: var(--deep);
  overflow-x: hidden;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header img { height: 40px; }

nav a {
  color: var(--deep);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover { color: var(--accent); }

@media (max-width: 768px) {
  nav { display: none; }
  header { justify-content: center; }
}

/* --- HERO (VIDEO) --- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--deep);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-radius: 15px;
}

.hero h1 {
  font-size: 4rem; /* antes 3rem */
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.6rem; /* antes 1.2rem */
  margin: 1.5rem 0 2.5rem 0;
  color: #073c41;
  line-height: 1.5;
  font-weight: 400;
}

.btn {
  background-color: var(--aqua);
  color: var(--white);
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn:hover { background-color: var(--deep); }

/* --- SECCIONES --- */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
}

/* --- FONDOS DINÁMICOS --- */
.section-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #b9e2e6 100%);
  position: relative;
  overflow: hidden;
}

.dna-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(23,154,184,0.08), transparent 70%),
              radial-gradient(circle at 80% 70%, rgba(23,154,184,0.08), transparent 70%);
}

.dna-bg-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #b9e2e6 100%);
  overflow: hidden;
}

.dna-bg-section .dna-lines {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  animation: dnaWave 10s ease-in-out infinite alternate;
}

@keyframes dnaWave {
  0% { transform: translateY(-50%) scaleY(1); }
  100% { transform: translateY(-48%) scaleY(1.05); }
}

/* --- CARRUSEL --- */
.carousel {
  position: relative;
  width: 90%;
  max-width: 1100px;
  overflow: hidden;
  border-radius: 15px;
  margin: 3rem auto 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 15px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,94,102,0.6);
  border: none;
  color: white;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 5;
}

.carousel-btn:hover { background: rgba(23,154,184,0.9); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* --- FEATURES --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin-top: 2rem;
}

.feature-card {
  background-color: rgba(255,255,255,0.8);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- ABOUT / SOBRE NOSOTROS --- */
.about {
  background: linear-gradient(180deg, #ffffff 0%, #b9e2e6 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  min-height: 60vh;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: 1.8rem;
  color: var(--deep);
  margin-bottom: 1rem;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #073c41;
  margin-bottom: 2rem;
}

.about-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-logos img {
  height: 70px;
  transition: transform 0.3s ease;
}

.about-logos img:hover { transform: scale(1.05); }

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--deep);
  color: var(--white);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* ===== Fades blancos entre secciones ===== */
section::before,
section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

/* Fade superior (blanco -> transparente) */
section::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* Fade inferior (blanco -> transparente) */
section::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* EXCEPCIONES */
/* Hero (inicio): sin fade superior */
#inicio::before {
  content: none !important;
}

/* Sobre nosotros: sin fade inferior */
#sobre::after {
  content: none !important;
}

/* Header base (ya lo tienes, añado clases nuevas) */
header { position: fixed; top:0; left:0; width:100%; background:rgba(255,255,255,0.8); backdrop-filter:blur(10px);
  display:flex; justify-content:space-between; align-items:center; padding:.8rem 1rem; z-index:200; box-shadow:0 2px 6px rgba(0,0,0,.05); }
header .brand { display:flex; align-items:center; gap:.5rem; text-decoration:none; color:var(--deep); }

/* Botón hamburguesa */
.nav-toggle { display:none; background:transparent; border:0; padding:.4rem; border-radius:.5rem; cursor:pointer; }
.nav-toggle .icon-close { display:none; }

/* Panel de navegación (desktop) */
.nav { display:flex; gap:1rem; }
.nav a { color:var(--deep); text-decoration:none; font-weight:500; padding:.4rem .6rem; }
.nav a:hover { color:var(--accent); }

/* Backdrop */
.nav-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.28); z-index:180; }

/* ------- MÓVIL / TABLET ------- */
@media (max-width: 900px) {
  .nav-toggle { display:block; }
  /* El nav se convierte en panel deslizante */
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;           /* altura viewport móvil */
    width: min(78vw, 360px);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,.12);
    padding: 5rem 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 200;
  }
  .nav a {
    display:block;
    padding: .9rem 1rem;
    border-radius: .6rem;
    font-size: 1.05rem;
  }
  .nav a:hover { background: rgba(23,154,184,.08); color: var(--deep); }

  /* Estado ABIERTO */
  .nav--open { transform: translateX(0); }
  .nav-backdrop[hidden] { display:none; }
  .nav-backdrop { display:block; }

  /* Alternar iconos del botón */
  .nav-toggle[aria-expanded="true"] .icon-burger { display:none; }
  .nav-toggle[aria-expanded="true"] .icon-close  { display:inline; }
  .nav-toggle[aria-expanded="false"] .icon-burger { display:inline; }
  .nav-toggle[aria-expanded="false"] .icon-close  { display:none; }
}

/* Evitar scroll de fondo cuando el panel está abierto */
.body--lock { overflow:hidden; }

/* Z-index del fade entre secciones es 1; el header/panel usa 200+ para no “taparse” */

nav a {
  position: relative;
  color: var(--deep);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

/* Línea inferior siempre visible */
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0.8;
}

/* Animación hover: línea se expande desde el centro */
nav a:hover::after {
  width: 60%;
}

/* Color más visible al pasar el ratón */
nav a:hover {
  color: var(--accent);
  font-weight: 700;
}

.hero-logo {
  margin-top: 10%;
  width: 25%;
  opacity: 0.95;
}

.hero-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-logo {
    width: 45%;
    margin-top: 15%;
  }
}

/* ----- NUESTRA TECNOLOGÍA ----- */
#quehacemos {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

#quehacemos h2 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  color: var(--deep);
}

#quehacemos p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
  color: #063a3f;
}

#quehacemos .content {
  max-width: 950px;
  margin: 0 auto;
  padding-top: 2rem;
}

/* ----- Carrusel dentro de la sección ----- */
.carousel {
  position: relative;
  width: 95%;
  max-width: 1100px;
  overflow: hidden;
  border-radius: 15px;
  margin: 3rem auto 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 15px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,94,102,0.6);
  border: none;
  color: white;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 5;
}

.carousel-btn:hover {
  background: rgba(23,154,184,0.9);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-caption {
  font-size: 1rem;
  color: #084247;
  opacity: 0.9;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  #quehacemos h2 {
    font-size: 2rem;
  }
  #quehacemos p {
    font-size: 1rem;
  }
  .carousel {
    width: 100%;
  }
}
/* ----- Ajustes para múltiples carruseles ----- */
#quehacemos .carousel {
  margin: 2.5rem auto 1.5rem;
}

#quehacemos .carousel + .carousel-caption {
  margin-bottom: 2rem;
}

#quehacemos p:last-of-type {
  margin-top: 2rem;
}

/* ----- CARACTERÍSTICAS ----- */
#caracteristicas h2 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: var(--deep);
  letter-spacing: 0.5px;
}

#caracteristicas .feature-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

#caracteristicas .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

#caracteristicas h3 {
  color: var(--accent);
  margin-bottom: 0.7rem;
}

#caracteristicas p {
  color: #064145;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  #caracteristicas h2 {
    font-size: 2rem;
  }
  .feature-icon {
    width: 60px;
    height: 60px;
  }
}

/* ----- CARACTERÍSTICAS RESPONSIVE ----- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

/* Tablet → 2 columnas */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

/* Móvil → 1 columna */
@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ----- SOBRE NOSOTROS ----- */
.about {
  background: linear-gradient(180deg, #ffffff 0%, #b9e2e6 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: auto; /* evita exceso de altura */
}

.about::before,
.about::after {
  content: "";
  height: 0; /* sin fades en esta sección */
  background: none;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.6rem;
  color: var(--deep);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #073c41;
  margin: 0 auto 2rem;
  max-width: 800px;
}

.about-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about-logos img {
  height: 70px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-logos img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .about {
    padding: 4rem 1rem 3rem;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1rem;
  }

  .about-logos {
    gap: 1.5rem;
  }

  .about-logos img {
    height: 60px;
  }
}
/* ----- EQUIPO CREADOR ----- */
.team-title {
  font-size: 2rem;
  color: var(--deep);
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.team-member h4 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #074146;
}

/* ----- EQUIPO CREADOR ----- */
.team-title {
  font-size: 2rem;
  color: var(--deep);
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← fuerza tres columnas en escritorio */
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.team-member {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 340px;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.team-member h4 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #074146;
}

/* --- Responsive ajustes --- */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* dos columnas en tablets */
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr; /* una columna en móvil */
    gap: 1.5rem;
  }

  .team-member {
    max-width: 90%;
    padding: 1.5rem;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .team-member p {
    font-size: 0.9rem;
  }
}

.tech-highlight {
  background: rgba(23,154,184,0.08);
  border-left: 4px solid #179ab8;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #0f5e66;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-weight: 500;
}

.tech-highlight strong {
  color: #179ab8;
  font-weight: 600;
}
/* --- Indicador de scroll en el HERO --- */
.scroll-hint {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.9rem;
  color: #0f5e66;
  opacity: 0.9;
  animation: fadeIn 2s ease-in-out;
  z-index: 3;
}

.scroll-hint span {
  display: block;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.scroll-hint svg {
  display: block;
  margin: 0.4rem auto 0;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- HERO CONTENT tamaño final equilibrado --- */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

/* Logo con presencia */
.hero-logo {
  width: 30%;
  max-width: 220px;
}

/* Título ligeramente más grande */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--deep);
}

/* Subtítulo más legible */
.hero p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem 0;
  color: #073c41;
  line-height: 1.6;
}

/* Botón principal */
.btn {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 30px;
}

/* --- Adaptación en móvil --- */
@media (max-width: 768px) {
  .hero-logo {
    width: 28%;
    max-width: 140px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.85rem 1.7rem;
    font-size: 1rem;
  }
}
.hero-logo {
  width: 34%;              /* antes 30% */
  max-width: 240px;        /* antes 220px */
}

/* Pequeña animación al pasar el ratón (solo desktop) */
@media (hover:hover) {
  .hero-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  }
}

/* --- Versión móvil --- */
@media (max-width: 768px) {
  .hero-logo {
    width: 38%;
    max-width: 170px;
    margin-bottom: 1.2rem;
  }
}
footer {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
footer a {
  color: #b9e2e6;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #ffffff;
}
.footer-content p {
  margin: 0.3rem 0;
}

.btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
  animation: fadeIn 0.4s ease;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.close-lightbox:hover {
  background: rgba(255,255,255,0.15);
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.carousel img {
  cursor: zoom-in;
}

/* ====== HEADER CON TRES LOGOS ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logos-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.main-logo {
  height: 46px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.main-logo:hover {
  transform: scale(1.05);
}

.partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Separador vertical entre logos */
.divider {
  width: 1px;
  height: 35px;
  background: rgba(0,0,0,0.15);
  margin: 0 0.2rem;
}

/* Responsive: logos más pequeños y centrados si colapsa */
@media (max-width: 768px) {
  .logos-group {
    gap: 0.6rem;
  }
  .main-logo {
    height: 40px;
  }
  .partner-logo {
    height: 34px;
  }
  .divider {
    height: 28px;
  }
}

/* ==== EQUIPO ==== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.team-member {
  text-align: center;
  max-width: 240px;
}

.team-member img {
  width: 100%;
  max-width: 180px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.05);
}

.team-member h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #0f5e66;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* ====== BOTÓN CONTACTO VISAVET ====== */
.contacto-visavet {
  margin-top: 2.5rem;
  text-align: center;
}

.btn-contacto {
  display: inline-block;
  background: linear-gradient(135deg, #179ab8, #0f5e66);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-contacto:hover {
  background: linear-gradient(135deg, #0f5e66, #179ab8);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ==== Selector de idioma dentro del menú ==== */
.lang-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto; /* Empuja las banderas a la derecha en PC */
}

/* Iconos de bandera */
.lang-flag {
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.lang-flag:hover {
  transform: scale(1.2);
}

/* ==== VERSIÓN MÓVIL ==== */
@media (max-width: 900px) {
  .lang-switcher {
    width: 100%;
    justify-content: center;     /* Centrado dentro del menú hamburguesa */
    margin-left: 0;
    padding: 15px 0;
  }

  .lang-flag {
    font-size: 26px; /* Un poquito más grande en móvil */
  }
}
.institutions-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 40px;
}

.institution-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.institution-card:hover {
  transform: translateY(-4px);
}

.institution-logo {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: grayscale(20%);
}