/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #2b2b2b;
  background-color: #f5f7f6; /* claro tipo montaña */
}

/* =========================
   UTILIDADES
========================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2 {
  font-weight: 700;
}

h2 {
  margin-bottom: 1rem;
  color: #3a3a3a;
}

/* =========================
   HEADER
========================= */
.header {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}


.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.nav a:hover {
  color: #6b1f2b; /* malbec */
}

.titulo-principal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  color: #6b1f2b; /* tono malbec */
}

.icono-titulo {
  width: 40px;
  height: auto;
}


/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Carrusel */
.hero-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* 🔥 centra la imagen */
  opacity: 0;
  transition: opacity 1s ease;
}


.hero-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-carousel img.active {
  opacity: 1;
}

/* Capa clara encima para que se lea el texto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 246, 0.75); /* efecto montaña claro */
}

/* Contenido encima del carrusel */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 900px;
}


/* =========================
   BOTONES
========================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.3rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #6b1f2b;
  color: #6b1f2b;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #6b1f2b;
  color: #ffffff;
}

.btn-primary {
  background-color: #6b1f2b;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4f1620; /* más oscuro, tipo vino */
  border-color: #4f1620;
}

/* =========================
   SECCIONES
========================= */
section {
  padding: 4rem 0;
}


/* ==========================
  SERVICIOS
  =========================== */

.servicios {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f6f2ee, #ffffff);
  text-align: center;
}

.servicios h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.servicios-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #555;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.servicio-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.servicio-icono {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.servicio-card h3 {
  margin-bottom: 8px;
  color: #7b1e2b; /* tono vino */
}

.servicio-card p {
  color: #555;
  font-size: 0.95rem;
}
/* =========================
   ELEGIRNOS
========================= */

.porque-elegirnos {
  padding: 80px 20px;
  background: #faf7f4;
  text-align: center;
}

.porque-elegirnos h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.porque-intro {
  max-width: 650px;
  margin: 0 auto 40px;
  color: #555;
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.porque-item {
  background: #fff;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.porque-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.porque-icono {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
}

.porque-item h3 {
  color: #7b1e2b; /* tono vino */
  margin-bottom: 8px;
}

.porque-item p {
  color: #555;
  font-size: 0.95rem;
}

/* CTA */
.porque-cta {
  margin-top: 20px;
}

.btn-reserva {
  display: inline-block;
  background: #7b1e2b;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-reserva:hover {
  background: #5f1621;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* =========================
   GALERÍA
========================= */
.galeria {
  background-color: #ffffff;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.galeria-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

/* =========================
   NOSOTROS
========================= */
.nosotros {
  padding: 80px 20px;
  background: #ffffff;
}

.nosotros-contenido {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.nosotros-imagen img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.nosotros-texto h1 {
  margin-bottom: 20px;
  color: #7b1e2b; /* tono vino */
}

.nosotros-texto p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.nosotros-valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.valor {
  background: #faf7f4;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.nosotros-cierre {
  font-weight: bold;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros-contenido {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


/* =========================
   CONTACTO
========================= */
.contacto {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contacto-intro {
  color: #555;
  margin-bottom: 30px;
}

.contacto-cta {
  margin-bottom: 40px;
}

.btn-whatsapp {
  display: inline-block;
  background: #7b1e2b; /* color vino */
  color: #fff;
  padding: 16px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-whatsapp:hover {
  background: #5f1621; /* vino más oscuro al hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


.contacto-nota {
  margin-top: 10px;
  color: #666;
}

.contacto-info {
  display: grid;
  gap: 10px;
  margin-bottom: 50px;
  color: #555;
}

.contacto-formulario {
  margin-bottom: 50px;
}

.contacto-formulario form {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.contacto-formulario input,
.contacto-formulario textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contacto-formulario button {
  background: #7b1e2b;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 20px;
  cursor: pointer;
}

.form-mensaje {
  margin-top: 15px;
  font-weight: bold;
}
.form-mensaje.ok {
  color: #2e7d32; /* verde suave */
}
.form-mensaje.error {
  color: #b71c1c; /* rojo */
}


.contacto-faq {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-item p {
  color: #555;
  margin-top: 5px;
}


/* =========================
   FOOTER
========================= */
.footer {
  background-color: #2b2b2b; /* oscuro tipo madera/vino */
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
  }

  .nav ul {
    gap: 0.6rem;
  }
}

/* =========================
   LIGHTBOX GALERÍA
========================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  padding: 0 15px;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ddd;
}

/* =========================
   ANIMACIONES LIGHTBOX
========================= */
.lightbox img {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Estados de animación */
.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
}

.slide-in-left {
  transform: translateX(-100%);
  opacity: 0;
}

.slide-active {
  transform: translateX(0);
  opacity: 1;
}

/* =========================
   MENÚ RESPONSIVE (MOBILE)
========================= */

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b1f2b; /* malbec */
}

/* Estado normal (desktop) */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    display: none; /* oculto por defecto */
  }

  .nav ul.active {
    display: flex; /* se muestra al tocar el botón */
  }

  .nav ul li {
    margin-bottom: 0.5rem;
  }
}

/* =========================
   ANIMACIONES AL SCROLL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animación boton */
a, button {
  transition: all 0.3s ease;
}

a:hover, button:hover {
  transform: translateY(-2px);
}
