
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdf6f6;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #5bb9eb;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header .title img {
  max-height: 60px;
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

nav ul li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  display: block;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* Dropdowns */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ea5898;
  min-width: 220px;
  z-index: 1000;
  top: 100%;
  left: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content,
.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #efed3f;
  color: #333;
}

/* Submenú */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-content {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

/* Sección de bienvenida */
.welcome-video {
  display: flex;
  flex-wrap: wrap;
  background-color: #5bb9eb;
  padding: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.welcome-text {
  flex: 1;
}

.welcome-text h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.learn-more-btn {
  display: inline-block;
  background-color: #ea5898;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #efed3f;
  color: #333;
}

.video-container {
  flex: 1;
  max-width: 500px;
}

video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Sección de equipo */
.team-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.team-slider {
  overflow: hidden;
  margin-top: 2rem;
}

.team-slide {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  flex-wrap: wrap;
  justify-content: center;
}

.team-member {
  background-color: #fdf6f6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 250px;
  text-align: center;
}

.team-member img {
  width: 100%;
  height: auto;
  display: block;
}

.team-info {
  padding: 1rem;
}

.team-info h3 {
  margin: 0.5rem 0;
  color: #ea5898;
}

.btn-learn-more {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #5bb9eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-learn-more:hover {
  background-color: #efed3f;
  color: #333;
}

/* Navegación del slider */
.team-slider-nav {
  margin-top: 1.5rem;
}

.team-slider-nav a {
  text-decoration: none;
  font-size: 2rem;
  color: #ea5898;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.team-slider-nav a:hover {
  color: #5bb9eb;
}

/* Footer */
.footer {
  background-color: #5bb9eb;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
}

.redes-sociales {
  margin-top: 1rem;
}

.redes-sociales a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.redes-sociales a:hover {
  transform: scale(1.2);
  color: #efed3f;
}

/* Responsive */
@media screen and (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #5bb9eb;
    width: 100%;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .welcome-video {
    flex-direction: column;
    text-align: center;
  }

  .video-container {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .team-member {
    width: 90%;
  }

  .welcome-text h2 {
    font-size: 1.5rem;
  }
}

/* Galería del equipo personalizado */
.equipo-galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: #fff;
}

.equipo-item {
  width: 220px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.equipo-item:hover {
  transform: scale(1.03);
}

.equipo-foto {
  position: relative;
  width: 100%;
  height: auto;
}

.equipo-foto img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.sombreado {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(90, 89, 89, 0.7), transparent);
  padding: 0.75rem 1rem;
  text-align: center;
}

.nombre {
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.btn-conocer-mas {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #ea5898;
  color: white;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-conocer-mas:hover {
  background-color: #efed3f;
  color: #333;
}
header {
  background-color: #00c2f2;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.title img {
  max-height: 60px;
}

.navbar {
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  display: block;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.nav-links a:hover {
  background-color: #ea5898;
  transform: scale(1.05);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ea5898;
  width: 200px;
  top: 100%;
  left: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #efed3f;
  color: #333;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  cursor: pointer;
  background: #ea5898;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-top: 10px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fdf6f6;
  transition: all 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    background-color: #5bb9eb;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding-bottom: 1rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown .dropbtn:focus + .dropdown-content,
  .dropdown .dropbtn:active + .dropdown-content {
    display: block;
  }
}
 /* SUBMENÚ TOGGLING EN MÓVILES */
 .submenu {
  position: static;
  box-shadow: none;
}

.submenu-toggle::after {
  content: '▼';
  float: right;
  padding-right: 10px;
}

.submenu.active {
  display: block;
}
@media (max-width: 768px) {
  .dropdown-content {
    display: none;
  }

  .dropdown-content.show-submenu {
    display: block;
  }
}
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    background-color: #ea5898;
    box-shadow: none;
    border-radius: 0;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}
/* Responsive navbar (cuando el menú se activa) */
.nav-links {
  display: flex;
  flex-direction: row;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #5bb9eb;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 1rem;
  }

  /* Asegurate de mostrar los submenús correctamente */
  .dropdown-content {
    position: relative;
    background-color: #66c2f0;
    padding-left: 1rem;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    color: white;
  }
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 4px 0;
  transition: 0.3s;
}

/* Estilo cuando se activa el toggle */
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #5bb9eb;
    margin-top: 1rem;
    padding: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 1rem 0;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #ea5898;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* Desactivamos hover en móvil */
  }

  .dropdown .dropbtn::after {
    content: " ▼";
  }

  .dropdown .dropbtn:focus + .dropdown-content,
  .dropdown .dropbtn:active + .dropdown-content {
    display: block;
  }
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: white;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: #5bb9eb;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar ul li {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background-color: #ea5898;
  }

  .dropdown-content a {
    padding-left: 2rem;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* disable hover on mobile */
  }

  .dropdown-content.show {
    display: block;
  }
}
.dropdown-content {
  display: none;
  position: static; /* en responsive lo queremos como bloque */
  background-color: #fdf6f6;
  min-width: 100%; /* usar todo el ancho en móvil */
  box-shadow: none;
  padding: 10px 0;
  font-size: 18px;
}

.dropdown-content.show {
  display: block;
}
/* GENERAL NAV */
.navbar {
  background-color: #00aadd;
  padding: 10px;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
  display: none; /* oculto por defecto en móvil */
}

.nav-links.active {
  display: block;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  display: block;
  padding: 12px;
  color: white;
  text-decoration: none;
  background-color: #00aadd;
}

/* SUBMENU */
.dropdown-content {
  display: none;
  background-color: #dcdcdc;
  padding-left: 0;
  margin: 0;
}

.dropdown-content li a {
  color: black;
  background-color: #dcdcdc;
  padding: 12px;
}

/* Muestra submenú si clase activa */
.dropdown.open .dropdown-content {
  display: block;
}

/* HAMBURGER */
.menu-toggle {
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* RESPONSIVE: todo visible en desktop */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
  }
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
}
