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

body, html {
  font-family: 'Lato', sans-serif;
  scroll-behavior: smooth;
  font-weight: 300;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  color: black;
  font-size: 11px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #b0892d;
}

.navbar-center {
  text-align: center;
  flex: 1;
}

.brand {
  font-family: 'Allura', cursive;
  font-size: 60px;
  color: #b0892d;
  text-align: center;
}

.subtitle {
  font-size: 15px;
  letter-spacing: 3px;
  color: #333;
}

.cta-button {
  background-color: #b0892d;
  color: white !important;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #a07b24;
}

/* HERO SECTION */
.hero {
  margin-top: 120px;
  height: 100vh;
  background-image: url('imagenes/fondodecorativo.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  font-size: 58px;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  max-width: 2000px;
  padding: 0 10px;
  text-align: center;
  margin: 0 auto;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
}

.espacio-final {
  height: 30px;
  width: 100%;
}

/* SECCIONES - ESPACIO SUPERIOR */
#nosotros,
#galeria,
#boda-social,
#corporativos,
#tematicos,
#domicilio,
#mesa-quesos {
  padding-top: 120px;
}
#contacto {
  padding-top: 60px;
}
.contacto-contenido {
  margin: 30px auto 40px;
  padding: 40px 20px;
}

/* --- SOLO AJUSTA EN MÓVIL/TABLET --- */
@media (max-width: 900px) {
  #nosotros,
  #galeria,
  #boda-social,
  #corporativos,
  #tematicos,
  #domicilio,
  #mesa-quesos {
    padding-top: 85px !important;
  }
  #contacto {
    padding-top: 40px !important;
  }
  .contacto-contenido {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 98vw;
    margin: 12px auto 20px;
    padding: 15px 5px;
  }
}

/* NOSOTROS */
.nosotros {
  background-color: #f9f9f9;
  text-align: center;
}

.nosotros h2 {
  font-size: 36px;
  color: #b0892d;
  margin-bottom: 20px;
}

.nosotros p {
  max-width: 800px;
  margin: 10px auto;
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}

.clientes {
  margin-top: 50px;
}

.clientes h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #b0892d;
}

.logos-clientes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.logos-clientes img {
  height: 60px;
  object-fit: contain;
}
.imagen-nosotros {
  text-align: center;
  margin: 40px auto;
}

.imagen-nosotros img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* SERVICIOS */
.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  color: #b3882e;
  margin-top: 40px;
}

.servicios-fondo {
  background-image: url('imagenes/servicios.jpeg');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .imagen-banner-servicios img {
    width: 100%;
    height: auto;
  }
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.caja-servicio {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 30%;
  max-width: 30%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 20px;
}

.caja-servicio h3 {
  font-size: 20px;
  margin: 20px 0 20px;
  color: #b0892d;
}

.caja-servicio p {
  font-size: 16px;
  margin: 0;
}

.caja-servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  margin: 0;
  font-size: 16px;
}

.intro-parrafo {
  font-size: 20px;
  color: #3a3a3a;
  font-family: 'Playfair Display', serif;
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.intro-decorativo {
  text-align: center;
  margin-top: 40px;
}

.dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 3px;
  background-color: #b0892d;
  border-radius: 50%;
}

.linea-dorada {
  width: 80px;
  height: 4px;
  background-color: #b0892d;
  margin: 10px auto 20px;
  border-radius: 2px;
}

.grid-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 10px;
}

.img-servicio {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .grid-servicios {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .caja-servicio {
    max-width: 90%;
    min-height: auto;
    margin-bottom: 20px;
  }
  .caja-servicio img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
}

/* Galeria */
.linea-decorativa {
  width: 80px;
  height: 3px;
  background-color: #b3882e;
  margin: 10px auto 40px;
  border-radius: 4px;
}

.galeria-imagenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-descripcion {
  max-width: 800px;
  margin: 20px auto;
  font-size: 18px;
  color: #333;
  text-align: center;
  padding: 0 20px;
}

.galeria-imagenes img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-imagenes img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Contáctanos */
.contacto-info {
  flex: 1;
  min-width: 280px;
  font-family: 'Lato', sans-serif;
  color: #003c1e;
}

.contacto-info h2 {
  font-size: 72px;
  margin-bottom: 10px;
  color: #b0892d;
}

.contacto-formulario {
  flex: 1;
  min-width: 300px;
}

.contacto-formulario form {
 display: flex;
  flex-direction: column;   /* Esto hace que los campos vayan uno debajo de otro */
  gap: 15px;
}

.form-group-doble input {
  flex: 1;
}

.contacto-formulario input,
.contacto-formulario select,
.contacto-formulario textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Lato', sans-serif;
}

.contacto-formulario button {
  padding: 12px;
  background-color: #b4882f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.contacto-formulario label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: -10px;
  margin-top: 5px;
  color: #003c1e;
  font-family: 'Lato', sans-serif;
}

.redes-sociales {
  margin-top: 20px;
}

.redes-sociales a {
  font-size: 24px;
  color: #333;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.redes-sociales a:hover {
  color: #b48d31;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  z-index: 2000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
  text-align: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe5b;
}

/* Estilo por defecto: campos en fila */
.form-group-doble {
  display: flex;
  gap: 15px;
  flex-direction: row;
}

/* En pantallas pequeñas: apilar los campos */
@media (max-width: 600px) {
  .form-group-doble {
    flex-direction: column;
  }
}

/* Estilo para imagen ampliada */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.modal #close-modal {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 40px;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

#prev-img {
  left: 30px;
}

#next-img {
  right: 30px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.lightbox-nav span {
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* ===== MENÚ HAMBURGUESA ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 2001;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  width: 36px;   
  height: 36px;
}
.hamburger:active,
.hamburger:focus,
.hamburger:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #a07b24;
}

.hamburger svg {
  width: 30px;   
  height: 30px;
  display: block;
}

.hamburger svg rect {
  height: 2.2px;    
  rx: 1.2;
  fill: #b0892d;   
  transition: fill 0.2s;
}

/* SOLO en móvil: mostrar solo hamburguesa */
@media (max-width: 900px) {
  .nav-left, .nav-right { display: none !important; }
  .hamburger { display: block !important; }
  .navbar {
    padding: 8px 10px !important;     
    min-height: 60px !important;      
  }
  .brand {
    font-size: 36px !important;      
  }
  .subtitle {
    font-size: 12px !important;      
    letter-spacing: 1px;
  }
  .hero {
    margin-top: 75px !important;    
  }
}

/* Desktop: navbar visible, hamburger oculto */
@media (min-width: 901px) {
  .mobile-menu, .hamburger { display: none !important; }
  .nav-left, .nav-right { display: flex !important; }
}

/* ===== MENÚ MÓVIL DESLIZANTE ===== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  background: white;
  width: 78vw;
  height: 100vh;
  z-index: 2000;
  box-shadow: -2px 0 12px rgba(0,0,0,0.08);
  padding: 80px 25px 25px 25px;

  /* Para animación */
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.65,.05,.32,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}

/* Fondo semi-transparente al abrir menú */
.menu-backdrop {
  display: none;
  position: fixed;
  z-index: 1999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.12);
  animation: fadein 0.38s;
}
.menu-backdrop.active {
  display: block;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Letras igual al menú desktop */
.mobile-menu a {
  color: #b0892d;
  font-family: 'Quicksand', 'Lato', sans-serif;
  font-size: 1.18em;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  transition: color 0.2s;
  text-transform: uppercase;
  margin: 14px 0;
  text-align: center;
  display: block;
}

.mobile-menu a:hover {
  color: #a07b24;
  letter-spacing: 3px;
}

/* Botón Contáctanos centrado y destacado */
.mobile-menu .cta-button {
  display: block;
  margin: 28px auto 0 auto;
  text-align: center;
  font-size: 1.12em;
  border-radius: 30px;
  padding: 13px 38px;
  font-weight: bold;
  background-color: #b0892d;
  color: #fff !important;
  letter-spacing: 2px;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(176,137,45,0.08);
  text-transform: uppercase;
  border: none;
  transition: background 0.2s;
}
.mobile-menu .cta-button:hover {
  background: #a07b24;
}

/* Lista sin viñetas para menú móvil */
.mobile-menu ul, .mobile-menu li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Ajuste tamaño texto HERO en móvil */
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.6em !important;     
    line-height: 1.25;
    padding: 0 10px !important;      
    text-align: center;
    white-space: normal;
    max-width: 100vw;
    font-weight: 700;
    letter-spacing: 1px;
    word-break: break-word;         
    margin: 0 auto !important;
  }
}

/* Títulos sección (Nosotros, Galería, Contacto...) responsive */
@media (max-width: 600px) {
  #contacto h2,
  #boda-social .titulo-seccion,
  #corporativos .titulo-seccion,
  #tematicos .titulo-seccion,
  #galeria .titulo-seccion,
  .nosotros h2 {
    font-size: 2.1em !important;
    text-align: center !important;
    line-height: 1.15;
    padding: 0 8px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 900px) {
  .nosotros h2,
  #boda-social h2,
  #corporativos h2,
  #tematicos h2,
  #galeria h2,
  #contacto h2 {
    font-size: 2.1em !important;
    word-break: break-word;
  }
  /* Párrafos y textos */
  .nosotros p,
  #boda-social p,
  #corporativos p,
  #tematicos p,
  #galeria p,
  #contacto p,
  .intro-parrafo {
    font-size: 1em !important;
    line-height: 1.6;
    padding: 0 10px;
  }
}

/* Unifica formato de texto para todas las secciones */
#boda-social p,
#corporativos p,
#tematicos p,
#domicilio p,
#mesa-quesos p,
#galeria .galeria-descripcion p,
.nosotros p {
  max-width: 800px;
  margin: 10px auto;
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  text-align: center;
  padding: 0 20px;
  font-family: 'Lato', sans-serif;
}

/* Contenedor principal: Info y Formulario uno al lado del otro (en desktop) */
.contacto-contenido {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;           /* Para que baje en móvil */
  gap: 60px;
  max-width: 1100px;
  margin: 90px auto 40px;
  padding: 40px 20px;
}

/* Lado izquierdo: info */
.contacto-info {
  flex: 1 1 280px;
  min-width: 280px;
  max-width: 420px; /* Limita ancho máximo */
}

/* Lado derecho: formulario */
.contacto-formulario {
  flex: 1 1 300px;
  min-width: 300px;
  max-width: 540px; /* Limita ancho máximo */
}

/* El formulario en columna SIEMPRE */
.contacto-formulario form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* En móvil: que se apilen uno debajo del otro */
@media (max-width: 900px) {
  .contacto-contenido {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    margin: 60px auto 20px;
    padding: 20px 5px;
  }
  .contacto-info,
  .contacto-formulario {
    max-width: 100%;
    min-width: 0;
  }
}

/* Solo afecta galería en móviles/tablet */
@media (max-width: 900px) {
  .galeria-imagenes {
    grid-template-columns: 1fr !important; /* Una sola columna */
    gap: 16px !important;
    padding: 0 10px 30px !important;
  }

  .galeria-imagenes img {
    width: 100% !important;
    height: auto !important;         /* ¡Clave! Ajusta la altura según el ancho */
    max-height: 320px !important;    /* Puedes ajustar esto si quieres que nunca sean muy altas */
    object-fit: cover !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.11) !important;
    display: block;
    margin: 0 auto;
  }
}   

@media (max-width: 900px) {
  .grid-servicios {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  .caja-servicio {
    min-width: 70vw !important;   /* Hace las cajas más anchas */
    max-width: 85vw !important;
    min-height: 260px !important; /* Menos altas */
    height: auto !important;
    padding: 10px 8px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 22px rgba(0,0,0,0.07);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .caja-servicio img {
    width: 95% !important;
    max-width: 240px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 10px;
  }
  .caja-servicio h3 {
    font-size: 22px !important;
    margin: 14px 0 8px 0 !important;
  }
  .caja-servicio p {
    font-size: 18px !important;
    margin: 0 !important;
  }
}

.imagen-banner-servicios {
  position: relative;
  width: 100%;
  height: 680px; /* ajusta este valor según el alto que quieras */
  overflow: hidden;
}

.imagen-banner-servicios .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imagen-banner-servicios .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); /* opacidad del overlay */
  z-index: 2;
}