/* ==========================================================================
   Panificadora Torres S.A.C. - Hoja de Estilos Optimizada
   ========================================================================== */

@font-face {
  font-family: "Poppins-SemiBold";
  src: url("../assets/fonts/poppins-semibold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir-Light";
  src: url("../assets/fonts/avenir-light.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir-Heavy";
  src: url("../assets/fonts/avenir-heavy.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-dark: rgb(1, 66, 30);
  --green-main: rgb(0, 101, 46);
  --green-brand: rgb(0, 101, 46);
  --red-accent: rgb(235, 20, 20);
  --yellow-torrino: rgb(255, 202, 0);
  --circle-beige: rgba(253, 184, 39, 0.3);
  --border-grey: rgb(177, 177, 177);
  --card-border: rgb(204, 204, 204);
  --search-bg: rgb(246, 246, 246);
  --text-dark: #111111;
  --font-heading: "Poppins-SemiBold", "Poppins", sans-serif;
  --font-body: "Avenir-Light", "Avenir", Helvetica, Arial, sans-serif;
  --font-heavy: "Avenir-Heavy", "Avenir", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: #000000;
  background-color: #ffffff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

.underline-link {
  text-decoration: underline;
}

/* ==========================================================================
   1. HEADER (Top Bar + Main Green Bar + White Nav Bar)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #ffffff;
}

/* Top Bar (42px) */
.top-bar {
  width: 100%;
  height: 42px;
  background-color: var(--green-dark);
  color: #ffffff;
}

.top-bar-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 69px 0 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.top-links a:hover {
  opacity: 0.85;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 4px 0;
}

.login-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-avatar svg {
  width: 26px;
  height: 26px;
}

/* Main Green Header (115px) */
.header-main {
  width: 100%;
  height: 115px;
  background-color: var(--green-main);
}

.header-main-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 53px 0 71px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo {
  width: 115px;
  height: 95px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo svg,
.brand-logo img {
  width: 115px;
  height: 95px;
}

/* Search Box */
.search-container {
  position: relative;
  width: 526px;
  max-width: 100%;
}

.search-form {
  width: 100%;
  height: 43px;
  background-color: var(--search-bg);
  border: 1px solid #ffffff;
  border-radius: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 16px 0 22px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #000000;
  outline: none;
}

.search-input::placeholder {
  color: #333333;
}

.search-submit {
  width: 46px;
  height: 41px;
  background-color: var(--green-main);
  border: none;
  border-radius: 0 40px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.search-submit:hover {
  filter: brightness(1.1);
}

.search-submit svg {
  width: 14px;
  height: 14px;
}

/* Live Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #e5e5e5;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

.search-result-item:hover {
  background-color: #f7faf8;
}

.search-result-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-left img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #fafafa;
}

.search-result-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: #000;
}

.search-result-price {
  font-family: var(--font-heavy);
  font-size: 14px;
  color: var(--red-accent);
}

/* Right Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-icon-link {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease;
}

.header-icon-link:hover {
  transform: scale(1.06);
}

.icon-pin svg {
  width: 20px;
  height: 24px;
}

.icon-heart svg,
.header-icons a[aria-label="Lista de deseos"] svg {
  width: 22px;
  height: 20px;
}

.icon-cart svg {
  width: 49px;
  height: 20px;
}

/* White Navigation Bar (56px) - Animated Hover & Active States */
.header-nav-bar {
  width: 100%;
  height: 56px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 101, 46, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 20;
}

.main-nav {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border-radius: 999px;
  position: relative;
  white-space: nowrap;
  z-index: 2;
  transition:
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover {
  color: var(--green-main);
  background-color: rgba(0, 101, 46, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 101, 46, 0.12);
}

/* Selected / Active Menu Item */
@keyframes navPillGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(0, 101, 46, 0.28);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 101, 46, 0.42);
  }
}

.main-nav a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgb(0, 101, 46) 0%, rgb(8, 148, 76) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 101, 46, 0.3);
  animation: navPillGlow 3s ease-in-out infinite;
}

/* Dynamic Sliding Magic Line under .main-nav */
.nav-magic-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green-main), #08944c, var(--yellow-torrino));
  border-radius: 3px 3px 0 0;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  z-index: 3;
}

/* ==========================================================================
   2. HERO BANNER CAROUSEL
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 504px;
  overflow: hidden;
  background-color: #d7b899;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
  object-position: center center;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 10;
}

.hero-carousel:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(0, 101, 46, 0.85);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-carousel:hover .hero-dots {
  opacity: 1;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active {
  background: var(--green-main);
  transform: scale(1.2);
}

/* ==========================================================================
   3. BENEFITS STRIP
   ========================================================================== */
.benefits-section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 65px 0 33px;
}

.benefits-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  flex: 1;
}

.benefit-divider {
  width: 1px;
  height: 72px;
  background-color: #000000;
  flex-shrink: 0;
}

.benefit-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-truck svg {
  width: 54px;
  height: 35px;
}

.icon-basket svg {
  width: 47px;
  height: 37px;
}

.icon-headset svg {
  width: 37px;
  height: 41px;
}

.icon-phone svg {
  width: 22px;
  height: 44px;
}

.benefit-title {
  font-family: var(--font-heavy);
  font-size: 20px;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 14px;
}

.benefit-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: #000000;
}

/* ==========================================================================
   4. PRODUCT CATALOG SECTIONS & SLIDERS
   ========================================================================== */
.catalog-section {
  max-width: 1312px;
  margin: 0 auto;
  padding: 36px 0 45px;
}

.section-header {
  max-width: 1150px;
  margin: 0 auto 38px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 33px;
  font-weight: 400;
  line-height: 1.3;
  color: #000000;
}

.product-slider {
  position: relative;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 81px;
}

.slider-viewport {
  width: 1150px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.slider-arrow {
  position: absolute;
  top: 148px;
  width: 32px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.section-popular .slider-arrow {
  top: 198px;
}

.slider-arrow:hover {
  transform: scale(1.18);
}

.slider-prev {
  left: 35px;
}

.slider-next {
  right: 35px;
}

/* Product Card */
.product-card {
  width: 299px;
  flex: 0 0 299px;
  border: 1px solid var(--card-border);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 487px;
}

.product-card.card-popular {
  min-height: 586px;
}

.product-card.card-torrino {
  min-height: 504px;
}

.product-img-wrap {
  position: relative;
  width: 297px;
  height: 297px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #ffffff;
}

.product-img-wrap.tall {
  height: 396px;
}

.product-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--red-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 19.6px;
  padding: 2px 12px;
  z-index: 3;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.product-img-wrap.tall .product-img {
  width: 263px;
  height: 395px;
  object-fit: cover;
}

.product-img.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-img-wrap:hover .hover-img {
  opacity: 1;
}

.product-info {
  padding: 15px 15px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  color: #000000;
  margin-bottom: 5px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 12px;
}

.price-old {
  font-family: var(--font-heavy);
  font-size: 20px;
  line-height: 28px;
  color: var(--red-accent);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-heavy);
  font-size: 20px;
  line-height: 28px;
  color: var(--red-accent);
}

.qty-control {
  width: 266px;
  height: 40px;
  border: 1px solid var(--border-grey);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  margin-bottom: 12px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.qty-input {
  width: 180px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: #000000;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart {
  width: 267px;
  height: 39px;
  border-radius: 20px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-add-cart:hover {
  background-color: #262626;
}

.btn-add-cart:active {
  transform: scale(0.98);
}

/* Section Pill CTA Buttons */
.section-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.btn-green-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 32px;
  border-radius: 40px;
  background-color: var(--green-main);
  color: #ffffff;
  font-family: var(--font-heavy);
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-green-pill:hover {
  background-color: var(--green-dark);
}

.btn-mas-ofertas {
  min-width: 180px;
}

.btn-ver-mas {
  min-width: 196px;
}

.btn-compras-populares {
  min-width: 215px;
}

.btn-red-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  height: 40px;
  padding: 0 32px;
  border-radius: 40px;
  background-color: var(--red-accent);
  color: #ffffff;
  font-family: var(--font-heavy);
  font-size: 15px;
  transition: filter 0.2s ease;
}

.btn-red-pill:hover {
  filter: brightness(0.92);
}

/* ==========================================================================
   5. PROMO DUO: TOSTADAS & ALFAJORES
   ========================================================================== */
.promo-duo-section {
  width: 100%;
  background-color: rgb(250, 250, 250);
  margin: 18px 0 0;
  padding: 12px 0;
}

.promo-duo-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.promo-box {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-color: #2b180a;
}

.promo-tostadas img,
.promo-alfajores img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease;
}

.promo-box:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   6. CATEGORIAS MAS POPULARES
   ========================================================================== */
.categories-section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 88px 0 36px;
}

.categories-grid {
  width: 1150px;
  max-width: 100%;
  height: 414px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-grey);
  background-color: #ffffff;
}

.category-cell {
  border-right: 1px solid var(--border-grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px 48px;
  position: relative;
}

.category-cell:last-child {
  border-right: none;
}

.category-art {
  position: relative;
  width: 269px;
  height: 305px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-circle {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 215px;
  height: 212px;
  border-radius: 50%;
  background-color: var(--circle-beige);
  z-index: 1;
}

.category-img-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.category-img-link:hover {
  transform: translateY(-5px);
}

.img-paneton img {
  width: 269px;
  height: 238px;
  object-fit: contain;
  margin-top: 40px;
}

.img-pasteleria img {
  width: 240px;
  height: 232px;
  object-fit: contain;
  margin-top: 46px;
}

.img-galleteria img {
  width: 242px;
  height: 232px;
  object-fit: contain;
  margin-top: 56px;
}

.img-panificacion img {
  width: 203px;
  height: 301px;
  object-fit: contain;
}

.category-label {
  font-family: var(--font-heavy);
  font-size: 20px;
  color: #000000;
  text-align: center;
}

/* ==========================================================================
   7. VISITA NUESTRAS REDES SOCIALES (BLACK BANNER + PHONE MOCKUP)
   ========================================================================== */
.social-banner-section {
  position: relative;
  width: 100%;
  height: 415px;
  background-color: #000000;
  margin: 18px 0 42px;
  overflow: visible;
}

.social-banner-bg {
  position: absolute;
  inset: 0;
  background-color: #000000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url("../assets/images/11062b_6911e2530fff42f8aec875eb3a9c5b48~mv2.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.social-banner-inner {
  position: relative;
  max-width: 1150px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  z-index: 2;
}

.phone-mockup-wrap {
  position: absolute;
  left: 166px;
  top: 48px;
  width: 232px;
  z-index: 5;
}

.phone-mockup-img {
  width: 232px;
  height: 451px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.phone-mockup-shadow {
  position: absolute;
  left: -44px;
  bottom: -12px;
  width: 319px;
  height: 31px;
  max-width: none;
  z-index: 1;
}

.social-banner-content {
  margin-left: 453px;
  color: #ffffff;
}

.social-subtitle {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0;
}

.social-Headline {
  font-family: var(--font-heading);
  font-size: 72px;
  line-height: 93.6px;
  color: #ffffff;
  margin-bottom: 2px;
}

.social-desc {
  font-family: var(--font-heavy);
  font-size: 20px;
  line-height: 32px;
  color: #ffffff;
  margin-bottom: 28px;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.social-circle-icon svg {
  width: 24px;
  height: 24px;
}

.social-handle {
  font-family: var(--font-heavy);
  font-size: 18px;
  color: #ffffff;
  margin-left: 6px;
}

/* ==========================================================================
   8. PANETON PROMO DUO (TORRES & DON FORTU)
   ========================================================================== */
.paneton-duo-section {
  max-width: 1150px;
  margin: 0 auto 52px;
}

.paneton-duo-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px;
}

.paneton-promo-card {
  position: relative;
  width: 100%;
  aspect-ratio: 552 / 496;
  overflow: hidden;
  border-radius: 4px;
}

.paneton-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.btn-comprar-card {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 132px;
  z-index: 3;
}

/* ==========================================================================
   9. TORRINO YELLOW SECTION
   ========================================================================== */
.torrino-section {
  position: relative;
  width: 100%;
  min-height: 1009px;
  background-color: var(--yellow-torrino);
  padding: 38px 0 56px;
  overflow: hidden;
}

.torrino-bg-pattern {
  position: absolute;
  inset: 0;
  background-color: var(--yellow-torrino);
  background-image: url("../assets/images/6312e7_1f8166c51c3746079c60ceafd967883f~mv2.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 1;
  pointer-events: none;
}

.torrino-inner {
  position: relative;
  z-index: 2;
  max-width: 1312px;
  margin: 0 auto;
}

.torrino-header {
  max-width: 980px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.torrino-logo-wrap svg,
.torrino-logo-wrap img {
  width: 200px;
  height: 170px;
}

.torrino-slogan-wrap svg,
.torrino-slogan-wrap img {
  width: 266px;
  height: 88px;
}

/* ==========================================================================
   10. ENCUENTRANOS EN (MINKA, METRO, VEGA)
   ========================================================================== */
.encuentranos-section {
  position: relative;
  width: 100%;
  background-color: var(--green-main);
  background-image:
    linear-gradient(rgba(0, 101, 46, 0.83), rgba(0, 101, 46, 0.83)),
    url("../assets/images/6312e7_bad3640ee3664f5d81c22fda4bb5239c~mv2.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
}

.encuentranos-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 33px 0 54px;
  text-align: center;
}

.encuentranos-title {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 56px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 55px;
}

.markets-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-logo-item svg,
.market-logo-item img {
  width: 223px;
  height: 223px;
}

.encuentranos-bottom-bar {
  width: 100%;
  height: 118px;
  background-color: var(--green-main);
}

.encuentranos-bottom-inner {
  max-width: 980px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.market-store-icon {
  width: 95px;
  height: 84px;
  object-fit: contain;
}

.market-near-text {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 42px;
  font-weight: 400;
  color: #ffffff;
}

/* ==========================================================================
   11. NEWSLETTER (SUSCRIBETE)
   ========================================================================== */
.newsletter-section {
  position: relative;
  width: 100%;
  min-height: 346px;
  background-color: #000000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../assets/images/6312e7_4e0b248e5edb49ffaaea25bb5003cf53~mv2.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.newsletter-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 0 55px 160px;
}

.newsletter-kicker {
  font-family: var(--font-heavy);
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: 50px;
  line-height: 70px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 18px;
}

.newsletter-form {
  max-width: 680px;
}

.newsletter-label {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 10px;
}

.newsletter-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter-input {
  width: 528px;
  max-width: 100%;
  height: 40px;
  border-radius: 30px;
  border: 2px solid #e0e0e0;
  background-color: #ffffff;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #000000;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--green-main);
}

.btn-suscribete {
  min-width: 132px;
  height: 40px;
}

.newsletter-feedback {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #5cd68d;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
}

.footer-main {
  width: 100%;
  min-height: 493px;
  background-color: var(--green-main);
  color: #ffffff;
  padding: 55px 0 40px;
}

.footer-columns {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 65px;
  display: grid;
  grid-template-columns: 360px 330px 330px 1fr;
}

.footer-logo {
  display: inline-block;
  width: 128px;
  height: 107px;
  margin-bottom: 10px;
}

.footer-logo svg,
.footer-logo img {
  width: 128px;
  height: 107px;
}

.footer-help-title {
  font-family: var(--font-heavy);
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-help-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 27px;
  color: #ffffff;
  max-width: 245px;
  margin-bottom: 10px;
}

.footer-phone {
  font-family: var(--font-heavy);
  font-size: 17px;
  line-height: 25.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
}

.footer-col-title {
  font-family: var(--font-heavy);
  font-size: 20px;
  line-height: 30px;
  color: #ffffff;
  margin: 28px 0 24px;
}

.footer-links li {
  line-height: 37.5px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-divider {
  max-width: 1312px;
  margin: 42px auto 0;
  border-top: 1px solid #ffffff;
}

.footer-bottom {
  width: 100%;
  height: 54px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #000000;
}

/* ==========================================================================
   13. CART DRAWER & FLOATING CHAT WIDGET
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 900;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  background: var(--green-main);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty-msg {
  text-align: center;
  color: #666666;
  margin-top: 60px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  color: #000000;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-family: var(--font-heavy);
  font-size: 14px;
  color: var(--red-accent);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #999999;
  font-size: 20px;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid #e5e5e5;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 16px;
}

.btn-checkout-wa {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background-color: var(--green-main);
  color: #ffffff;
  border: none;
  font-family: var(--font-heavy);
  font-size: 15px;
  cursor: pointer;
}

/* Floating Chat Widget */
.floating-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chat-prompt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.chat-prompt-close {
  width: 26px;
  height: 24px;
  background: #efefef;
  border: 1px solid #767676;
  border-radius: 2px;
  color: #000000;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-prompt-btn {
  background: #efefef;
  border: 1px solid #767676;
  border-radius: 2px;
  color: rgb(0, 101, 46);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 14px;
  padding: 4px 8px;
  max-width: 92px;
  text-align: center;
  cursor: pointer;
}

.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--green-main);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-fab:hover {
  transform: scale(1.06);
}

.chat-popup {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 320px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.chat-popup-header {
  background: var(--green-main);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-status {
  display: block;
  font-size: 12px;
  opacity: 0.9;
}

.chat-popup-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

.chat-popup-body {
  padding: 18px;
  background: #f9f9f9;
  min-height: 120px;
}

.chat-msg-bot {
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-popup-form {
  display: flex;
  border-top: 1px solid #e5e5e5;
}

.chat-popup-form input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  outline: none;
}

.chat-popup-form button {
  background: var(--green-main);
  color: #ffffff;
  border: none;
  padding: 0 18px;
  font-family: var(--font-heavy);
  cursor: pointer;
}

/* ==========================================================================
   14. RESPONSIVE ADAPTATIONS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1200px) {
  .top-bar-inner,
  .header-main-inner,
  .main-nav {
    padding: 0 24px;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 24px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-section {
    height: auto;
    aspect-ratio: 1440 / 504;
  }

  .benefits-section {
    padding: 40px 24px 24px;
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .benefit-divider {
    display: none;
  }

  .section-header {
    padding: 0 24px;
  }

  .product-slider {
    padding: 0 56px;
  }

  .slider-viewport {
    width: 628px;
    max-width: 100%;
  }

  .slider-prev {
    left: 16px;
  }

  .slider-next {
    right: 16px;
  }

  .promo-duo-inner,
  .paneton-duo-inner {
    grid-template-columns: 1fr;
    max-width: 674px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
  }

  .promo-tostadas,
  .promo-alfajores,
  .paneton-promo-card {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 6px;
  }

  .promo-tostadas img,
  .promo-alfajores img,
  .paneton-promo-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .categories-section {
    padding: 56px 24px 28px;
  }

  .categories-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .category-cell {
    border-bottom: 1px solid var(--border-grey);
  }

  .category-cell:nth-child(2n) {
    border-right: none;
  }

  .social-banner-section {
    height: auto;
    min-height: 415px;
    padding: 48px 24px;
  }

  .phone-mockup-wrap {
    left: 24px;
    top: 24px;
  }

  .social-banner-content {
    margin-left: 280px;
  }

  .torrino-header {
    padding: 0 24px;
  }

  .encuentranos-main {
    padding: 32px 24px 44px;
  }

  .markets-logos {
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
  }

  .newsletter-inner {
    padding: 48px 32px;
  }

  .newsletter-input {
    width: 100%;
    max-width: 480px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 0 32px;
  }

  .footer-divider {
    margin: 32px 32px 0;
  }
}

@media (max-width: 700px) {
  /* Top Bar */
  .top-bar {
    height: auto;
    min-height: 36px;
    padding: 6px 0;
  }

  .top-bar-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .top-links {
    gap: 10px;
    flex-wrap: wrap;
  }

  .top-links a {
    font-size: 12px;
  }

  .login-btn {
    font-size: 12px;
    gap: 6px;
    flex-shrink: 0;
  }

  .login-avatar,
  .login-avatar svg {
    width: 20px;
    height: 20px;
  }

  /* Main Green Header */
  .header-main {
    height: auto;
    padding: 12px 0;
  }

  .header-main-inner {
    padding: 0 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo,
  .brand-logo svg,
  .brand-logo img {
    width: 92px;
    height: 76px;
  }

  .header-icons {
    gap: 18px;
  }

  .search-container {
    order: 3;
    width: 100%;
  }

  .search-form {
    height: 40px;
  }

  /* White Category Nav Bar */
  .header-nav-bar {
    height: 48px;
  }

  .main-nav {
    padding: 0 14px;
    gap: 10px;
  }

  .main-nav a {
    font-size: 12.5px;
    padding: 7px 13px;
  }

  /* Hero Carousel */
  .hero-section {
    height: auto;
    aspect-ratio: 1440 / 504;
  }

  .hero-nav {
    width: 32px;
    height: 32px;
    font-size: 15px;
    opacity: 0.85;
  }

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .hero-dots {
    bottom: 8px;
    opacity: 1;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  /* Benefits Strip */
  .benefits-section {
    padding: 28px 14px 16px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

  .benefit-item {
    padding: 0;
    gap: 10px;
    align-items: flex-start;
  }

  .icon-truck svg {
    width: 38px;
    height: 26px;
  }

  .icon-basket svg {
    width: 34px;
    height: 28px;
  }

  .icon-headset svg {
    width: 28px;
    height: 32px;
  }

  .icon-phone svg {
    width: 18px;
    height: 34px;
  }

  .benefit-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .benefit-desc {
    font-size: 12.5px;
    line-height: 1.3;
  }

  /* Catalog Sections & Sliders */
  .catalog-section {
    padding: 24px 0 32px;
  }

  .section-header {
    padding: 0 16px;
    margin-bottom: 22px;
    text-align: center;
  }

  .section-title {
    font-size: 26px;
  }

  .product-slider {
    padding: 0 38px;
  }

  .slider-viewport {
    width: 299px;
    max-width: 100%;
    margin: 0 auto;
  }

  .slider-prev {
    left: 4px;
  }

  .slider-next {
    right: 4px;
  }

  .section-cta-wrap {
    margin-top: 28px;
  }

  /* Promo Duo & Paneton Duo */
  .promo-duo-inner,
  .paneton-duo-inner {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 18px;
  }

  .promo-tostadas,
  .promo-alfajores,
  .paneton-promo-card {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .btn-comprar-card {
    bottom: 20px;
  }

  /* Categories Grid */
  .categories-section {
    padding: 36px 16px 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-cell {
    padding: 12px 8px 24px;
  }

  .category-art {
    width: 100%;
    height: 170px;
  }

  .category-circle {
    top: 24px;
    width: 124px;
    height: 122px;
  }

  .img-paneton img,
  .img-pasteleria img,
  .img-galleteria img {
    width: 140px;
    height: 130px;
    margin-top: 18px;
  }

  .img-panificacion img {
    width: 115px;
    height: 160px;
  }

  .category-label {
    font-size: 15px;
    margin-top: 8px;
  }

  /* Social Banner + Phone Mockup */
  .social-banner-section {
    height: auto;
    padding: 32px 16px;
    margin: 12px 0 24px;
  }

  .social-banner-inner {
    flex-direction: column;
  }

  .phone-mockup-wrap {
    position: relative;
    left: 0;
    top: 0;
    width: 180px;
    margin: 0 auto 20px;
  }

  .phone-mockup-img {
    width: 180px;
    height: auto;
  }

  .phone-mockup-shadow {
    left: -24px;
    width: 228px;
    height: 22px;
  }

  .social-banner-content {
    margin-left: 0;
    text-align: center;
  }

  .social-subtitle {
    font-size: 20px;
  }

  .social-Headline {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .social-desc {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .social-links-row {
    justify-content: center;
  }

  /* Torrino Section */
  .torrino-section {
    min-height: auto;
    padding: 28px 0 38px;
  }

  .torrino-header {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
  }

  .torrino-logo-wrap svg,
  .torrino-logo-wrap img {
    width: 155px;
    height: auto;
    margin: 0 auto;
  }

  .torrino-slogan-wrap svg,
  .torrino-slogan-wrap img {
    width: 220px;
    height: auto;
    margin: 0 auto;
  }

  /* Encuentranos en */
  .encuentranos-main {
    padding: 28px 16px 32px;
  }

  .encuentranos-title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 28px;
  }

  .markets-logos {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .market-logo-item svg,
  .market-logo-item img {
    width: 100px;
    height: 100px;
  }

  .encuentranos-bottom-bar {
    height: auto;
    padding: 16px;
  }

  .encuentranos-bottom-inner {
    gap: 14px;
  }

  .market-store-icon {
    width: 58px;
    height: 52px;
  }

  .market-near-text {
    font-size: 19px;
    line-height: 1.3;
  }

  /* Newsletter */
  .newsletter-section {
    min-height: auto;
  }

  .newsletter-inner {
    padding: 36px 20px;
  }

  .newsletter-kicker {
    font-size: 20px;
  }

  .newsletter-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .newsletter-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .newsletter-input {
    width: 100%;
  }

  .btn-suscribete {
    width: 100%;
  }

  /* Footer */
  .footer-main {
    min-height: auto;
    padding: 36px 0 28px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }

  .footer-col-title {
    margin: 8px 0 12px;
  }

  .footer-divider {
    margin: 28px 20px 0;
  }

  .footer-bottom {
    height: auto;
    padding: 14px 16px;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  /* Floating Chat */
  .floating-chat {
    right: 12px;
    bottom: 12px;
  }

  .chat-fab {
    width: 52px;
    height: 52px;
  }

  .chat-popup {
    width: calc(100vw - 24px);
    max-width: 320px;
  }
}

@media (max-width: 380px) {
  .product-slider {
    padding: 0 28px;
  }

  .slider-viewport {
    width: 280px;
  }

  .product-card {
    width: 280px;
    flex: 0 0 280px;
  }

  .product-img-wrap {
    width: 278px;
    height: 278px;
  }

  .qty-control,
  .btn-add-cart {
    width: 100%;
  }
}

/* ==========================================================================
   15. SUBPAGES: STORE CATALOG, CUSTOM LANDINGS & PRODUCT DETAIL
   ========================================================================== */

/* Active Top Bar Link */
.top-links a {
  position: relative;
  transition: color 0.22s ease;
}

.top-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--yellow-torrino);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-links a:hover::after,
.top-links a.active::after {
  transform: scaleX(1);
}

.top-links a.active {
  color: var(--yellow-torrino);
  font-weight: 700;
}

/* Store Catalog Pages (Shop All, Pastelería, Galletería, Panificación, Ofertas, Pedido) */
.store-page-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.store-page-header {
  text-align: center;
  margin-bottom: 36px;
}

.store-page-title {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.store-page-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: #555555;
}

.store-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.store-sidebar {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 22px 20px;
  position: sticky;
  top: 175px;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.filter-section {
  margin-bottom: 22px;
}

.filter-section-title {
  font-family: var(--font-heavy);
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-btn:hover {
  background-color: #f4f9f6;
  color: var(--green-brand);
}

.filter-btn.active {
  background-color: var(--green-brand);
  color: #ffffff;
  font-family: var(--font-heavy);
}

.filter-price-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-price-range input[type="range"] {
  width: 100%;
  accent-color: var(--green-brand);
  cursor: pointer;
}

.filter-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555555;
}

.store-main {
  min-width: 0;
}

.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
  flex-wrap: wrap;
  gap: 12px;
}

.store-count {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555555;
}

.store-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.store-sort-select {
  padding: 7px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  background-color: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
}

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

.store-grid .product-card {
  width: 100%;
  flex: none;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-grid .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.store-grid .product-img-wrap {
  width: 100%;
  height: 250px;
}

.store-grid .qty-control,
.store-grid .btn-add-cart {
  width: 100%;
}

/* Custom Landing Pages: Panetón Personalizado & Turrón Personalizado */
.custom-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 64px 24px;
  color: #ffffff;
  overflow: hidden;
}

.custom-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.38) 100%);
  z-index: 1;
}

.custom-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.custom-hero-badge {
  display: inline-block;
  background-color: var(--red-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.custom-hero-title-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.custom-hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #ffffff;
}

.custom-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.weight-pills {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.weight-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 20px;
  padding: 10px 24px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.custom-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.custom-hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.custom-duo-banners {
  max-width: 1140px;
  margin: 44px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.custom-duo-banners img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.strategy-section {
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
}

.strategy-kicker {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--green-brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.strategy-title {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--text-dark);
  margin: 6px 0 16px;
}

.strategy-desc {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.6;
  color: #444444;
}

.boxes-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.box-gallery-item {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}

.box-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
}

.box-gallery-caption {
  font-family: var(--font-heavy);
  font-size: 13px;
  color: #444444;
  text-align: center;
}

/* Clients Grid - "Algunos de nuestros clientes" */
.clients-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
  padding: 64px 24px 76px;
  text-align: center;
}

.clients-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.clients-title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 42px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 54px 26px;
  justify-items: center;
  align-items: center;
  padding-bottom: 28px;
}

.client-logo-card {
  position: relative;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle contact shadow on the floor right beneath the card */
.client-logo-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(1, 66, 30, 0.32) 0%,
    rgba(1, 66, 30, 0) 75%
  );
  filter: blur(2px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  pointer-events: none;
}

.client-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow:
    0 8px 18px rgba(1, 66, 30, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.08);
  -webkit-box-reflect: below 3px linear-gradient(
    to bottom,
    transparent 0%,
    transparent 78%,
    rgba(255, 255, 255, 0.12) 85%,
    rgba(255, 255, 255, 0.38) 93%,
    rgba(255, 255, 255, 0.68) 100%
  );
  transition:
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease;
}

.client-logo-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.client-logo-card:hover img {
  box-shadow:
    0 14px 28px rgba(0, 101, 46, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.08);
  filter: brightness(1.05);
}

.client-logo-card:hover::after {
  transform: scaleX(0.88) translateY(4px);
  opacity: 0.75;
}

/* Proceso Section */
.proceso-section {
  max-width: 1140px;
  margin: 64px auto;
  padding: 0 24px;
}

.proceso-header {
  text-align: center;
  margin-bottom: 40px;
}

.proceso-title {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--green-brand);
}

.proceso-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.proceso-visual img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 8px;
}

.proceso-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.proceso-step-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-top: 4px solid var(--green-brand);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.proceso-step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.proceso-step-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.proceso-step-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #555555;
}

/* ¿Por qué elegirnos? */
.why-us-section {
  background-color: var(--green-brand);
  color: #ffffff;
  padding: 64px 24px;
}

.why-us-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.why-us-title {
  font-family: var(--font-heading);
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-us-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 28px 24px;
}

.why-us-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--yellow-torrino);
}

.why-us-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* Quote / Contact Form Section */
.quote-section {
  max-width: 1140px;
  margin: 64px auto;
  padding: 0 24px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.quote-img-col {
  height: 100%;
}

.quote-img-col img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.quote-form-col {
  padding: 36px 36px 36px 0;
}

.quote-form-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.quote-form-subtitle {
  font-size: 15px;
  color: #555555;
  margin-bottom: 24px;
  line-height: 1.5;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-heavy);
  font-size: 13px;
  color: #333333;
}

.form-field input,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-brand);
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-success-msg {
  color: var(--green-brand);
  font-family: var(--font-heavy);
  font-size: 14px;
}

/* Sobre Nosotros Page */
.about-hero-banner {
  width: 100%;
  overflow: hidden;
}

.about-hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.about-story-section {
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-story-content h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--green-brand);
  margin-bottom: 8px;
}

.about-story-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-story-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 16px;
}

.about-story-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-stats-section {
  background-color: var(--green-brand);
  color: #ffffff;
  padding: 56px 24px;
}

.about-stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.about-stats-img img {
  width: 100%;
  border-radius: 8px;
}

.about-stats-text h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  margin-bottom: 12px;
}

.about-stats-text p {
  font-size: 17px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
}

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

.stat-box {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--yellow-torrino);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: #ffffff;
}

.mvv-section {
  max-width: 1140px;
  margin: 64px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mvv-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-top: 4px solid var(--red-accent);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.mvv-card h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.mvv-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #555555;
}

.brands-section {
  max-width: 1140px;
  margin: 64px auto;
  padding: 0 24px;
  text-align: center;
}

.brands-title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 32px;
}

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

.brand-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.brand-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Atención al Cliente & Trabaja con Nosotros */
.support-banner {
  background-color: var(--green-brand);
  color: #ffffff;
  text-align: center;
  padding: 52px 24px;
}

.support-banner-inner {
  max-width: 820px;
  margin: 0 auto;
}

.support-banner h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 14px;
}

.support-banner p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}

.map-section {
  max-width: 1140px;
  margin: 56px auto 72px;
  padding: 0 24px;
  text-align: center;
}

.map-section h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.map-frame-wrap {
  width: 100%;
  max-width: 980px;
  height: 400px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dddddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.jobs-section {
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 24px;
}

.jobs-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.jobs-intro h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--green-brand);
  margin-bottom: 12px;
}

.jobs-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #444444;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.job-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 5px solid var(--green-brand);
  border-radius: 8px;
  padding: 28px 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.job-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.job-card-sub {
  font-family: var(--font-heavy);
  font-size: 14px;
  color: var(--red-accent);
  margin-bottom: 12px;
}

.job-req-title {
  font-family: var(--font-heavy);
  font-size: 15px;
  color: var(--green-brand);
  margin: 12px 0 8px;
}

.job-req-list {
  padding-left: 20px;
  margin: 0;
  color: #444444;
  font-size: 15px;
  line-height: 1.7;
}

.workplace-gallery {
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
}

.workplace-gallery h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.workplace-gallery p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 28px;
}

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

.workplace-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

/* Product Detail Page (producto.html) */
.product-detail-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.product-Detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 14px;
  color: #555555;
  flex-wrap: wrap;
  gap: 12px;
}

.product-breadcrumbs a {
  color: var(--text-dark);
}

.product-breadcrumbs a:hover {
  color: var(--green-brand);
  text-decoration: underline;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery-main {
  position: relative;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.product-gallery-main img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.product-thumb-btn {
  width: 72px;
  height: 72px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
}

.product-thumb-btn.active {
  border-color: var(--green-brand);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.product-detail-prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.product-detail-prices .price-old {
  font-size: 20px;
}

.product-detail-prices .price-current {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--green-brand);
}

.product-detail-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
  margin-bottom: 24px;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
}

.product-detail-actions .qty-control {
  width: 140px;
  height: 44px;
}

.product-detail-actions .btn-add-cart {
  width: 100%;
  height: 46px;
  font-size: 16px;
}

/* Subpages Responsive Rules */
@media (max-width: 980px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-btn {
    width: auto;
    border: 1px solid #dddddd;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-hero-inner,
  .proceso-layout,
  .quote-grid,
  .about-story-section,
  .about-stats-inner,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-col {
    padding: 28px 24px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us-grid,
  .mvv-section,
  .brands-grid,
  .workplace-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .store-grid,
  .custom-duo-banners,
  .proceso-steps,
  .why-us-grid,
  .mvv-section,
  .brands-grid,
  .jobs-grid,
  .workplace-grid,
  .contact-form-grid,
  .stats-counters {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-page-title,
  .custom-hero-title,
  .strategy-title {
    font-size: 28px;
  }
}


