:root {
  --c-yellow: #FFBC0D;
  --c-yellow-hover: #E5A80C;
  --c-brown: #6A4A25;
  --c-brown-hover: #52381B;
  --c-gray-hero: #848484;
  --c-gray-accent: #6C6C6C;
  --bg-main: #FFFFFF;
  --bg-card: #FAF9F6;
  --text-main: #111111;
  --text-sec: #555555;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* BARRA NAVEGACIÓN */
.header-nav {
  background: #FFFFFF;
  border-bottom: 1px solid #ECECEC;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}
.brand-logo-link img {
  height: 64px;
  width: auto;
}
.back-btn {
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--c-yellow-hover); }

/* BOTÓN CARRITO FLOTANTE */
.floating-cart-btn {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 99;
  background-color: var(--c-brown);
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  padding: 12px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease;
}
.floating-cart-btn:hover { background-color: var(--c-brown-hover); }
.cart-badge {
  background: var(--c-yellow);
  color: #111111;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 900;
}

/* LAYOUT PRODUCTO MAIN */
.product-main-section { padding: 40px 0 30px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 25px; }
}

.product-main-img-box {
  width: 100%;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid #ECECEC;
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}
.product-main-img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* BOTÓN DE PLAY VIDEO YOUTUBE */
.play-video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--c-brown);
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}
.play-video-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--c-yellow);
  color: #111111;
}
.play-video-btn svg { margin-left: 4px; }

.badge-method {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.badge-bake { background: #6A4A25; color: #FFFFFF; }
.top-right-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
}

.yellow-top-line {
  width: 55px;
  height: 5px;
  background-color: var(--c-yellow);
  border-radius: 3px;
  margin-bottom: 12px;
}

.product-title-main {
  font-size: clamp(2.2rem, 3.8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 14px;
}

.price-box-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 25px;
}
.price-main-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
}
.price-sub-info {
  font-size: 0.9rem;
  color: var(--text-sec);
}

.add-cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #DDD;
  border-radius: 30px;
  padding: 4px 12px;
  background: #FFF;
}
.qty-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 10px;
}
.qty-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0 8px;
}

.btn-brown-lg {
  flex: 1;
  background-color: var(--c-brown);
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  text-align: center;
}
.btn-brown-lg:hover { background-color: var(--c-brown-hover); }

/* BLOQUES CLEAN Y GRID DE CONTENIDO */
.clean-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 40px 0 60px;
}
@media (max-width: 768px) {
  .clean-content-grid { grid-template-columns: 1fr; }
}

.clean-block-card {
  background: var(--bg-card);
  border: 1px solid #ECECEC;
  border-radius: 18px;
  padding: 24px;
}

.block-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 4px;
  display: inline-block;
}

.block-text {
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.65;
}

.step-by-step-list {
  margin-left: 20px;
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.8;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.88rem;
}
.nutrition-table th, .nutrition-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #EAEAEA;
}
.nutrition-table th { text-align: left; color: var(--text-sec); font-weight: 600; }
.nutrition-table td { text-align: right; font-weight: 700; color: var(--text-main); }

/* CARRUSEL DE OTROS PRODUCTOS */
.related-products-section {
  padding: 50px 0 70px;
  border-top: 1px solid #ECECEC;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-card {
  min-width: 250px;
  max-width: 250px;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
}
.carousel-card:hover { transform: translateY(-5px); }
.carousel-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.carousel-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.carousel-nav-btn {
  background: var(--c-brown);
  color: #FFF;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  flex-shrink: 0;
}
.carousel-nav-btn:hover { background: var(--c-brown-hover); }

/* OVERLAY Y MODALES */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 90;
  display: none;
}
.overlay.active { display: block; }

.cart-drawer {
  position: fixed;
  top: 60px;
  right: 25px;
  width: 100%;
  max-width: 440px;
  max-height: 60vh;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid #ECECEC;
}
.cart-drawer.open { opacity: 1; visibility: visible; top: 80px; }
.cart-header { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ECECEC; }
.cart-body { padding: 16px 24px; flex: 1; overflow-y: auto; }
.cart-footer { padding: 18px 24px; background: var(--bg-card); border-top: 1px solid #ECECEC; border-radius: 0 0 20px 20px; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-sec); }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #EAEAEA; }
.btn-qty { background: #E5E7EB; border: none; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; cursor: pointer; }
.btn-qty:hover { background: var(--c-yellow); }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--bg-main);
  width: 90%;
  max-width: 680px;
  border-radius: 20px;
  z-index: 101;
  display: none;
}
.modal.active { display: block; transform: translate(-50%, -50%) scale(1); }
.modal-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); border-radius: 20px 20px 0 0; }
.modal-body { padding: 24px; max-height: 75vh; overflow-y: auto; }

/* MODAL DE VIDEO YOUTUBE */
.video-modal-body {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}
.video-modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER IDENTICO AL PRINCIPAL */
footer {
  background: var(--c-gray-accent);
  color: #FFFFFF;
  padding: 50px 0 35px;
  margin-top: 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
}

.footer-legal-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  font-size: 0.88rem;
}
.footer-legal-2x2 a {
  color: #E0E0E0;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-legal-2x2 a:hover { color: var(--c-yellow); }

.csr-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
@media (max-width: 768px) {
  .csr-block { align-items: flex-start; text-align: left; }
}

.csr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.csr-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.csr-desc {
  font-size: 0.88rem;
  color: #D1D5DB;
  margin-bottom: 10px;
}

.csr-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.csr-link-btn:hover {
  background: var(--c-yellow);
  color: #111111;
  transform: translateY(-2px);
}

.social-link {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.product-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb-btn {
width: 84px; height: 84px; padding: 0;
border: 2px solid #ECECEC; border-radius: 14px;
overflow: hidden; background: var(--bg-card);
cursor: pointer; transition: border-color 0.2s;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn.is-active, .thumb-btn:hover { border-color: var(--c-brown); }
.frozen-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-gray-accent);
  letter-spacing: 0.2px;
  margin: 2px 0 16px;
}
.frozen-badge::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-yellow);
  flex-shrink: 0;
}
.carousel-add-btn {
  width: 100%;
  padding: 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
  background-color: var(--c-brown);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.carousel-add-btn:hover { background-color: var(--c-brown-hover); }
.carousel-container { padding-bottom: 6px; }

/* =========================================
   NUEVO ESTILO DE MENÚ SUPERIOR FOOTER
========================================= */
.footer-menu-link {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; /* Letra negrita */
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-menu-link:hover {
  color: var(--c-yellow);
}

/* =========================================
   SECCIÓN AMARILLA DE RESEÑAS (COMPACTA)
========================================= */
.reviews-section {
  background-color: var(--c-yellow);
  padding: 35px 0;
  margin-top: 30px;
}

.reviews-header {
  text-align: center;
  margin-bottom: 25px;
}

.reviews-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #111111;
  margin-bottom: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.review-stars {
  color: #FFBC0D;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.55;
  flex-grow: 1;
}

.review-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}
