body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f5f0;
  color: #3e2f2f;
}

header.titulo-con-iconos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  padding: 2.5rem 1rem 1rem;
  border-bottom: 2px solid #e6ded5;
  flex-wrap: wrap;
}

.titulo-principal {
  font-family: 'Great Vibes', cursive;
  font-size: 3.6rem;
  color: #5b3d32;
  margin: 0;
}
.icono-titulo {
  max-height: 60px;
  opacity: 0.95;
}

.invertida {
  transform: scaleX(-1);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #7e4c3b;
  text-align: left;
  padding-left: 0.5rem;
}

.section p {
  line-height: 1.7;
  font-size: 1.1rem;
}

.productos-titulo {
  text-align: center;
  width: 100%;
  font-size: 3.2rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: #a25f3d;
  font-family: 'Great Vibes', cursive;
  display: block;
}

.titulo-linea1, .titulo-linea2 {
  display: inline;
}

.titulo-linea1::after {
  content: " ";
  white-space: normal;
}

.productos-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  gap: 2rem;
}

.carousel-wrapper,
.carousel-container {
  width: 700px;
  max-width: 700px;
  max-height: 700px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, #f9f5f0 60%, #e6ded5 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(160, 95, 61, 0.08);
  padding: 1.5rem 0 1rem;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.carousel img {
  width: 100%;
  max-width: 680px;
  height: 420px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(160, 95, 61, 0.13);
  flex: 0 0 100%;
  display: block;
  margin: 0 auto;
  background: linear-gradient(135deg, #f9f5f0 60%, #e6ded5 100%);
}

.carousel-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(160, 95, 61, 0.85);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(160, 95, 61, 0.13);
  pointer-events: none;
  min-width: 220px;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #a25f3d, #d68e6b);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(160, 95, 61, 0.13);
  transition: background 0.2s, transform 0.2s;
}

.carousel-btn:hover {
  opacity: 1;
  background: linear-gradient(45deg, #bf7b59, #a25f3d);
  transform: scale(1.1);
}

.prev {
  left: 18px;
}

.next {
  right: 18px;
}

.botonera {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  background: linear-gradient(45deg, #8e5a3e, #bf7b59);
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: auto;
  max-width: none;
  text-align: center;
}

.button i {
  font-size: 1.2rem;
}

.button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #a25f3d, #d68e6b);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.13);
}

footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background-color: #f1e7df;
  color: #6d5246;
}

.footer-logo {
  max-height: 140px;
  margin-top: 1rem;
  opacity: 0.95;
}

.resaltado { font-weight: bold; }
.resaltado-1 { color: #8e5a3e; }
.resaltado-2 { color: #bf7b59; }
.resaltado-3 { color: #d68e6b; }
.subrayado { text-decoration: underline; }

.frase-final {
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 1.5rem;
  color: #5b3d32;
}

.donde-estamos-card {
  background: linear-gradient(135deg, #f9f5f0 60%, #e6ded5 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(160, 95, 61, 0.08);
  padding: 2rem 1.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donde-estamos-info {
  font-size: 1.18rem;
  margin-bottom: 1.2rem;
  color: #7a4b34;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.donde-estamos-info a {
  color: #a25f3d;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.donde-estamos-info a:hover {
  color: #d68e6b;
  text-decoration: underline;
}

.donde-estamos-mapa {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  display: inline-block;
  margin-bottom: 1rem;
}

.donde-estamos-direccion {
  font-size: 1.08rem;
  color: #5b3d32;
  margin-bottom: 0.7rem;
  text-align: center;
  font-weight: 500;
}

/* Mueve esta sección DENTRO del media query @media (max-width: 768px): */

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.8rem;
    max-width: 100%;
  }
  
  .titulo-principal {
    font-size: 2.2rem;
  }
  
  .icono-titulo {
    max-height: 40px;
    flex-shrink: 0;
  }

  .titulo-con-iconos {
    gap: 0.8rem;
    padding: 1.5rem 1rem 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .section {
    margin-bottom: 2.5rem;
  }

  .section h2 {
    font-size: 1.6rem;
    text-align: center;
    padding-left: 0;
  }

  .productos-titulo {
    font-size: 4rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }

  .titulo-linea1, .titulo-linea2 {
    display: block;
  }

  .titulo-linea1::after {
    content: "";
    white-space: normal;
  }

  /* Carrusel optimizado para móvil */
  .carousel-wrapper,
  .carousel-container {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    margin: 0 -0.8rem;
    padding: 1rem 0.8rem 2rem;
    transform: none;
    position: static;
    left: auto;
    right: auto;
  }

  .carousel {
    min-height: 480px; /* Más alto verticalmente */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel img { 
    max-width: 100%;
    width: 100%;
    height: 480px; /* Más alto verticalmente */
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #bf7b59;
    display: block;
    margin: 0 auto;
  }

  .carousel-caption {
    position: static;
    transform: none;
    margin: 1rem auto 0;
    display: block;
    text-align: center;
    background: rgba(160, 95, 61, 0.95);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 280px;
    width: fit-content;
  }
  
  .carousel-container {
    padding: 1rem 0.8rem 0.5rem;
    position: relative;
  }

  .carousel-btn {
    font-size: 1.6rem;
    padding: 0.3rem 0.7rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(160, 95, 61, 0.9);
    backdrop-filter: blur(4px);
    z-index: 4;
    position: absolute;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Flechas dentro del carrusel */
  .carousel-btn.prev {
    left: 16px;
  }
  .carousel-btn.next {
    right: 16px;
  }

  .carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(160, 95, 61, 1);
  }

  /* Botones de la botonera optimizados para móvil */
  .botonera {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
  }

  .button {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    justify-content: center;
    border-radius: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-sizing: border-box;
  }

  .button i {
    font-size: 1.1rem;
  }

  /* Sección "Dónde estamos" */
  .donde-estamos-card {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    max-width: 100%;
    margin: 0 0.5rem;
  }

  .donde-estamos-info {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .donde-estamos-direccion {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .donde-estamos-mapa {
    width: 100%;
    border-radius: 12px;
  }

  .donde-estamos-mapa iframe {
    width: 100% !important;
    min-width: 100%;
    height: 200px !important;
    border-radius: 12px;
  }

  /* Footer */
  footer {
    padding: 1.5rem 1rem;
  }

  .footer-logo {
    max-height: 100px;
  }

  /* Texto responsive */
  .section p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .frase-final {
    font-size: 1.1rem;
    margin-top: 1.2rem;
  }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .titulo-principal {
    font-size: 1.8rem;
    white-space: nowrap;
    min-width: 0;
  }

  .icono-titulo {
    max-height: 30px;
    flex-shrink: 0;
  }

  .titulo-con-iconos {
    gap: 0.5rem;
    padding: 1.2rem 0.5rem 1rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }

  .carousel {
    min-height: 380px; /* Más alto verticalmente */
  }

  .carousel img {
    height: 380px; /* Más alto verticalmente */
    object-fit: cover;
    object-position: center;
  }

  .carousel-caption {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
  }

  .carousel-btn {
    font-size: 1.4rem;
    width: 38px;
    height: 38px;
  }

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

  .productos-titulo {
    font-size: 3.5rem;
  }

  .titulo-linea1, .titulo-linea2 {
    display: block;
  }

  .titulo-linea1::after {
    content: "";
    white-space: normal;
  }

  .button {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }

  .container {
    padding: 0.8rem 0.5rem;
  }

  .botonera {
    padding: 0 0.2rem;
  }
}

/* Para pantallas extra pequeñas (menos de 360px) */
@media (max-width: 360px) {
  .titulo-principal {
    font-size: 1.5rem;
  }

  .icono-titulo {
    max-height: 25px;
  }

  .titulo-con-iconos {
    gap: 0.3rem;
    padding: 1rem 0.3rem 0.8rem;
  }
}

