/* =========================
   main.css
   Estilos base (desktop-first)
========================= */

/* Div que envuelve todo el contenido */
.body-wrapper {
  position: relative;
  z-index: 1; /* contenido encima del fondo */
}

/* Fondo con imagen y blur */
.body-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/background.png") no-repeat center center/cover;
  filter: blur(22px); /* ajusta intensidad del blur */
  z-index: -10; /* detrás del contenido */
}

/* Opcional: para que el contenido no se vea demasiado borroso */
body{
  position: relative;
  z-index: 1;
}


/* Variables de colores */
:root {
  --color-primary: #224369;
  --color-primary-blur: #3e5e829b;
  --color-accent: #e79b21;
  --color-light: #f9f9f9;
  --color-light-blur: #f9f9f991;
  --color-dark: #333;
  --color-muted: #666;
  --color-white: #fff;
  --container-width: 1200px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  
}

/* Contenedor general */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--color-primary-blur);
  color: var(--color-white);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 20px;
  position: fixed;
  backdrop-filter: blur(25px);
  width: 100%;
  z-index: 10;
}

header a {
  color: var(--color-white);
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
}

header a:hover {
  text-decoration: underline;
}

.logodiv img {
  height: 8vh;
  width: auto;
}

/* Ocultar el botón hamburguesa en desktop */
.menu-toggle {
    display: none;
}

.logodiv {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Hero */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 6rem 20px 60px 20px;

}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 20px;
  color: var(--color-muted);
}

.hero img {
  max-width: 100%;
  border-radius: 12px;
  height: 50vh;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: #8fb33c;
}

/* Secciones */
section {
  padding: 60px 20px;
}

.bg-light {
  background: var(--color-light-blur);
  backdrop-filter: blur(25px);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

/* Productos como carrusel */
.products-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ccc transparent;
}

/* Ocultar barra en Chrome */
.products-grid::-webkit-scrollbar {
  height: 8px;
}
.products-grid::-webkit-scrollbar-track {
  background: transparent;
}
.products-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.card {
  flex: 0 0 250px; /* ancho fijo de cada ítem */
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  padding: 1rem;
  scroll-snap-align: start;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}


/* ==== Galería ==== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: auto;
  max-height: min-content;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-grid audio {
  width: 100%;
  margin-top: 10px;
}


/* Testimonios */
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.testimonial {
  background: var(--color-light);
  border-left: 5px solid var(--color-primary);
  padding: 20px;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
}

.contact-grid form input,
.contact-grid form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-grid form button {
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background: var(--color-primary-blur);
  color: var(--color-white);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  backdrop-filter: blur(25px);
}

footer a {
  color: var(--color-accent);
  margin-left: 10px;
  text-decoration: none;
}

footer a i {
  font-size: 1.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* ❌ Se eliminan media queries aquí
   ✅ Todas las adaptaciones móviles estarán en responsive.css */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.carousel .card {
  min-width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}

.carousel img {
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* =========================
   Servicios
========================= */
#services {
  padding: 80px 20px;
  background: var(--color-light-blur);
}

#services .container {
  max-width: var(--container-width);
  margin: 0 auto;
}

#services h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
  font-weight: bold;
}

#services p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.services-grid .card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.services-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.services-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.services-grid .p-4 {
  padding: 20px;
}

.services-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.services-grid p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 9;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20b955;
  transform: scale(1.1);
}


/* Popup modal */
.popup {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
