* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding-top: 80px;
}


header {
  background: rgba(0, 59, 115, 0.664); /* azul con transparencia */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
nav ul.menu{
  display: flex;
  gap: 20px;
}


.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #003d80;
  padding: 8px 12px;
  display: block;
  font-weight: 600;
}

nav ul li a:hover {
  background-color: #e0e7ff;
  border-radius: 4px;
}
/* Ocultar checkbox e ícono por defecto */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  user-select: none;
  color: #003b73;
  padding: 10px;
}

/* Menú base */
nav ul.menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul.menu li {
  position: relative;
}

nav ul.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #2e57af;
  list-style: none;
  padding: 10px;
  top: 100%;
  left: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2000;
  border-radius: 6px;
  padding: 8px 0; /* si quieres igualar lo que te sugerí */

}

nav ul.menu li.dropdown:hover .dropdown-menu {
  display: block;
}

/* VERSIÓN MÓVIL */
@media (max-width: 900px) {
  .menu-icon {
    display: block;
  }

  nav ul.menu {
    display: none;
    flex-direction: column;
    background-color: #003b73;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    z-index: 10;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    
  }

  nav ul.menu li {
    text-align: center;
    padding: 10px 0;
  }

  nav ul.menu li a {
    color: white;
    text-decoration: none;
  }

  #menu-toggle:checked ~ nav ul.menu {
    display: flex;
  }

  nav ul.dropdown-menu {
    position: static;
    box-shadow: none;
    background: #004c99;
  }

  nav ul.dropdown-menu li a {
    color: #fff;
  }

  nav ul.menu li.dropdown:hover .dropdown-menu {
    display: block;
  }
}



/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 6px;
  min-width: 180px;
  z-index: 10;
  padding: 8px 0;
}

.dropdown-menu li a {
  padding: 8px 16px;
  color: #003d80;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background-color: #d1d9ff;
  border-radius: 4px;
}

/* Mostrar dropdown al hover */
.dropdown:hover .dropdown-menu {
  display: block;
}


nav a {
  color: white;
  text-decoration: none;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: fondoHero 20s infinite;
  opacity: 0.9;
}

@keyframes fondoHero {
  0%   { background-image: url('../panelparafondo.png'); }
  33%  { background-image: url('../img/fondo2.png'); }
  66%  { background-image: url('../bombabombeando2.jpeg'); }
  100% { background-image: url('../tablero2.webp'); }
}

.hero-content {
  z-index: 1;
  color: white;
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.producto img {
  width: 150px;
  height: auto;
  object-fit: cover;
}



.hero-content h1 {
  font-size: 3rem;
}

.hero-content .btn {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #0077cc;
  color: white;
  border: none;
  text-decoration: none;
  border-radius: 4px;
}

.especializacion {
  padding: 3rem 2rem;
  background: white;
  text-align: center;
}

.cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #eaf4fc;
  padding: 1.5rem;
  border-radius: 10px;
  flex: 1 1 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
  background: #32485c;
  color: white;
  text-align: center;
  padding: 1rem;
}
.btn-mas {
  margin-top: 9rem;
}

@media screen and (max-width: 768px) {
  .btn-mas {
    margin-top: 2rem;
  }
}
.hero-content p {
  margin-bottom: 2rem;
}
.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}
.logo {
  font-size: 36px; /* o usa rem si prefieres: 2.25rem */
  font-weight: bold;
  margin: 0;
}

.sub-logo {
  font-size: 14px;
  margin-top: 4px;
  color: #ddd;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}


body {
  padding-top: 70px; 
}
.logo-container {
  text-align: center;
  margin-bottom: 10px;
}

nav {
  text-align: center;
  margin-top: 10px;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.menu li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #ffcc00;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}
.header-left {
  display: flex;
  align-items: center;
}

.logo-image {
  max-height: 80px;
  margin-right: 15px;
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}

.sub-logo {
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #a0c4ff;
}

.producto-apartado {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.producto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
  gap: 20px;
}

.producto img {
  max-width: 100%;
  width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.texto-producto {
  flex: 1;
}

.texto-producto h2 {
  font-size: 26px;
  color: #003b73;
  margin-bottom: 10px;
}

.texto-producto p {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  margin-top: 40px;
}

/* Responsivo */
@media screen and (max-width: 900px) {
  nav ul.menu {
    display: none;
    flex-direction: column;
    background-color: #003b73;
    position: absolute; 
    top: 100%;
    right: 0;
    width: 200px;
    /* ... */
  }
}

.producto {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.producto img {
  width: 400px;
  height: 280px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 6px;
  flex-shrink: 0; 
}

.texto-producto {
  max-width: 800px;
  color: #333;
}

.producto h3 {
  margin-top: 0;
}
/* Ícono del menú hamburguesa */
.menu-icon {
  position: absolute;
  top: 1rem;
  left: 0.5rem; /* Más a la izquierda */
  font-size: 2rem;
  cursor: pointer;
  display: none;
  color: white;
  z-index: 2000;
}

/* Versión móvil */
@media screen and (max-width: 900px) {
  .menu-icon {
    display: block;
  }

  nav ul.menu {
    display: none;
    flex-direction: column;
    background-color: #003b73;
    position: absolute;
    top: 100%;
    left: 0.5rem; /* También movemos el menú a la izquierda */
    width: 220px;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    z-index: 1500;
  }

  #menu-toggle:checked ~ nav ul.menu {
    display: flex;
  }

  nav ul.menu li {
    text-align: center;
    padding: 10px 0;
  }

  nav ul.menu li a {
    color: white;
  }

  nav ul.dropdown-menu {
    position: static;
    box-shadow: none;
    background: #004c99;
  }

  nav ul.dropdown-menu li a {
    color: #fff;
  }

  nav ul.menu li.dropdown:hover .dropdown-menu {
    display: block;
  }
}
