/* -------------------- GENERAL -------------------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

/* -------------------- HEADER -------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #003366;
  color: white;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 75px;
  height: 75px;
  object-fit: cover;
  margin-right: 15px;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 174, 239, 0.8);
}

.logo-container h1 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 🔥 BOTONES + BUSCADOR */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-buttons button {
  padding: 8px 15px;
  background: #00AEEF;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.header-buttons button:hover {
  background: #0077aa;
}

/* 🔍 BUSCADOR */
#search-input {
  width: 0;
  opacity: 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

#search-input.activo {
  width: 200px;
  opacity: 1;
}

/* -------------------- HERO -------------------- */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero-cards {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 20px;
}

.hero-card {
  background: white;
  width: 220px;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-5px) scale(1.05);
}

/* -------------------- PRODUCTOS -------------------- */
.productos,
.catalogo-container {
  padding: 2rem;
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  width: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #003366;
  line-height: 1.3;
}

.card .categoria {
  font-size: 11px;
  color: #00AEEF;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  flex-grow: 1;
}

.card .descripcion {
  display: none; /* Ocultar la descripción en la vista de catálogo */
}

.card .precio {
  font-size: 20px;
  font-weight: 900;
  color: #28a745;
  margin: 0;
  text-align: right;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* -------------------- CATÁLOGO -------------------- */
.catalogo-container {
  display: none;
}

.catalogo-container.visible {
  display: block;
}

/* -------------------- FILTRO DE PRECIOS -------------------- */
.catalogo-filtros {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filtro-grupo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtro-grupo label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.filtro-grupo input[type="number"] {
  width: 90px;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 7px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.filtro-grupo input[type="number"]:focus {
  border-color: #00AEEF;
}

.catalogo-filtros .material-symbols-outlined {
  font-size: 20px;
  color: #00AEEF;
}

#btn-aplicar-precio {
  background: #00AEEF;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

#btn-aplicar-precio:hover { background: #0088cc; }

#btn-limpiar-precio {
  background: transparent;
  color: #888;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

#btn-limpiar-precio:hover { background: #f0f0f0; color: #333; }

/* -------------------- SELECTOR DE CATEGORÍAS (ADMIN) -------------------- */
.cat-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.cat-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #f5f5f5;
  color: #444;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover {
  border-color: #00AEEF;
  color: #00AEEF;
  background: #eef7ff;
}

.cat-btn-active {
  background: #003366 !important;
  color: white !important;
  border-color: #003366 !important;
  font-weight: bold;
}

/* -------------------- BOTÓN ESCRIBIR AHORA (CATÁLOGO) -------------------- */
.btn-escribir-ahora {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-escribir-ahora:hover {
  background: #1dad52;
  transform: translateY(-2px);
}

/* -------------------- UBICACIÓN / MAPA -------------------- */
.ubicacion-section {
  padding: 3rem 2rem;
  background: #f4f6f8;
  text-align: center;
}

.ubicacion-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 28px;
  color: #003366;
  margin-bottom: 0.5rem;
}

.ubicacion-desc {
  color: #666;
  font-size: 15px;
  margin-bottom: 1.5rem;
}

.mapa-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #003366;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.btn-maps:hover {
  background: #00AEEF;
  transform: translateY(-2px);
}

/* -------------------- CONTACTO -------------------- */
.contacto {
  background: #003366;
  color: white;
  text-align: center;
  padding: 3rem;
}

.contacto button {
  background: #00AEEF;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

/* -------------------- FAQ -------------------- */
.faq {
  padding: 3rem;
  background: #fff;
}

.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #003366;
}

/* 🔥 separa cada item */
.faq-item {
  max-width: 600px;
  margin: 10px auto;
}

/* 🔥 BOTÓN */
.faq-question {
  width: 100%;
  padding: 15px;
  background: #eaeaea;
  border: none;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* 🔥 HOVER AZUL */
.faq-question:hover {
  background: #00AEEF;
  color: white;
}

/* 🔥 RESPUESTA (ANIMADA) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* 🔥 CUANDO ESTÁ ACTIVO */
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 10px;
}

/* -------------------- ABOUT -------------------- */
.about {
  padding: 3rem 1.5rem;
  background: #f4f6f8;
  text-align: center;
}

.about h2 {
  margin-bottom: 2rem;
  font-size: 28px;
  color: #003366;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

/* TEXTO */
.about-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* FEATURES */
.about-features {
  flex: 1;
  min-width: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* TARJETAS */
.feature {
  background: white;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* -------------------- FOOTER -------------------- */
footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
}

/* TEXTO */
footer p {
  margin-bottom: 15px;
  font-size: 14px;
}

/* CONTENEDOR REDES */
.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* LINKS */
.social a {
  text-decoration: none;
  color: #ccc;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

/* HOVER (CONTACTO VISUAL) */
.social a:hover {
  background: #00AEEF;
  color: white;
}


/* -------------------- FORMULARIO -------------------- */

.formulario-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.formulario-overlay.visible {
  display: flex;
}

.formulario-contenedor {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario-contenedor h2 {
  text-align: center;
}

.formulario-contenedor input,
.formulario-contenedor textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: none;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-agendar-final {
  flex: 1;
  background: #00AEEF;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-cerrar-form {
  flex: 1;
  background: #555;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}



/* -------------------- RESPONSIVE MÓVIL -------------------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }

  .logo-container h1 {
    font-size: 16px;
  }

  .logo {
    width: 42px;
  }

  .header-buttons {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 0;
  }

  .header-buttons button {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 7px;
  }

  #search-input.activo {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }
}