/* ============================================
   IMPORTACIÓN MCALLEN — Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Bree+Serif&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --clr-primary: #1B3A4B;
  --clr-primary-dark: #0D1B2A;
  --clr-secondary: #C8A951;
  --clr-secondary-hover: #A68B39;
  --clr-accent: #C8A951;
  --clr-accent-light: #D4BC6A;
  --clr-bg-dark: #0D1B2A;
  --clr-bg-light: #F7F7F7;
  --clr-bg-white: #FFFFFF;
  --clr-text-dark: #333333;
  --clr-text-light: #FFFFFF;
  --clr-text-muted: #6B7280;
  --clr-border: #E5E7EB;
  --clr-success: #10B981;
  --clr-glass: rgba(255, 255, 255, 0.08);
  --clr-glass-border: rgba(255, 255, 255, 0.15);
  --clr-overlay: rgba(13, 27, 42, 0.75);

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 30px rgba(200, 169, 81, 0.3);

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-normal: 0.3s ease;
  --trans-slow: 0.5s ease;

  --announcement-height: 40px;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text-dark);
  background: var(--clr-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--trans-fast);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.section {
  padding: var(--sp-xl) 0;
}

.section-alt {
  background: var(--clr-bg-light);
}

.section-dark {
  background: var(--clr-bg-dark);
  color: var(--clr-text-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section-header h2 {
  font-family: 'Bree Serif', serif;
  font-size: var(--fs-4xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-md);
  position: relative;
  display: inline-block;
}

.section-dark .section-header h2 {
  color: var(--clr-text-light);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-secondary), var(--clr-accent));
  border-radius: 2px;
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: var(--sp-lg) auto 0;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: var(--clr-text-light);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #333333, #4a4a4a);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--clr-text-light);
}

.btn-outline-dark {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.btn-outline-dark:hover {
  background: #1a1a1a;
  color: var(--clr-text-light);
}

.btn-whatsapp {
  background: #075E54;
  /* Un verde más profundo y sobrio */
  color: var(--clr-text-light);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 94, 84, 0.3);
}

/* Pulse Animation for Cart Button */
@keyframes pulse-cart {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(200, 169, 81, 0.6); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse-cart 0.6s ease-in-out;
}

/* Continuous heartbeat for when cart has items */
.cart-heartbeat {
  animation: logo-heartbeat 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(200, 169, 81, 0.5);
  border-color: white !important;
}

.btn-accent {
  background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
  color: var(--clr-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #2a2a2a, #000000);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: var(--sp-lg) var(--sp-2xl);
  font-size: var(--fs-md);
}

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--announcement-height);
  background: var(--clr-primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bree Serif', serif;
  font-size: var(--fs-sm);
  font-weight: 400;
  z-index: 1001;
  text-align: center;
  padding: 0 var(--sp-md);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .announcement-bar {
    font-size: 11px;
    height: auto;
    padding: 5px var(--sp-sm);
    min-height: var(--announcement-height);
  }
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: var(--announcement-height);
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 2000; /* Aumentado por encima de la cinta verde (1001) */
  transition: all var(--trans-normal);
  display: flex;
  align-items: center;
  overflow: visible !important;
}

.navbar.transparent {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: visible !important;
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-glass-border);
  box-shadow: var(--shadow-lg);
  overflow: visible !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  overflow: visible !important; /* Crucial para el logo grande */
}

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.logo-circle {
  background: #ffffff;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: all var(--trans-normal);
  border: 4px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 9999 !important;
  visibility: visible !important;
  margin-top: -45px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Animación de latido */
  animation: logo-heartbeat 3s ease-in-out infinite;
}

@keyframes logo-heartbeat {
  0% { transform: scale(1); }
  5% { transform: scale(1.08); }
  10% { transform: scale(1); }
  15% { transform: scale(1.05); }
  20% { transform: scale(1); }
  100% { transform: scale(1); }
}

.navbar.scrolled .logo-circle {
  width: 80px;
  height: 80px;
  margin-top: -20px;
  padding: 0;
}

.navbar__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.1); /* Logo grande pero contenido */
  transition: all var(--trans-normal);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
  .navbar .container {
    justify-content: space-between;
    gap: 0;
  }
  .logo-circle {
    width: 70px;
    height: 70px;
    padding: 0;
    margin-top: -25px;
  }
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.navbar__menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--sp-sm) 0;
  position: relative;
  transition: color var(--trans-fast);
}

.navbar__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-secondary);
  transition: width var(--trans-normal);
}

.navbar__menu a:hover,
.navbar__menu a.active {
  color: var(--clr-text-light);
}

.navbar__menu a:hover::after,
.navbar__menu a.active::after {
  width: 100%;
}

.nav-intranet {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 15px !important;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-glass-border);
  margin-left: 10px;
}

.nav-intranet:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--clr-secondary) !important;
}

.nav-intranet::after {
  display: none !important; /* No underline for this special button */
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--sp-sm);
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-text-light);
  border-radius: 2px;
  transition: all var(--trans-normal);
}

.navbar__toggle.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.open span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer Logo Circle */
.logo-circle-footer {
  background: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: var(--sp-md);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.footer__logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  opacity: 1;
}

/* ---------- FIRST SECTION SPACING ---------- */
.section-first {
  padding-top: var(--sp-2xl);
}

/* ---------- HIGHLIGHT UTILITY ---------- */
.highlight {
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--announcement-height));
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--announcement-height));
  background: var(--clr-primary-dark);
  color: var(--clr-text-light);
  overflow: hidden;
}

/* ---------- INSUMOS SECTION ---------- */
.insumos-content {
  display: block; /* Removed grid to allow products to take full width */
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-md);
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-lg);
  }
}

.product-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--trans-normal);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  height: 100%; /* Important for alignment */
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card__img {
  aspect-ratio: 1 / 1; /* Changed to square for better fit in 5-column grid */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-white);
  padding: var(--sp-sm); /* Minimal padding to maximize size */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--clr-border);
}

.product-card__img img {
  max-width: 98%;
  max-height: 98%;
  object-fit: contain;
  transition: transform var(--trans-slow);
}

.product-card:hover .product-card__img img {
  transform: scale(1.1);
}

.product-card__body {
  padding: var(--sp-lg);
  flex: 1; /* Takes up remaining space */
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: var(--sp-xs);
  min-height: 3.5em; /* Ensure all names start at same line and take same space */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__format {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
  min-height: 1.5em; /* Alignment for format text */
}

.product-card__prices {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-lg);
}

.product-card__price-neto {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-primary);
}

.product-card__price-iva {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-secondary);
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: auto; /* Pushes button to the very bottom */
}

.btn-add-cart {
  flex: 1;
}

/* ---------- ORDER SUMMARY ---------- */
/* ---------- FLOATING CART DRAWER ---------- */
.floating-cart-trigger {
  position: fixed;
  bottom: 110px; /* Elevated to avoid overlapping with secondary WhatsApp button */
  right: 25px;
  width: 70px;
  height: 70px;
  background: var(--clr-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 2500;
  transition: all var(--trans-normal);
  border: 4px solid var(--clr-bg-white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.floating-cart-trigger.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.floating-cart-trigger:hover {
  transform: scale(1.1);
  background: var(--clr-secondary-hover);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #EF4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(13, 27, 42, 0.85); /* Dark transparency */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 3000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: var(--sp-2xl) var(--sp-xl);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--clr-glass-border);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--clr-glass-border);
  padding-bottom: var(--sp-md);
  color: white;
}

.cart-drawer__close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: var(--sp-xl);
}

.cart-drawer__footer {
  border-top: 1px solid var(--clr-glass-border);
  padding-top: var(--sp-xl);
  color: white;
}

.cart-drawer .order-item {
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: var(--sp-md) 0;
}

.cart-drawer .order-item__name {
  color: white;
}

.cart-drawer .order-item__price {
  color: var(--clr-secondary);
}

.cart-drawer .order-totals__row.total {
  border-top: none;
  font-size: 24px;
}

/* Hide original static summary if desired */
.order-summary--hidden {
  display: none !important;
}

/* Saving Badge */
.savings-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.order-summary h3 {
  font-size: var(--fs-xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.order-items {
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-sm) 0;
  font-size: var(--fs-sm);
}

.order-item__name {
  flex: 1;
  color: var(--clr-text-dark);
}

.order-item__qty {
  color: var(--clr-text-muted);
  margin: 0 var(--sp-md);
}

.order-item__price {
  font-weight: 600;
  color: var(--clr-primary);
  min-width: 100px;
  text-align: right;
}

.order-item__remove {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: var(--fs-lg);
  margin-left: var(--sp-sm);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

.order-item__remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.order-totals {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.order-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-base);
}

.order-totals__row.total {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-secondary);
  border-top: 2px solid var(--clr-primary);
  padding-top: var(--sp-md);
  margin-top: var(--sp-sm);
}

.order-empty {
  text-align: center;
  padding: var(--sp-xl);
  color: var(--clr-text-muted);
}

/* ---------- MACHINES SECTION ---------- */
.machines-carousel {
  padding: 0 var(--sp-xl);
  position: relative;
}

.machine-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--trans-normal);
  border: 1px solid var(--clr-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.machine-card__img {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-white);
  padding: var(--sp-xl);
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
}

.machine-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--trans-slow);
}

.machine-card:hover .machine-card__img img {
  transform: scale(1.05);
}

.machine-card__body {
  padding: var(--sp-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.machine-card__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: var(--sp-xs);
}

.machine-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-lg);
  flex: 1;
  line-height: 1.6;
}

.machine-card__buttons {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  margin-top: var(--sp-md);
}

.machine-card__buttons .btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0;
}

/* Swiper overrides */
.swiper-button-next,
.swiper-button-prev {
  color: var(--clr-secondary) !important;
  background: var(--clr-bg-white);
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--trans-fast);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--clr-secondary);
  color: var(--clr-text-light) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: 700;
}

.swiper-pagination-bullet {
  background: var(--clr-primary) !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: var(--clr-secondary) !important;
  opacity: 1;
}

/* ---------- COMODATO SECTION ---------- */
.comodato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

/* ---------- COMODATO SECTION (REDISEÑO) ---------- */
.section-comodato {
  padding-top: 0;
}

.comodato-banner-wrapper {
  margin-bottom: var(--sp-4xl);
}

.comodatoSwiper {
  height: 600px;
  position: relative;
}

.comodatoSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.comodatoSwiper .swiper-slide-active img {
  animation: kenBurns 8s ease-out forwards;
}

.comodato-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.25); /* Oscurecimiento sutil y global */
  z-index: 10;
  pointer-events: none;
}

.comodato-overlay__content {
  max-width: 850px;
  padding: var(--sp-xl);
  pointer-events: auto;
}

.comodato-overlay__title {
  font-family: 'Bree Serif', serif;
  font-size: var(--fs-4xl);
  color: #ffffff;
  margin-bottom: var(--sp-sm);
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.comodato-overlay__text {
  font-family: 'Bree Serif', serif;
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
  margin-bottom: var(--sp-xl);
  text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
}

.comodato-overlay__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
}

.comodato-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2xl);
  text-align: center;
  margin-bottom: var(--sp-5xl);
}

.comodato-feature__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-md);
}

.comodato-feature h4 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  color: var(--clr-primary);
  margin-bottom: var(--sp-sm);
  font-weight: 700;
}

.comodato-feature p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.comodato-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--sp-5xl);
  align-items: start;
}

.comodato-form-intro h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-lg);
}

.comodato-steps {
  margin-top: var(--sp-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.step-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  font-weight: 600;
  color: var(--clr-text-dark);
}

.step-item span {
  width: 36px;
  height: 36px;
  background: var(--clr-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.comodato-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}

.file-upload.mini {
  padding: var(--sp-md);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.file-upload.mini .file-upload__icon {
  font-size: var(--fs-2xl);
  margin-bottom: 4px;
}

.file-upload.mini .file-upload__name {
  margin-top: 4px;
  font-size: 11px;
}

@media (max-width: 992px) {
  .comodato-main-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3xl);
  }
}

@media (max-width: 768px) {
  .comodatoSwiper { height: 450px; }
  .comodato-overlay__title { font-size: var(--fs-3xl); }
  .comodato-overlay__text { font-size: var(--fs-base); }
  .comodato-features { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .comodato-files { grid-template-columns: 1fr; }
}

/* ---------- FORMS ---------- */
.form {
  background: var(--clr-bg-white);
  padding: var(--sp-2xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form-group {
  margin-bottom: var(--sp-md);
}

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

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: var(--sp-xs);
}

.form-group label .required {
  color: var(--clr-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--sp-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-text-dark);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  background: var(--clr-bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-secondary);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.file-upload {
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  position: relative;
}

.file-upload:hover {
  border-color: var(--clr-secondary);
  background: rgba(200, 169, 81, 0.03);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload__icon {
  font-size: var(--fs-2xl);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
}

.file-upload__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.file-upload__text strong {
  color: var(--clr-secondary);
}

.file-upload__name {
  font-size: var(--fs-sm);
  color: var(--clr-success);
  font-weight: 600;
  margin-top: var(--sp-sm);
}

/* ---------- SERVICIOS SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

.service-card {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  background: var(--clr-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--trans-normal);
  border: 1px solid var(--clr-border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--clr-secondary);
}

.service-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--sp-lg);
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-normal);
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

/* .service-card:hover .service-card__icon removed for image support */

.service-card h3 {
  font-size: var(--fs-lg);
  color: var(--clr-primary);
  margin-bottom: var(--sp-sm);
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ---------- NOSOTROS SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.about-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--clr-accent);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.about-img:hover::after {
  opacity: 1;
}

.about-text h3 {
  font-size: var(--fs-2xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-lg);
}

.about-text p {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-lg);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.stat-item {
  text-align: center;
  padding: var(--sp-lg);
  background: var(--clr-bg-light);
  border-radius: var(--radius-sm);
}

.stat-item__number {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--clr-secondary);
}

.stat-item__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: var(--sp-xs);
}

/* ---------- MAYORISTA SECTION ---------- */
.mayorista-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.mayorista-info h3 {
  font-size: var(--fs-2xl);
  color: var(--clr-text-light);
  margin-bottom: var(--sp-lg);
}

.mayorista-info p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--sp-lg);
  line-height: 1.8;
}

.mayorista-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.mayorista-feature {
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  padding: var(--sp-lg);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.mayorista-feature h4 {
  color: var(--clr-accent);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-xs);
}

.mayorista-feature p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ---------- CONTACTO SECTION ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, rgba(200, 169, 81, 0.1), rgba(200, 169, 81, 0.1));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
}

.contact-item h4 {
  font-size: var(--fs-base);
  color: var(--clr-primary);
  margin-bottom: var(--sp-xs);
}

.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.contact-item a:hover {
  color: var(--clr-secondary);
}

.social-links {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--clr-bg-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  transition: all var(--trans-normal);
}

.social-links a:hover {
  background: var(--clr-secondary);
  color: var(--clr-text-light);
  transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--clr-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.footer-col h4 {
  color: var(--clr-text-light);
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-lg);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--clr-secondary);
}

.footer-col p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.footer-col ul li {
  margin-bottom: var(--sp-sm);
}

.footer-col ul li a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--trans-fast);
}

.footer-col ul li a:hover {
  color: var(--clr-secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--trans-normal);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--clr-bg-white);
  border-radius: var(--radius-md);
  padding: var(--sp-2xl);
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--trans-normal);
}

.modal-backdrop.active .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  width: 36px;
  height: 36px;
  background: var(--clr-bg-light);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--fs-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.modal__close:hover {
  background: var(--clr-secondary);
  color: var(--clr-text-light);
}

.modal h3 {
  font-size: var(--fs-xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-lg);
}

/* ---------- MACHINE DETAIL PAGE ---------- */
.machine-detail {
  padding-top: calc(var(--nav-height) + var(--sp-2xl));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-2xl);
}

.breadcrumb a {
  color: var(--clr-secondary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.machine-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

.machine-gallery {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-xl));
}

.machine-gallery__main {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-md);
  background: var(--clr-bg-light);
}

.machine-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm);
}

.machine-gallery__thumb {
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--trans-fast);
}

.machine-gallery__thumb.active,
.machine-gallery__thumb:hover {
  border-color: var(--clr-secondary);
}

.machine-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-info h1 {
  font-size: var(--fs-3xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-lg);
}

.machine-info__desc {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-2xl);
}

.machine-specs {
  margin-bottom: var(--sp-2xl);
}

.machine-specs h3 {
  font-size: var(--fs-lg);
  color: var(--clr-primary);
  margin-bottom: var(--sp-md);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--clr-border);
}

.specs-table td {
  padding: var(--sp-md);
  font-size: var(--fs-sm);
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--clr-primary);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--clr-text-muted);
}

.machine-drinks {
  margin-bottom: var(--sp-2xl);
}

.machine-drinks h3 {
  font-size: var(--fs-lg);
  color: var(--clr-primary);
  margin-bottom: var(--sp-md);
}

.drinks-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.drinks-list span {
  background: linear-gradient(135deg, rgba(200, 169, 81, 0.1), rgba(200, 169, 81, 0.1));
  padding: var(--sp-sm) var(--sp-md);
  border-radius: 50px;
  font-size: var(--fs-sm);
  color: var(--clr-primary);
  font-weight: 500;
}

.machine-info__buttons {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.machine-info__buttons .btn {
  flex: 1;
  min-width: 180px;
}

/* ---------- ANIMATIONS ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: var(--fs-3xl);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .comodato-grid {
    grid-template-columns: 1fr;
  }

  .mayorista-content {
    grid-template-columns: 1fr;
  }

  .machine-detail-grid {
    grid-template-columns: 1fr;
  }

  .machine-gallery {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .hero__title {
    font-size: var(--fs-2xl);
  }

  .hero__subtitle {
    font-size: var(--fs-base);
  }

  .section {
    padding: var(--sp-3xl) 0;
  }

  .section-header h2 {
    font-size: var(--fs-2xl);
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--sp-xl)) var(--sp-xl);
    transition: right var(--trans-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__menu a {
    font-size: var(--fs-md);
    padding: var(--sp-md) 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar__toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .mayorista-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .machine-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .hero__title {
    font-size: var(--fs-xl);
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .machine-card__buttons {
    flex-direction: column;
  }

  .machine-card__buttons .btn {
    width: 100%;
  }

  .machine-info__buttons {
    flex-direction: column;
  }

  .machine-info__buttons .btn {
    width: 100%;
  }
}

/* ---------- ARROZ MR RICE SECTION ---------- */
.section-header--rice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* Eliminamos el gap para pegarlos más */
}

.rice-section-logo {
  height: 96px;
  width: auto;
  margin-bottom: -10px;
  /* Margen negativo para acercar el texto al logo */
}

/* ============================================
   SECCIÓN 7: ARROZ MR RICE (REORGANIZACIÓN PREMIUM)
   ============================================ */

.section-header--rice {
  margin-bottom: var(--sp-2xl);
}

.section-header--rice .section-title {
  font-family: 'Bree Serif', serif;
  font-size: var(--fs-3xl);
  color: var(--clr-text-light);
  font-weight: 400; /* Bree Serif is naturally bold */
  margin-top: var(--sp-sm);
}

.rice-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
}

.rice-section-logo {
  width: 140px; /* Un poco más grande al no tener el círculo */
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Clase utilitaria para latidos directos */
.heartbeat {
  animation: logo-heartbeat 3s ease-in-out infinite;
}

/* Buy Box: Grid de imagen y compra */
.rice-buy-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-2xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-2xl);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.rice-buy-box__visual {
  background: rgba(0, 0, 0, 0.2); /* Fondo oscuro sutil en lugar de blanco */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2xl);
  position: relative;
}

.rice-product-img {
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Marco aún más sutil */
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rice-product-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: contrast(105%) brightness(102%);
}

.rice-buy-box:hover .rice-product-img {
  transform: scale(1.03) translateY(-5px);
}

.rice-buy-box__details {
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
}

.rice-pricing-header {
  margin-bottom: var(--sp-xl);
}

.rice-pricing-header h3 {
  font-size: var(--fs-xl);
  color: #fff;
  margin-bottom: var(--sp-xs);
  letter-spacing: -0.5px;
}

.rice-pricing-header p {
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  font-weight: 500;
  opacity: 0.9;
}

/* Tabla de Precios Premium */
.rice-pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: var(--sp-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rice-pricing-table th {
  background: rgba(45, 90, 39, 0.2);
  padding: var(--sp-sm) var(--sp-md);
  color: var(--clr-accent);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rice-pricing-table td {
  padding: var(--sp-md);
  color: #fff;
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rice-pricing-table .price {
  font-weight: 700;
  text-align: right;
  color: #fff;
}

.rice-pricing-table tr.featured-row {
  background: rgba(45, 90, 39, 0.4);
  border-left: 4px solid var(--clr-accent);
}

.featured-row td {
  font-weight: 700;
}

.featured-row .price {
  color: #fff;
  font-size: var(--fs-base);
}

/* Calculadora Reestilizada */
.rice-calculator {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
}

.rice-calculator h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.rice-calculator h4::before {
  content: "📊";
}

.rice-calculator .calc-row {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.calc-input, .calc-result {
  flex: 1;
}

.rice-calculator label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.rice-calculator input {
  width: 100%;
  padding: var(--sp-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 700;
  outline: none;
}

.total-price {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #fff;
}

.btn-whatsapp-rice {
  background: #25D366;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: var(--sp-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-base);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-rice:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  color: #fff;
}

/* Specs Strip (Horizontal) */
.rice-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}

.rice-spec-h {
  background: rgba(255, 255, 255, 0.03);
  padding: var(--sp-md);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--tr-base);
}

.rice-spec-h:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
  border-color: var(--clr-accent);
}

.spec-h-icon {
  font-size: var(--fs-xl);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.spec-h-content strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 2px;
}

.spec-h-content span {
  font-size: var(--fs-sm);
  color: #fff;
  font-weight: 500;
}

.rice-bottom-notes {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  font-style: italic;
  padding: var(--sp-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsividad */
@media (max-width: 992px) {
  .rice-buy-box {
    grid-template-columns: 1fr;
  }
  .rice-buy-box__visual {
    padding: var(--sp-xl);
  }
  .rice-specs-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .rice-specs-row {
    grid-template-columns: 1fr;
  }
  .rice-calculator .calc-row {
    flex-direction: column;
  }
}