@font-face {
  font-family: 'Dreaming Script';
  src: url('../css/dreaming-script.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Cheese Potato';
  src: url('../css/cheese-potato.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Script';
  src: url('../css/script.woff2') format('woff2');
  font-display: swap;
}


/* 1) Dreaming Script en todo el sitio */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Dreaming Script', cursive;
}

/* cheese potato */
body,
p,
a,
h6,
li,
span,
div {
  font-family: 'Cheese Potato', cursive;
  font-size: 1.3rem;
}

/* 2) Script sólo para la marca de la navbar */
.navbar-brand {
  font-family: 'Script', cursive !important;
  font-size: 3rem !important;
  font-weight: 100 !important;
  letter-spacing: 0.1em;
  margin-right: 0.5rem;
}

/* 3) Corrección de line-clamp */
.card-text {
  min-height: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Variables para tema café */
:root {
  --primary-color: #5d4037;
  /* Café oscuro */
  --secondary-color: #8d6e63;
  /* Café medio */
  --accent-color: #d7ccc8;
  /* Café claro */
  --light-color: #efebe9;
  /* Beige muy claro */
  --dark-color: #3e2723;
  /* Café muy oscuro */
  --text-color: #4e342e;
  /* Café para texto */
  --card-bg: #fff;
  --transition: all 0.4s ease;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: rgba(62, 39, 35, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

/* Header */
.header {
  background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(93, 64, 55, 0.7)),
    url("../img/fondo.webp") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 15px;
  position: relative;
  overflow: hidden;
}

[data-aos] {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  will-change: transform, opacity;
}


@media (max-width: 768px) {
  .header {
    background-attachment: scroll !important;
  }
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }

  100% {
    opacity: 0.2;
    transform: scale(1.05);
  }
}

.header h1 {
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.header p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-btn {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Secciones */
.section {
  padding: 100px 0;
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Productos */
.productos {
  background-color: #f8f4f1;
}

.productos .card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: var(--card-bg);
}

.productos .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(62, 39, 35, 0.2);
}

.productos .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.productos .card:hover .card-img-top {
  transform: scale(1);
}

.productos .card-body {
  padding: 25px;
}

.productos .card-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.productos .card-text {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 20px;
}

/* Botón para desplegar menú de detalles */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(93, 64, 55, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.card:hover .product-overlay {
  opacity: 1;
}

.collapse-content {
  padding: 20px;
  background-color: #f8f4f1;
  border-radius: 10px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 0 15px 15px;
}

.presentacion-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #d7ccc8;
}

.presentacion-item:last-child {
  border-bottom: none;
}

.precio {
  font-weight: 700;
  color: var(--primary-color);
}

/* Beneficios */
.beneficios {
  background: linear-gradient(rgba(62, 39, 35, 0.05), rgba(93, 64, 55, 0.05));
}

.beneficio-item {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.beneficio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(62, 39, 35, 0.2);
}

.beneficio-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Testimonios */
.testimonial {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(62, 39, 35, 0.2);
}

.testimonial-rating {
  color: #ffb74d;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Sección de Contacto */
.contacto {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.contacto .section-title h2 {
  color: #fff;
}

.contacto .section-title::after {
  background: #fff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-icons a {
  font-size: 2rem;
  color: #fff;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Formulario de contacto */
.floating-label {
  position: relative;
  margin-bottom: 20px;
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  transition: var(--transition);
}

.floating-label input::placeholder,
.floating-label textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.floating-label input:focus,
.floating-label textarea:focus {
  border-color: #fff;
  outline: none;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 50px 0 20px;
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: #fff;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links h5 {
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.btn-outline-light {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-outline-light:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

/* Estilos para los botones de tabs de productos con mejor contraste */
#productosTab .nav-link {
  background-color: #ffffff;
  color: #2e1d18;
  border: 2px solid #2e1d18;
  border-radius: 30px;
  font-weight: 600;
  padding: 10px 30px;
  margin: 0 10px;
  transition: var(--transition);
}

#productosTab .nav-link:hover {
  background-color: #2e1d18;
  color: #fff;
  transform: translateY(-3px);
}

#productosTab .nav-link.active {
  background-color: #2e1d18;
  color: #fff;
  box-shadow: 0 5px 15px rgba(93, 64, 55, 0.3);
}

/* Mejorar estilo del botón de consulta */
.consultarBtn {
  padding: 10px 20px;
  border-radius: 30px;
  transition: var(--transition);
  width: 100%;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.consultarBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  background-color: var(--dark-color) !important;
  color: #fff !important;
}

/* Mejorar estilos de tarjetas */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(62, 39, 35, 0.2);
}

/* Mejorar los estilos del formulario de contacto */
.floating-label input:focus,
.floating-label textarea:focus {
  border-color: #fff;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Estilos para la sección de galería */
.galeria {
  background: linear-gradient(rgba(62, 39, 35, 0.05), rgba(93, 64, 55, 0.05));
}

/* Estilos para las imágenes del carrusel */
.gallery-img {
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Estilos para las miniaturas */
.gallery-thumbnails {
  display: flex;
  justify-content: center;
}

.gallery-thumb {
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.gallery-thumb.active {
  border-color: var(--primary-color);
  opacity: 1;
}

/* Estilos para los textos del carrusel */
.carousel-caption {
  background: rgba(62, 39, 35, 0.7);
  border-radius: 8px;
  padding: 15px;
  bottom: 20px;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Mejoras para los controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(62, 39, 35, 0.7);
  border-radius: 50%;
  padding: 15px;
}

/* Mejoras para los indicadores del carrusel */
.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
}

/* Animación para el carrusel */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.carousel-item.active {
  animation: fadeIn 1s;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
  .gallery-img {
    height: 300px;
  }

  .gallery-thumb {
    height: 50px;
  }

  .carousel-caption {
    position: relative;
    background: #f8f4f1;
    color: var(--primary-color);
    border-radius: 0 0 15px 15px;
    margin-top: -5px;
    display: block !important;
  }
}

/* Botones nav-pills grises por defecto */
#productosTab .nav-link:not(.active):not(:hover) {
  background-color: #c4c3c1 !important;
  /* gris claro */
  color: #ffffff !important;
  /* texto oscuro para contraste */
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 25px;
}

.whatsapp-float i {
  font-size: 20px;
  margin-right: 12px;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  background-color: #20ba5a;
}

/* Responsive para móviles */
@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 25px;
    right: 25px;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float a {
    padding: 16px;
    border-radius: 50%;
  }

  .whatsapp-float i {
    margin-right: 0;
    font-size: 28px;
  }
}

/* Correcciones específicas SOLO para dispositivos móviles */
@media (max-width: 992px) {
  /* Corrección para el navbar en dispositivos móviles */
  .navbar {
    background-color: rgba(62, 39, 35, 0.95);
    width: 100%;  /* Asegurar que ocupe todo el ancho */
    left: 0;      /* Alinear correctamente desde la izquierda */
    z-index: 1030; /* Asegurar que esté por encima de otros elementos */
    max-width: 100vw; /* Limitar al ancho del viewport */
  }
  
  /* Arreglar icono toggler para evitar superposición */
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
  }
  
  .navbar-toggler-icon {
    background-image: none !important; /* Eliminar icono de fondo predeterminado */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-toggler i.fas.fa-bars {
    font-size: 1.5rem; /* Tamaño del icono */
    color: #fff !important; /* Color del icono */
  }
  
  /* Aumentar tamaño de texto en el navbar */
  .nav-link {
    font-size: 1.2rem !important; /* Texto más grande para el menú */
    padding: 0.8rem 0 !important; /* Más espacio vertical */
    font-weight: 600 !important;
  }
  
  .navbar-nav {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Fix para el espacio entre elementos del navbar colapsado */
  .navbar-collapse {
    padding-top: 0.5rem;
  }
  
  /* Evitar problemas con zoom */
  body {
    touch-action: pan-y; /* Permitir scroll vertical pero restringir el horizontal */
    overflow-x: hidden;
  }
  
  html {
    overflow-x: hidden;
  }
  
  /* Mejorar la visibilidad de los elementos de navegación */
  .nav-item {
    position: relative;
  }
}

/* Esto solo se aplica cuando el viewport es muy pequeño (teléfonos) */
@media (max-width: 576px) {
  body, html {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .carousel-item img {
    max-height: 300px;
    object-fit: cover;
  }
}

/* Estilos para los iconos SVG */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: -0.125em;
}

.icon-star {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: #FFD700; /* Color dorado para las estrellas */
  vertical-align: -0.125em;
}

.icon-contact {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: -0.25em;
}

.icon-social {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: -0.25em;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.icon-social:hover {
  transform: scale(1.2);
  fill: var(--primary-color);
}

.icon-whatsapp {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: -0.25em;
}

/* Asegurarnos de que el contenedor de SVG sea visible */
.svg-container {
  display: block;
  width: 0;
  height: 0;
}

/* Optimización para mostrar iconos mientras se cargan */
svg {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* Para iconos que se están cargando */
svg.loading {
  opacity: 0;
}