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

/* ─── Variables ─────────────────────────────────────────────────── */
:root {
  --teal:        #35889b;
  --teal-light:  #66c3ce;
  --pink:        #c56faa;
  --beige:       #e0d5c8;
  --footer-bg:   #2d6e7f;
  --white:       #ffffff;
  --text:        #3a3a3a;
  --text-mid:    #5a5a5a;
  --max-w:       1100px;
  --radius:      10px;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Utilidades ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-teal  { color: var(--teal); }
.text-pink  { color: var(--pink); }
.text-white { color: var(--white); }
.bold       { font-weight: 900; }
.center     { text-align: center; }

/* ─── Navegación ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img {
  height: 52px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav__links a:hover::after  { width: 100%; }
.nav__links a.activo::after { width: 100%; background: var(--pink); }
.nav__links a:hover,
.nav__links a.activo {
  color: var(--teal);
}
.nav__links a.activo { color: var(--teal); }
/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__hamburger.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__hamburger.abierto span:nth-child(2) { opacity: 0; }
.nav__hamburger.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

body.tema-menu-azul .nav,
body.tema-menu-turquesa .nav,
body.tema-menu-rosa .nav {
  background: var(--teal);
  box-shadow: none;
}
body.tema-menu-turquesa .nav {
  background: var(--teal-light);
}
body.tema-menu-rosa .nav {
  background: var(--pink);
}
body.tema-menu-azul .nav__inner,
body.tema-menu-turquesa .nav__inner,
body.tema-menu-rosa .nav__inner {
  position: relative;
  height: 78px;
}
body.tema-menu-azul .nav__logo img,
body.tema-menu-turquesa .nav__logo img,
body.tema-menu-rosa .nav__logo img {
  height: 66px;
  border-radius: 6px;
}
body.tema-menu-azul .nav__links a,
body.tema-menu-turquesa .nav__links a,
body.tema-menu-rosa .nav__links a {
  color: rgba(255,255,255,0.92);
}
body.tema-menu-azul .nav__links a:hover,
body.tema-menu-azul .nav__links a.activo,
body.tema-menu-turquesa .nav__links a:hover,
body.tema-menu-turquesa .nav__links a.activo,
body.tema-menu-rosa .nav__links a:hover,
body.tema-menu-rosa .nav__links a.activo {
  color: var(--white);
}
body.tema-menu-azul .nav__links a::after,
body.tema-menu-turquesa .nav__links a::after,
body.tema-menu-rosa .nav__links a::after {
  background: rgba(255,255,255,0.85);
}
body.tema-menu-azul .nav__links a.activo::after {
  background: var(--pink);
}
body.tema-menu-turquesa .nav__links a.activo::after {
  background: var(--pink);
}
body.tema-menu-rosa .nav__links a.activo::after {
  background: var(--teal-light);
}
body.tema-menu-azul .nav__hamburger span,
body.tema-menu-turquesa .nav__hamburger span,
body.tema-menu-rosa .nav__hamburger span {
  background: var(--white);
}

/* ─── Hero páginas interiores ────────────────────────────────────── */
.hero {
  background: var(--beige);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.hero__titulo {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero__desc {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.7;
}
.hero__desc .pink { color: var(--pink); }
.hero__flecha {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  cursor: pointer;
  animation: flecha-rebote 1.8s ease-in-out infinite;
  border-radius: 50%;
}
.hero__flecha:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 5px;
}
.hero__flecha img { width: 100%; }
@keyframes flecha-rebote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* ─── Hero Inicio ────────────────────────────────────────────────── */
.hero-inicio {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(224,213,200,0.28), rgba(224,213,200,0.58) 38%, rgba(224,213,200,0.82)),
    url('../assets/hero-inicio.jpg') 27% center / cover no-repeat;
  padding: 3.6rem 1.5rem 4.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inicio__texto {
  max-width: 680px;
  margin: 0 auto 2.8rem;
  font-size: clamp(1.3rem, 2.7vw, 1.62rem);
  font-weight: 900;
  color: var(--teal);
  line-height: 1.22;
}
.hero-inicio__texto span,
.hero-inicio__texto strong {
  display: block;
}
.hero-inicio__texto strong {
  max-width: 600px;
  margin: 0.35rem auto 0;
  color: #d66bc7;
}
.hero-inicio__logo {
  width: 190px;
  margin: 0 auto;
}

/* ─── Flecha / CTA scroll ────────────────────────────────────────── */
.flecha-scroll {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
}
.flecha-scroll img { width: 58px; }

/* ─── Sección vídeo placeholder ─────────────────────────────────── */
.seccion-video {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--white);
}
.video-placeholder {
  max-width: 700px;
  margin: 0 auto;
  background: #d0d0d0;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.1em;
}
/* Para embeds reales */
.video-embed {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Cards (3 columnas) ─────────────────────────────────────────── */
.seccion-cards {
  padding: 3.5rem 1.5rem;
  background: var(--white);
  text-align: center;
}
.seccion-cards__titulo {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.card {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(53,136,155,0.35);
}
.card:active {
  transform: translateY(-2px);
}
.card a {
  display: block;
  color: var(--white);
  text-decoration: none;
}
.card__icono {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.card__titulo {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.4;
}

/* ─── Sección misión (fondo teal) ────────────────────────────────── */
.seccion-mision {
  background: var(--teal-light);
  padding: 4.2rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.seccion-mision__texto {
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 900;
  line-height: 1.32;
}
.seccion-mision__texto span,
.seccion-mision__texto strong {
  display: block;
}
.seccion-mision__texto strong {
  margin-top: 1.7rem;
  color: #d66bc7;
}

/* ─── Sección premio / reconocimiento ───────────────────────────── */
.seccion-premio {
  background: var(--white);
  padding: 3.5rem 1.5rem;
}
.seccion-premio__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.seccion-premio__texto h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 1rem;
}
.seccion-premio__texto p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.seccion-premio__img {
  border-radius: var(--radius);
  overflow: hidden;
}
.seccion-premio__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Organigrama (SVG) ──────────────────────────────────────────── */
.seccion-organigrama {
  background: var(--white);
  padding: 3.2rem 1.5rem 3rem;
  text-align: center;
}
.organigrama__titulo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.organigrama__subtitulo {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 1.3rem;
}
.orgchart-wrap {
  max-width: 390px;
  margin: 0 auto;
  padding: 0.4rem 0;
}
.orgchart-wrap svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.orgchart-mobile { display: none; }

/* ─── Galería ────────────────────────────────────────────────────── */
.seccion-galeria {
  background: var(--teal-light);
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
}
.seccion-galeria__titulo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.seccion-galeria__subtitulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 0.85rem;
  max-width: 980px;
  margin: 0 auto;
}
.galeria-item {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(33, 99, 113, 0.14);
}
.galeria-item--grande {
  grid-column: span 2;
  grid-row: span 2;
}
.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.galeria-item:hover img,
.galeria-item:focus-visible img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.045);
}
.galeria-item:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ─── Vídeos (quiénes somos) ─────────────────────────────────────── */
.seccion-videos {
  background: linear-gradient(180deg, var(--teal-light) 0%, #f7fbfc 100%);
  padding: 0 1.5rem 4.5rem;
  text-align: center;
}
.seccion-videos[hidden] { display: none; }
.seccion-videos__titulo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 1rem;
}
.seccion-videos__subtitulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 16px 34px rgba(43, 104, 119, 0.14);
  text-align: left;
}
.video-card .video-embed {
  max-width: none;
  margin: 0;
}
.video-card__titulo {
  margin: 0.8rem 0.2rem 0.15rem;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
}

/* ─── Sección servicios imágenes ─────────────────────────────────── */
.seccion-img-split {
  background: var(--teal-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.seccion-img-split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

/* ─── Lista de servicios ─────────────────────────────────────────── */
.seccion-lista {
  background:
    linear-gradient(180deg, rgba(102,195,206,0.96), rgba(53,136,155,0.96)),
    var(--teal-light);
  padding: 4.5rem 1.5rem 4.8rem;
  text-align: center;
}
.servicios-heading {
  max-width: 680px;
  margin: 0 auto 2.4rem;
}
.seccion-lista__titulo {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.seccion-lista__subtitulo {
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  color: var(--white);
  opacity: 0.9;
  margin-top: 0.65rem;
}
.lista-servicios {
  list-style: none;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}
.servicio-card,
.lista-servicios li {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  color: var(--teal);
  text-align: left;
  box-shadow: 0 16px 32px rgba(27, 93, 107, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.servicio-card:hover,
.lista-servicios li:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(27, 93, 107, 0.22);
}
.servicio-card__numero {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}
.servicio-card__texto,
.lista-servicios li {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
}
.lista-servicios li::before { content: none; }
.servicios-cta {
  background: #f7fbfc;
  padding: 2.4rem 1.5rem;
}
.servicios-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.35rem 1.5rem;
  border-left: 5px solid var(--pink);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(43, 104, 119, 0.11);
}
.servicios-cta__texto {
  color: var(--teal);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
  line-height: 1.35;
}
.servicios-cta__btn {
  flex: 0 0 auto;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s;
}
.servicios-cta__btn:hover {
  background: var(--pink);
  transform: translateY(-1px);
}

/* ─── Imagen full-width (entre lista y volver) ───────────────────── */
.img-full {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ─── Testimonios ────────────────────────────────────────────────── */
.seccion-testimonios {
  background: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.testimonios__titulo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.testimonios-lista {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.testimonio blockquote {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
.testimonio cite {
  font-style: normal;
  font-weight: 700;
  color: var(--pink);
  font-size: 0.9rem;
}

/* ─── Contacto info ──────────────────────────────────────────────── */
.seccion-contacto-info {
  background: var(--white);
  padding: 3.5rem 1.5rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contacto-info__email,
.contacto-info__tel {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 900;
  color: var(--teal);
  text-align: center;
  overflow-wrap: anywhere;
}
.contacto-info__email a,
.contacto-info__tel a {
  color: inherit;
}
.contacto-info__email a:hover,
.contacto-info__tel a:hover {
  color: var(--pink);
}

/* ─── Social icons ───────────────────────────────────────────────── */
.seccion-social {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.social-icons a img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.2s;
}
.social-icons a:hover img { transform: scale(1.1); }

/* ─── Logo centrado (contacto) ───────────────────────────────────── */
.seccion-logo-central {
  background: var(--white);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}
.seccion-logo-central img {
  width: 200px;
  margin: 0 auto;
}

/* ─── Foto equipo full-width ─────────────────────────────────────── */
.seccion-foto-equipo {
  background: var(--white);
  padding: 0 1.5rem 3rem;
  text-align: center;
}
.foto-equipo {
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto;
  display: block;
}

/* ─── CTA colaborar (quiénes somos) ─────────────────────────────── */
.seccion-colaborar {
  background: #f7fbfc;
  padding: 3.8rem 1.5rem;
}
.colaborar-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.colaborar-copy {
  padding-top: 0.35rem;
}
.colaborar__titulo {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.colaborar__texto {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 430px;
}
.colaborar-contacto {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.35rem;
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.colaborar__texto a {
  color: var(--teal);
  font-weight: 800;
}
.colaborar-contacto a,
.colaborar__texto a {
  color: var(--teal);
}
.colaborar-contacto a:hover,
.colaborar__texto a:hover { color: var(--pink); }
.colaborar-form {
  padding: 1.35rem;
  border-left: 5px solid var(--pink);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(43, 104, 119, 0.11);
}
.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #d0c8bf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group select:focus { border-color: var(--teal); }
.form-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--text-mid);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}
.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.08rem;
  accent-color: var(--teal);
}
.field-web {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ─── Volver a inicio ────────────────────────────────────────────── */
.volver {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
}
.volver a {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--teal);
  transition: color 0.2s;
}
.volver a:hover { color: var(--pink); }

/* ─── Formulario de contacto ─────────────────────────────────────── */
.seccion-formulario {
  background: var(--beige);
  padding: 3.5rem 1.5rem;
}
.formulario-wrap {
  max-width: 580px;
  margin: 0 auto;
}
.formulario__titulo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--teal);
  text-align: center;
  margin-bottom: 2rem;
}
.formulario { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group  { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
}
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #d0c8bf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.formulario__btn {
  align-self: flex-start;
  padding: 0.8rem 2.2rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.formulario__btn:hover  { background: var(--teal-light); }
.formulario__btn:active { transform: scale(0.97); }
.form-feedback {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.5rem;
  min-height: 1.4em;
}
.form-feedback.ok  { color: #1a7a4a; }
.form-feedback.err { color: #c0392b; }

/* ─── Footer 3 columnas ──────────────────────────────────────────── */
.footer {
  background: #275f70;
  color: var(--white);
  padding: 3rem 1.5rem 0;
}
.footer__inner  { max-width: var(--max-w); margin: 0 auto; }
.footer__cols   {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 1.25fr 1.65fr;
  gap: 2.25rem;
  align-items: start;
  padding-bottom: 2.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer__logo {
  height: 82px;
  width: 82px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--white);
}
.footer__slogan { font-size: 0.95rem; font-weight: 800; opacity: 0.9; margin: 0; }
.footer__col-titulo {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
  margin: 0 0 0.8rem;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer__links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  opacity: 0.82;
  transition: opacity 0.2s;
}
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__dato { font-size: 0.88rem; font-weight: 700; opacity: 0.84; margin: 0 0 0.3rem; overflow-wrap: anywhere; }
.footer__dato a { color: var(--white); transition: opacity 0.2s; }
.footer__dato a:hover { opacity: 1; text-decoration: underline; }
.footer__partners {
  min-width: 0;
}
.footer__colaboradores {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(96px, 0.65fr);
  gap: 0.85rem;
  align-items: center;
}
.footer__colaboradores img {
  width: 100%;
  max-width: 100%;
  max-height: 86px;
  object-fit: contain;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.94);
  opacity: 0.98;
  transition: opacity 0.2s, transform 0.2s;
}
.footer__colaboradores img[src*="colaborador-caixa"] {
  grid-column: 1 / 2;
  max-height: 78px;
}
.footer__colaboradores img[src*="colaborador-esain"] {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  max-height: 118px;
  aspect-ratio: 1;
  padding: 0.16rem;
  border-radius: 50%;
}
.footer__colaboradores img[src*="colaborador-innova"] {
  grid-column: 1 / 2;
  max-height: 72px;
}
.footer__colaboradores img:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.78rem;
  opacity: 0.68;
}
.footer__bottom a { color: var(--white); text-decoration: underline; }

/* ─── Lightbox ───────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18,38,45,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 5rem;
}
#lightbox.activo { display: flex; }
.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0,0,0,0.48);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1.2rem; right: 1.2rem; font-size: 1.15rem; width: 44px; height: 44px; }
.lb-prev  { left: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 2rem; width: 52px; height: 52px; }
.lb-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 2rem; width: 52px; height: 52px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }
.lb-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ─── Cookie banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e3540;
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  font-size: 0.9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; opacity: 0.9; }
.cookie-banner a { color: var(--teal-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept  { background: var(--teal-light); color: var(--white); }
.cookie-btn--decline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }

/* ─── Separador hero con sección principal ───────────────────────── */
.hero + .seccion-contacto-info,
.hero + .seccion-organigrama {
  padding-top: 3.5rem;
}

/* ─── Aviso legal ───────────────────────────────────────────────── */
.seccion-legal {
  background: #f7fbfc;
  padding: 3.5rem 1.5rem 4rem;
}
.legal-content {
  max-width: 840px;
  margin: 0 auto;
  color: var(--text-mid);
}
.legal-content section {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(53,136,155,0.16);
}
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 {
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}
.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.7;
}
.legal-content ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}
.legal-content a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 400px; }
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    max-width: 620px;
  }
  .videos-grid { grid-template-columns: 1fr; max-width: 680px; }
  .lista-servicios { grid-template-columns: 1fr; max-width: 620px; }
  .colaborar-wrap { grid-template-columns: 1fr; max-width: 620px; }
  .colaborar__texto { max-width: none; }
  .seccion-premio__inner { grid-template-columns: 1fr; }
  .seccion-img-split { grid-template-columns: 1fr; }
  .seccion-img-split img { height: 260px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .footer__partners { grid-column: span 2; }
  .footer__colaboradores {
    grid-template-columns: minmax(180px, 1fr) 118px minmax(130px, 0.75fr);
    max-width: 620px;
  }
  .footer__colaboradores img[src*="colaborador-caixa"],
  .footer__colaboradores img[src*="colaborador-esain"],
  .footer__colaboradores img[src*="colaborador-innova"] {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .nav__inner { height: 64px; }
  .nav__logo img { height: 46px; }
  body.tema-menu-azul .nav__inner,
  body.tema-menu-turquesa .nav__inner,
  body.tema-menu-rosa .nav__inner { height: 70px; }
  body.tema-menu-azul .nav__logo img,
  body.tema-menu-turquesa .nav__logo img,
  body.tema-menu-rosa .nav__logo img { height: 58px; }
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 1rem;
  }
  body.tema-menu-azul .nav__links,
  body.tema-menu-turquesa .nav__links,
  body.tema-menu-rosa .nav__links {
    top: 70px;
    background: var(--teal);
    box-shadow: 0 10px 18px rgba(30,75,90,0.22);
  }
  body.tema-menu-turquesa .nav__links {
    background: var(--teal-light);
  }
  body.tema-menu-rosa .nav__links {
    background: var(--pink);
  }
  .nav__links.visible { display: flex; }
  .nav__hamburger { display: flex; }
  .nav { position: relative; }
  .hero-inicio {
    min-height: 430px;
    padding: 3rem 1rem 3.2rem;
    background-position: 18% center;
  }
  .hero-inicio__logo { width: 150px; }
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 125px;
    gap: 0.6rem;
  }
  .galeria-item--grande { grid-column: span 2; }
  .orgchart-wrap { max-width: 320px; }
  .org-rama { gap: 2rem; }
  .seccion-premio__inner { gap: 2rem; }
  .footer__cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__partners { grid-column: auto; }
  .footer__logo { height: 76px; width: 76px; }
  .footer__colaboradores {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 0.8rem;
    max-width: 360px;
  }
  .footer__colaboradores img[src*="colaborador-caixa"] {
    grid-column: 1 / 2;
    max-height: 72px;
  }
  .footer__colaboradores img[src*="colaborador-esain"] {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    max-height: 92px;
  }
  .footer__colaboradores img[src*="colaborador-innova"] {
    grid-column: 1 / 2;
    max-height: 64px;
  }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .servicio-card,
  .lista-servicios li {
    min-height: auto;
    padding: 0.95rem;
  }
  .servicios-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .formulario__btn { width: 100%; text-align: center; }
  .cookie-banner { flex-direction: column; }
  #lightbox { padding: 4rem 1rem; }
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
}

@media (max-width: 400px) {
  .orgchart-wrap svg { display: none; }
  .orgchart-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }
  .org-pill {
    width: min(100%, 260px);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(43, 104, 119, 0.16);
  }
  .org-pill--teal { background: linear-gradient(135deg, #2d7d8f, var(--teal-light)); }
  .org-pill--pink { background: linear-gradient(135deg, #b5599a, #d48abf); }
  .org-line {
    width: 2px;
    height: 18px;
    background: repeating-linear-gradient(
      to bottom,
      var(--teal-light) 0 5px,
      transparent 5px 9px
    );
  }
  .org-split {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    align-items: center;
    margin-top: 0.2rem;
  }
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item--grande { grid-column: span 1; grid-row: span 1; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ─── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Nav scrolled (sombra reforzada) ───────────────────────────── */
.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}
