:root {
  --primary: #fffb00;
  --secondary: #0066cc;
  --light: #ffffff;
  --dark: #1311b8;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  overflow-x: hidden;
}

span {
  display: flex;
  font-weight: bold;
  font-size: 1.5rem;
  margin-left: 50px;
}

.logo-intro-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}

.logo {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  z-index: 1000;
  transition: all 0.6s cubic-bezier(.6,-0.28,.74,.05);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo.final {
  position: absolute;
  top: -20px; 
  left: -20px;
  width: clamp(90px, 8vw, 120px);
  height: auto;
  transition: none;
  z-index: 50;  
}

header {
  position: relative;
  width: 100vw;
  padding-block: clamp(0.35rem, 1.1vw, 0.7rem);
  padding-inline: clamp(0.6rem, 1.6vw, 1rem);
  background-color: var(--primary);
  color: var(--secondary);
  box-shadow: 4px 4px 8px rgba(17, 0, 250, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--dark);
}

.nav-social {
  margin-right: 3%;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.nav-social a {
  color: var(--secondary);
  font-size: 1.2rem;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-social a:hover {
  color: var(--secondary);
}

.dropdown-content-contato {
  display: none;
  position: absolute;
  top: 100%;
  transform: translateX(-70%);
  background-color: var(--primary);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 10px -10px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  z-index: 1000;
}

.dropdown-content-contato a {
  font-size: 15px;
  color: var(--secondary);
  display: block;
  margin: 4px 0;
}

.dropdown-contato:hover .dropdown-content-contato {
  display: block;
  cursor: default;
}

.contato {
  color: var(--secondary);
  font-size: 1.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.dropdown-contato:hover .contato {
  color: var(--dark);
}

.nav-social a[aria-label="contato"]:hover+.dropdown-content-contato,
.dropdown-content-contato:hover {
  display: block;
  cursor: default;
}

.nav-social a[aria-label="contato"]:hover i {
  color: var(--dark);
  transition: color 0.3s;
}

.hero {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  height: min(60vh, 450px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light);
  background: linear-gradient(rgba(0, 0, 0, 0.200), rgba(0, 0, 0, .3)), url(../img/kidshero.jpg) no-repeat center center;
  background-size: cover;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
}

#inicio h1 {
  color: var(--light);
  font-weight: bolder;
  font-size: 2rem;
  background-color: rgba(0, 33, 82, 0.192);
  border-radius: 10px;
}

main {
  padding: 0.5rem 2rem;
  box-sizing: border-box;
  margin-top: 1.4rem;
}

.contenedor-principal {
  margin: 0 auto;
  display: flex;
  width: 100vw;
  box-sizing: border-box;
}

.indice-lateral {
  position: sticky;
  top: 0;
  height: 100vh;
  margin: 10px;
  align-self: flex-start;
  width: clamp(500px, 20%, 800px);
  background-color: var(--secondary);
  border-radius: 10px;
  box-shadow: 4px 4px 8px rgba(0, 47, 255, 0.178);
  padding: 1rem;
}

.indice-lateral ul {
  margin-left: 10%;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.indice-lateral a {
  word-wrap: break-word;
  text-decoration: none;
  color: var(--light);
  font-size: 15px;
  transition: color 0.2s;
}

.indice-lateral a:hover,
.indice-lateral a.active {
  color: var(--primary);
  background: none;
  font-weight: bold;
}

.section-block {
  width: min(1100px, 90%);
  margin: auto auto 2rem auto ;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(16px);
  transition: opacity 0.8s cubic-bezier(.6, .2, .2, 1), transform 0.8s cubic-bezier(.6, .2, .2, 1), filter 0.8s cubic-bezier(.6, .2, .2, 1);
}

.section-block.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-block h2, h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: bolder;
  color: var(--secondary);
}

.section-block p {
  color: var(--dark);
  font-size: 1.3rem;
  text-align: justify;
  margin: 1rem;
  padding: 1.5rem;
}

.carrusel {
  position: relative;
  width: 90%;
  height: min(60vh, 450px);
  margin: auto auto 2rem auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.carrusel-img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

#contacto-fijo {
  background: var(--secondary);
  color: var(--light);
  width: 100%;
  display: flex;
  padding: 1rem;
  margin-bottom: 0%;
}

.footer-info {
  font-size: 1.2rem;
  margin: auto auto auto 5%;
}

#contacto-fijo iframe {
  width: 50%;
  margin: auto 5% auto auto;
}