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

/* ===== PALETA ===== */
:root {
  --fondo: #F3E8D3;
  --marron: #4C3423;
  --marron-claro: #6B4A30;
  --blanco: #ffffff;
  --sombra: rgba(0, 0, 0, 0.12);
}

/* ===== BODY ===== */
body {
  background: var(--fondo);
  font-family: 'Poppins', sans-serif;
  color: var(--marron);
}

/* ===== NAV ===== */
nav {
  width: 100%;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--marron);
  background: var(--fondo);
  position: sticky;
  top: 0;
  z-index: 99;
}

nav img { height: 55px; }

nav a {
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  color: var(--marron);
  transition: 0.2s;
}

nav a:hover { color: var(--marron-claro); }

/* ===== HERO ===== */
.hero {
  height: 300px;
  background: url("https://images.pexels.com/photos/271743/pexels-photo-271743.jpeg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  background: rgba(255,255,255,0.5);
  width: fit-content;
  margin: auto;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 2.5rem;
  font-weight: 700;
}

.hero p {
  margin-top: 15px;
  font-size: 1.2rem;
}


/* ===== SECCIONES ===== */
section {
  width: 95%;
  max-width: 1100px;
  margin: 40px auto;
}

/* TITULOS */
h2 {
  text-align: left;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--marron);
  border-left: 5px solid var(--marron);
  padding-left: 10px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

/* ===== CARD ===== */
.card {
  background: var(--blanco);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e8dccc;
  text-align: left;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

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

.card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marron);
}


/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 25px;
  margin-top: 40px;
  opacity: 0.8;
}



/* ===== HERO INTERNO ===== */
.hero-interno {
  height: 180px;
  background: var(--fondo);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid var(--marron);
}

.hero-interno h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--marron);
}

/* ===== GALERÍA ===== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 25px;
}

.item {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 3px 10px var(--sombra);
  text-align: center;
  transition: 0.3s;
}

.item:hover {
  transform: translateY(-4px);
}

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

.item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--marron);
}

.btn-add {
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--marron);
  color: var(--blanco);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.btn-add:hover {
  background: var(--marron-claro);
}
/* ===== POPUP ZOOM ===== */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup img {
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: smoothFade 0.2s ease-in-out;
}

/* Animación suave */
@keyframes smoothFade {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Mini-fotos clickeables */
.zoom {
  cursor: pointer;
  transition: 0.2s;
}

.zoom:hover {
  transform: scale(1.07);
}

/* Carrusel */
.swiper {
    width: 100%;
    max-width: 750px;
    height: 420px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.descripcion {
    margin-top: 25px;
    background: #ffffffc9;
    padding: 20px;
    border-radius: 10px;
}

/* Botón WhatsApp elegante */
.whatsapp-float {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 18px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.2s;
}

.whatsapp-float:hover {
    background: #1ebe57;
}
/* ===== CARRUSEL AJUSTADO ===== */
.carousel {
    position: relative;
    max-width: 450px;   /* tamaño más chico */
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    height: 280px;   /* ajusta el alto */
    object-fit: cover;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 22px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}/* ===== Carrusel optimizado ===== */
.mySwiper {
    width: 100%;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mySwiper .swiper-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== ESTILO PAGINA DE PRODUCTO ===== */
.producto-container {
    width: 95%;
    max-width: 1100px;
    margin: 40px auto;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--marron);
    font-weight: 700;
}

.descripcion {
    background: var(--blanco);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.descripcion p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.descripcion ul {
    padding-left: 20px;
}

.descripcion li {
    margin-bottom: 8px;
}

/* Imagenes del carrusel */
.gallery-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-container img {
    width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* Botón WhatsApp */
.whatsapp-float {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}


