:root {
  --azul: #0253a4;
  --azul-oscuro: #031d36;
  --blanco: #fff;
  --gris: #f2f2f2;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--azul), var(--azul-oscuro));
  color: var(--blanco);
  overflow-x: hidden;
}

/* 🔹 Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(3, 29, 54, 0.85);
  position: sticky;
  top: 0;
  z-index: 1000;
  opacity: 0;
  animation: fadeDown 1.2s ease forwards;
  visibility: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 90px;
  height: auto;
}

.logo h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  margin: 0;
  transform: translateY(-30px);
  opacity: 0;
  animation: slideDown 1s ease forwards;
  animation-delay: 0.3s;
}

/* Menú principal */
nav {
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}

nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul.menu > li {
  position: relative;
}

nav ul.menu > li > a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
}

nav ul.menu > li > a:hover {
  color: #00d4ff;
}

/* Submenu */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(3, 29, 54, 0.85);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1500;
}

.submenu-parent:hover .submenu,
.submenu-parent:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  list-style: none;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.submenu li a:hover {
  background: #00d4ff;
  color: var(--azul-oscuro);
  border-radius: 6px;
}

/* Icono caret */
.fas.fa-caret-down {
  font-size: 0.7rem;
  margin-left: 4px;
}

/* 🔹 Animaciones */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); visibility: visible; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* 🔹 Secciones */
section {
  padding: 60px;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #00d4ff;
  text-align: center;
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: auto;
}

/* 🔹 Inicio */
.inicio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px;
  flex-wrap: wrap;
}

.texto {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  opacity: 0;
  animation: fadeInLeft 1s ease forwards;
  animation-delay: 1s;
}

.texto h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.carrusel {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
  animation-delay: 1.3s;
}

.carrusel img {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  border-radius: 15px;
}

.carrusel img.active {
  opacity: 1;
  position: relative;
}


/* 🔹 Mascota fija */
.mascota {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.mascota img {
  width: 100px;
  cursor: pointer;
  transition: transform 0.3s;
}

.mascota img:hover {
  transform: scale(1.1);
}

/* Burbuja circular */
.burbuja {
  background: white;
  color: black;
  padding: 12px 16px;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.burbuja:hover {
  transform: scale(1.1);
}

.redes {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.redes a {
  background: white;
  color: var(--azul-oscuro);
  font-size: 20px;
  padding: 10px;
  border-radius: 50%;
  text-align: center;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.redes a:hover {
  transform: scale(1.2);
  background: #00d4ff;
  color: white;
}

/* 🔹 Footer */
footer {
  background: rgba(3, 29, 54, 0.95);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 50px;
}

footer a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}