* {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  padding-top: 88px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: #1E90C9 #E8F6FB;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #E8F6FB; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5EC8E8 0%, #1E90C9 100%);
  border-radius: 10px;
  border: 2px solid #E8F6FB;
}
::-webkit-scrollbar-thumb:hover { background: #1E90C9; }

.white { color: #FFF; }
.border-bottom { border-bottom: 1px solid lightgrey; }

img { max-width: 100%; }

/* ---------- Cabecera ---------- */
.header-blanco {
  width: 100%;
  background: #FFFFFF;
  padding: 14px 30px;
  text-align: left;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.logo-img {
  height: 74px;
  width: auto;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.menu-principal {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.menu-principal a {
  color: #16314a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.menu-principal a:hover {
  color: #1E90C9;
}

.boton-hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.boton-hamburguesa span {
  display: block; height: 2px; width: 100%; background: #16314a;
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.boton-hamburguesa.activo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.boton-hamburguesa.activo span:nth-child(2) { opacity: 0; }
.boton-hamburguesa.activo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-movil {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  flex-direction: column;
  padding: 90px 24px 24px;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 99;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.menu-movil.abierto { transform: translateY(0); }
.menu-movil a {
  color: #16314a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.selector-idioma {
  appearance: none;
  -webkit-appearance: none;
  background: #E8F6FB url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231E90C9"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 14px;
  border: 1px solid #1E90C9;
  border-radius: 999px;
  color: #1E90C9;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 30px 6px 16px;
  cursor: pointer;
}
.selector-idioma:focus {
  outline: none;
  border-color: #0E6A94;
}

/* ---------- Banner animado ---------- */
.banner-container {
  position: relative;
  width: 100%;
  z-index: -1;
  height: 56.25vw;   /* proporción 16:9 de cabecera1.php: se ve igual en vertical y en horizontal */
  overflow: hidden;
  background: linear-gradient(360deg, #5EC8E8 0%, #1E90C9 100%);
}

.iframe-animacion {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Tarjeta de info ---------- */
.info-container {
  margin: -50px auto 0;
  width: 980px;
  max-width: 92%;
  background: #FFF;
  box-shadow: 0px 2px 8px #00000026;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  padding-bottom: 40px;
}
.info-text-box {
  margin: auto;
  padding-top: 40px;
  width: 880px;
  max-width: 92%;
}
.info-text {
  text-align: center;
  font: normal normal bold 24px/32px Lato;
  letter-spacing: 0px;
  color: #222;
  padding: 18px 0;
}

.info-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 10px 0 28px;
  text-align: left;
}
.hero-texto-col {
  flex: 1;
  min-width: 0;
}
.hero-foto-col {
  flex: 1;
  min-width: 0;
}
.hero-foto {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0px 12px 30px rgba(0,0,0,0.22);
}
.info-hero h2 {
  font: normal normal bold 48px/56px Lato;
  color: #000;
  margin: 0 0 18px;
  letter-spacing: 0px;
  text-align: left;
}
.info-hero p {
  font: normal normal 400 17px/26px Lato, Arial, sans-serif;
  color: #444;
  margin: 0 0 26px;
  text-align: left;
}
.hero-botones {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.boton-hero {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.boton-hero:hover { opacity: 0.85; transform: translateY(-1px); }
.boton-principal {
  background: #1E90C9;
  color: #fff;
}
.boton-secundario {
  background: transparent;
  color: #1E90C9;
  border: 1.5px solid #1E90C9;
}

.enlaces-container {
  margin-top: 40px;
  padding: 0 20px;
}
.enlaces-container a {
  color: #1E90C9;
  text-decoration: none;
}

/* ---------- Responsivo: tablet (<=900px) ---------- */
@media screen and (max-width: 900px) {
  .info-container { margin-top: -50px; }
  .menu-principal { gap: 16px; }
  .menu-principal a { font-size: 0.72rem; }
}

/* ---------- Responsivo: móvil (<=600px) ---------- */
@media screen and (max-width: 600px) {
  body { padding-top: 70px; }
  .header-blanco { padding: 10px 16px; }
  .logo-img { height: 46px; }
  .header-flex { gap: 10px; }
  .selector-idioma { font-size: 0.75rem; padding: 5px 24px 5px 12px; }
  .menu-principal { display: none; }
  .boton-hamburguesa { display: flex; }
  .menu-movil { display: flex; }


  .info-container { margin-top: -50px; }
  .info-text { font-size: 18px; line-height: 26px; padding: 14px 0; }
  .info-text-box { padding-top: 24px; }
  .info-hero h2 { font-size: 30px; line-height: 36px; }
  .boton-hero { padding: 11px 20px; font-size: 0.82rem; }
  .info-hero { flex-direction: column; text-align: center; gap: 20px; }
  .info-hero h2, .info-hero p { text-align: center; }
  .hero-botones { justify-content: center; }
}

