/* ======== ESTILOS GENERALES ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to right, #ffffff, #eef2f3);
  color: #333;
  overflow-x: hidden;
}



/* ======== ENCABEZADO ======== */
header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 240px; /* 🔹 antes 320px → más compacto */
  border-radius: 0 0 25px 25px;
  overflow: hidden;
  background: #0e5c80;
}

/* ======== COLUMNA IZQUIERDA (FONDO DEL TÍTULO) ======== */
.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #007bff, #00ffff, #ff00c8);
  background-size: 200% 200%;
  animation: tituloGradient 6s infinite alternate;
  box-shadow: inset -8px 0 20px rgba(0, 0, 0, 0.2);
  padding: 20px 0; /* 🔹 menos espacio interno */
}

/* ======== TÍTULO ======== */
header h1 {
  color: white;
  font-size: 2.2rem; /* 🔹 antes 2.6rem → más proporcional */
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

header h1 .icono {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* ======== REDES SOCIALES ======== */
.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.redes-sociales a {
  font-size: 1.3rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.redes-sociales a:hover {
  transform: scale(1.2);
  background: white;
}

/* Colores personalizados */
.redes-sociales a.facebook:hover { color: #1877f2; }
.redes-sociales a.instagram:hover { color: #e4405f; }
.redes-sociales a.whatsapp:hover { color: #25d366; }
.redes-sociales a.youtube:hover { color: #ff0000; }

/* ======== COLUMNA DERECHA (IMAGEN) ======== */
.header-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0e5c80;
  padding: 0;
}

.header-image img {
  width: 100%;
  height: 100%; /* llena la altura reducida */
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

/* ======== ANIMACIÓN DEL DEGRADADO ======== */
@keyframes tituloGradient {
  0% { background-position: left top; }
  100% { background-position: right bottom; }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  .header-content {
    padding: 25px 0;
  }

  header h1 {
    font-size: 1.9rem;
  }

  .redes-sociales a {
    font-size: 1.2rem;
    padding: 6px;
  }

  .header-image img {
    height: auto;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.6rem;
  }

  header h1 .icono {
    width: 35px;
    height: 35px;
  }
}










/* ======== CONTENEDOR GENERAL ======== */
main {
  padding: 40px 10%;
}

section {
  margin-bottom: 60px;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #0e5c80;
}

/* ======== GRID DE CARDS ======== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

/* ======== CARD INDIVIDUAL ======== */
.card {
  background: linear-gradient(135deg, #ff00c8, #007bff, #00ffff);
  background-size: 200% 200%;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 0 20px #00ffff70;
  transition: all 0.4s ease;
  cursor: pointer;
  animation: gradientMove 4s infinite alternate;
}

.card:hover {
  transform: scale(1.07);
  box-shadow: 0 0 30px #00ffff, 0 0 60px #ff00c8;
}

@keyframes gradientMove {
  0% { background-position: left top; }
  100% { background-position: right bottom; }
}

/* ======== IMÁGENES EN LAS CARDS ======== */
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ======== TEXTOS ======== */
.card h3 {
  margin: 10px 0 5px;
  color: #fff;
}

.card p {
  font-weight: normal;
  color: #eee;
  font-size: 0.9rem;
}

.precio {
  margin-top: 8px;
  font-size: 1rem;
  color: #00ffff;
  font-weight: bold;
}

/* ======== BOTÓN WHATSAPP ======== */
.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  margin-top: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  box-shadow: 0 0 15px #25D366;
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  padding: 20px;
  color: #777;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
}

/* ======== EFECTO NEÓN (REMOVIDO) ======== */
.neon {
  /* Efecto eliminado */
}

/* ======== LISTA DESPLEGABLE ======== */
.card ul {
  text-align: left;
  margin-top: 8px;
  padding-left: 20px;
  color: #eee;
  font-size: 0.9rem;
  max-height: 0; /* Oculta la lista */
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.card ul li {
  margin-bottom: 5px;
  list-style-type: "🔹 ";
}

/* ======== CARD ABIERTA ======== */
.card.abierta ul {
  max-height: 200px; /* Altura suficiente para la lista */
  opacity: 1;
}





/* ======== REDES SOCIALES DENTRO DE LAS CARDS ======== */
.card-redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.card-redes a {
  font-size: 1.2rem;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.card-redes a:hover {
  transform: scale(1.2);
  background: white;
}

/* Colores personalizados */
.card-redes a.facebook:hover { color: #1877f2; }
.card-redes a.instagram:hover { color: #e4405f; }
.card-redes a.whatsapp:hover { color: #25d366; }
.card-redes a.youtube:hover { color: #ff0000; }




/* ======== MENÚ PRINCIPAL ======== */
.menu {
  display: flex;
  justify-content: center;
  background: #0e5c80;
  padding: 12px;
  gap: 20px;
}

.menu a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #00ffff;
}
