/* ==========================================================
   01. VARIABLES DE MARCA
   ========================================================== */
:root {
  --black: #1e1c1c;
  --wine: #650c0b;
  --red: #dc0610;
  --red-soft: #a92a26;
  --orange: #db762b;
  --terracotta: #bc4b3d;
  --green: #3a7b30;
  --cream: #fff9e1;
  --light: #e4e3e2;
  --white: #ffffff;

  --font-title: "Bebas Neue", Impact, sans-serif;
  --font-accent: "Dosis", Arial, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;

  --container: min(1220px, calc(100% - 32px));
  --header-height: 88px;

  --radius-small: 14px;
  --radius-medium: 24px;
  --radius-large: 34px;

  --shadow-soft: 0 16px 45px rgba(30, 28, 28, 0.1);
  --shadow-strong: 0 24px 65px rgba(30, 28, 28, 0.24);
}

/* ==========================================================
   02. REINICIO BÁSICO
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
/*==========================
POPUP
==========================*/

.popup-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;

  transition: 0.35s;

  z-index: 99999;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup {
  width: 900px;
  max-width: 100%;

  background: #fff;

  display: grid;
  grid-template-columns: 1fr 1fr;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  animation: popup 0.45s ease;
}

@keyframes popup {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  display: block;
}

.popup-content {
  padding: 45px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-badge {
  display: inline-block;

  padding: 8px 18px;

  background: #e53935;

  color: #fff;

  font-size: 13px;

  font-weight: 700;

  border-radius: 100px;

  margin-bottom: 18px;

  width: max-content;

  letter-spacing: 1px;
}

.popup-content h2 {
  font-size: 40px;

  line-height: 1.1;

  margin-bottom: 18px;

  color: #222;
}

.popup-content p {
  font-size: 17px;

  line-height: 1.7;

  color: #555;

  margin-bottom: 30px;
}

.popup-btn {
  display: inline-flex;

  justify-content: center;
  align-items: center;

  height: 52px;

  padding: 0 28px;

  background: #8e1415;

  color: #fff;

  text-decoration: none;

  border-radius: 8px;

  font-weight: 700;

  transition: 0.25s;

  width: max-content;
}

.popup-btn:hover {
  background: #6f1011;
}

.popup-close {
  position: absolute;

  top: 15px;
  right: 18px;

  border: none;

  background: none;

  font-size: 34px;

  cursor: pointer;

  color: #fff;

  z-index: 5;
}

/*==========================
RESPONSIVE
==========================*/

@media (max-width: 820px) {
  .popup {
    grid-template-columns: 1fr;

    max-width: 420px;
  }

  .popup-image {
    height: 320px;
  }

  .popup-content {
    padding: 30px;

    text-align: center;

    align-items: center;
  }

  .popup-content h2 {
    font-size: 30px;
  }

  .popup-content p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .popup-image {
    height: 240px;
  }

  .popup-content {
    padding: 24px;
  }

  .popup-content h2 {
    font-size: 25px;
  }

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

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

label,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--white);
  background: var(--red-soft);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ==========================================================
   03. HEADER
   Menú responsive corregido.
   ========================================================== */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: var(--header-height);
  display: grid;
  align-items: center;
  background: rgba(255, 249, 225, 0.97);
  border-bottom: 1px solid rgba(101, 12, 11, 0.1);
  box-shadow: 0 8px 30px rgba(30, 28, 28, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

/* Logo original, sin recolor ni versiones. */
.brand {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  width: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateX(-2px);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Control invisible del menú móvil. */
.nav-toggle {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Menú de escritorio. */
.main-nav {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a {
  position: relative;
  padding: 10px 14px;
  color: var(--black);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.main-nav > a:not(.nav-order)::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 7px;
  left: 15px;
  height: 2px;
  background: var(--wine);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible {
  color: var(--wine);
  background: rgba(101, 12, 11, 0.07);
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav .nav-order {
  margin-left: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  box-shadow: 0 10px 24px rgba(220, 6, 16, 0.2);
}

.main-nav .nav-order:hover,
.main-nav .nav-order:focus-visible {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-soft), var(--wine));
  transform: translateY(-2px);
}

/* Botón hamburguesa oculto en escritorio. */
.menu-button {
  position: relative;
  z-index: 7;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(101, 12, 11, 0.14);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(101, 12, 11, 0.08);
  cursor: pointer;
}

/* Una sola línea central y dos pseudo-elementos:
   así el ícono queda siempre alineado y no “sale raro”. */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 23px;
  height: 2px;
  display: block;
  background: var(--wine);
  border-radius: 999px;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    top 220ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

/* Fondo clicable detrás del menú móvil. */
.menu-backdrop {
  display: none;
}

/* ==========================================================
   04. HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--black);
  isolation: isolate;
  overflow: hidden;
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(23, 12, 12, 0.96) 0%,
      rgba(58, 9, 8, 0.83) 52%,
      rgba(30, 28, 28, 0.38) 100%
    ),
    linear-gradient(180deg, rgba(30, 28, 28, 0.06), rgba(101, 12, 11, 0.48));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.18) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 70% 35%,
      rgba(255, 255, 255, 0.14) 0 1px,
      transparent 1.5px
    );
  background-size:
    24px 24px,
    32px 32px;
  mix-blend-mode: overlay;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(74px, 10vw, 120px);
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 700ms ease both;
}

.invima-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 13px;
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
}

.invima-badge img {
  width: 150px;
  object-fit: contain;
}

.invima-badge span {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 50%;
  font-size: 14px;
}

.eyebrow {
  margin: 0 5px 21px;
  color: #ffd4b0;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--red-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(68px, 9vw, 128px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.87;
  text-wrap: balance;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.hero h1 strong {
  display: block;
  color: #ffb478;
  font-weight: 400;
}

.hero-description {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-accent);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ==========================================================
   05. BOTONES
   ========================================================== */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  box-shadow: 0 14px 32px rgba(220, 6, 16, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 19px 40px rgba(220, 6, 16, 0.4);
}

.button-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.66);
}

/* ==========================================================
   06. PANEL DE CONFIANZA
   ========================================================== */
.trust-panel {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 249, 225, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
  animation: fadeUp 800ms 120ms ease both;
}

.trust-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(101, 12, 11, 0.09);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.trust-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  background: rgba(220, 6, 16, 0.035);
  border: 1px solid rgba(220, 6, 16, 0.08);
  border-radius: 50%;
}

.trust-card:hover {
  transform: translateX(-5px);
  border-color: rgba(220, 6, 16, 0.24);
  box-shadow: 0 14px 34px rgba(101, 12, 11, 0.12);
}

.trust-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--red-soft), var(--wine));
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(101, 12, 11, 0.2);
}

.trust-icon svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-card strong,
.trust-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.trust-card strong {
  color: var(--wine);
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
}

.trust-card span {
  max-width: 230px;
  margin-top: 4px;
  color: #655a58;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
}

/* ==========================================================
   07. SECCIONES GENERALES
   ========================================================== */
.section {
  position: relative;
  padding-block: clamp(78px, 9vw, 126px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading h2,
.orders-heading h2 {
  margin: 0;
  color: var(--wine);
  font-family: var(--font-title);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.94;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 720px;
  margin: 17px 0 0;
  color: #675d5b;
  font-family: var(--font-accent);
  font-size: clamp(18px, 2vw, 21px);
}

/* ==========================================================
   08. PILARES
   ========================================================== */
.why-section {
  background:
    radial-gradient(
      circle at 84% 15%,
      rgba(219, 118, 43, 0.13),
      transparent 31%
    ),
    linear-gradient(180deg, #fffdf6, var(--cream));
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  position: relative;
  min-height: 390px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.77);
  border: 1px solid rgba(101, 12, 11, 0.1);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.pillar-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  background: rgba(220, 6, 16, 0.025);
  border: 1px solid rgba(101, 12, 11, 0.08);
  border-radius: 50%;
  transition: transform 320ms ease;
}

.pillar-card:hover {
  transform: translateY(-9px);
  border-color: rgba(220, 6, 16, 0.28);
  box-shadow: 0 28px 66px rgba(101, 12, 11, 0.15);
}

.pillar-card:hover::after {
  transform: scale(1.15);
}

.pillar-number {
  position: absolute;
  top: 24px;
  right: 27px;
  color: rgba(101, 12, 11, 0.17);
  font-family: var(--font-title);
  font-size: 42px;
}

.pillar-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--red-soft);
  background: linear-gradient(
    145deg,
    rgba(220, 6, 16, 0.1),
    rgba(219, 118, 43, 0.13)
  );
  border: 1px solid rgba(220, 6, 16, 0.13);
  border-radius: 20px;
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.pillar-card:hover .pillar-icon {
  color: var(--white);
  background: var(--red-soft);
  transform: rotate(-4deg);
}

.pillar-icon svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--wine);
  font-family: var(--font-accent);
  font-size: clamp(25px, 2.6vw, 31px);
  line-height: 1.12;
}

.pillar-card p {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: #655b59;
  line-height: 1.75;
}

/* ==========================================================
   09. CATÁLOGO MINIMALISTA DE PRODUCTOS

   Para agregar otro producto:
   - Duplica una tarjeta .product-card en index.html.
   - La cuadrícula se ajustará automáticamente.
   ========================================================== */
.products-section {
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(219, 118, 43, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #ffffff, #faf7f0);
}

.products-heading {
  margin-bottom: 42px;
}

/*
  AUTO-FIT:
  Cuando agregues una tarjeta, CSS decide si debe ir al lado
  o comenzar una nueva fila. No necesitas crear columnas nuevas.
*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(101, 12, 11, 0.1);
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(30, 28, 28, 0.08);
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(169, 42, 38, 0.24);
  box-shadow: 0 24px 58px rgba(101, 12, 11, 0.13);
}

/*
  La imagen ocupa la mayor parte de la tarjeta.
  Todas las fotografías usan la misma proporción 4:3.
*/
.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  background: #faf7ef;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.045);
}

/* Único distintivo sobre la fotografía. */
.product-line {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(101, 12, 11, 0.92);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-title > div {
  min-width: 0;
}

.product-title span {
  display: block;
  color: var(--red-soft);
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-title h3 {
  margin: 5px 0 0;
  color: var(--wine);
  font-family: var(--font-title);
  font-size: clamp(34px, 3.4vw, 45px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.98;
}

.product-title > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--wine);
  background: var(--cream);
  border-radius: 12px;
  font-family: var(--font-accent);
  font-size: 13px;
  line-height: 1;
}

.product-text {
  margin: 15px 0 22px;
  color: #675d5b;
  font-size: 14px;
  line-height: 1.65;
}

/*
  Precios sin cajas pesadas:
  una fila limpia con separador central.
*/
.product-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  padding-block: 15px;
  border-top: 1px solid rgba(101, 12, 11, 0.1);
  border-bottom: 1px solid rgba(101, 12, 11, 0.1);
}

.product-prices p {
  margin: 0;
}

.product-prices p + p {
  padding-left: 18px;
  border-left: 1px solid rgba(101, 12, 11, 0.12);
}

.product-prices span,
.product-prices strong {
  display: block;
}

.product-prices span {
  color: #776c69;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
}

.product-prices strong {
  margin-top: 3px;
  color: var(--red-soft);
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.product-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--wine);
  border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.product-button:hover,
.product-button:focus-visible {
  background: var(--red-soft);
  box-shadow: 0 12px 26px rgba(101, 12, 11, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================
   10. PEDIDOS Y GALERÍA
   Todas las fotografías principales tienen 1600x1200 px.
   ========================================================== */
.orders-section {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 25%, rgba(220, 6, 16, 0.34), transparent 30%),
    radial-gradient(
      circle at 85% 75%,
      rgba(219, 118, 43, 0.19),
      transparent 28%
    ),
    var(--wine);
  overflow: hidden;
}

.orders-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.22) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 75% 35%,
      rgba(255, 255, 255, 0.16) 0 1px,
      transparent 1.5px
    );
  background-size:
    24px 24px,
    32px 32px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.orders-section > .container {
  position: relative;
  z-index: 1;
}

.orders-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 46px;
}

.orders-heading h2 {
  color: var(--white);
}

.orders-heading > p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-accent);
  font-size: clamp(18px, 2vw, 21px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-card {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-medium);
  box-shadow: 0 20px 54px rgba(20, 6, 6, 0.27);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 650ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 400ms ease;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 36%,
    rgba(30, 7, 6, 0.91) 100%
  );
}

.photo-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.04);
}

.photo-card figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
}

.photo-card figcaption span,
.photo-card figcaption strong {
  display: block;
}

.photo-card figcaption span {
  margin-bottom: 4px;
  color: #ffd3a5;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.photo-card figcaption strong {
  color: var(--white);
  font-family: var(--font-title);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}

.order-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 249, 225, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-medium);
  backdrop-filter: blur(14px);
}

.order-label {
  color: #ffd3a5;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-box h3 {
  max-width: 680px;
  margin: 5px 0 0;
  font-family: var(--font-accent);
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.18;
}

.order-box p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.whatsapp-button {
  flex: 0 0 auto;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 15px 36px rgba(37, 211, 102, 0.22);
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #1ebc58;
  box-shadow: 0 20px 44px rgba(37, 211, 102, 0.34);
}

.whatsapp-button svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.whatsapp-icon {
  width: 30px; /* Cambia el tamaño aquí */
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.floating-whatsapp:hover .whatsapp-icon {
  transform: scale(1.1);
}
/*==========================
FOOTER
==========================*/

/*==========================
RESPONSIVE
==========================*/
/* ==========================================================
   FOOTER
   Orden: Marca | Redes sociales | Contacto
   ========================================================== */
/*=========================================
FOOTER
=========================================*/

.site-footer {
  position: relative;

  z-index: 10;

  background: var(--black);

  color: var(--cream);

  overflow: hidden;
}

.footer-content {
  display: grid;

  grid-template-columns: 1.2fr 1fr 0.8fr;

  gap: 45px;

  align-items: start;

  padding: 50px 0 40px;
}

/*=========================
MARCA
=========================*/

.footer-brand {
  display: flex;

  align-items: center;

  gap: 16px;
}

.footer-brand img {
  width: 90px;

  height: auto;

  display: block;
}

.footer-brand-text strong {
  display: block;

  color: #fff;

  font-size: 22px;

  font-family: var(--font-accent);
}

.footer-brand-text span {
  display: block;

  margin-top: 6px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 14px;
}

/*=========================
TITULOS
=========================*/

.footer-title {
  display: block;

  margin-bottom: 16px;

  color: #fff;

  font-weight: 700;

  letter-spacing: 0.05em;

  text-transform: uppercase;

  font-size: 14px;
}

/*=========================
REDES
=========================*/

.footer-social {
  display: flex;

  flex-direction: column;
}

.social-link {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 14px;

  padding: 12px;

  max-width: 280px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.04);

  transition: 0.25s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);

  transform: translateY(-2px);
}

.social-icon {
  width: 24px;

  height: 24px;

  display: block;

  object-fit: contain;

  flex-shrink: 0;
}

.social-text {
  display: flex;

  flex-direction: column;
}

.social-text strong {
  color: #fff;

  font-size: 14px;
}

.social-text small {
  color: rgba(255, 255, 255, 0.6);

  font-size: 12px;
}

/*=========================
CONTACTO
=========================*/

.footer-contact {
  display: flex;

  flex-direction: column;
}

.footer-contact a {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 14px;

  color: rgba(255, 255, 255, 0.75);

  transition: 0.25s;
}

.footer-contact a:hover {
  color: #fff;

  transform: translateX(4px);
}

.footer-contact-icon {
  color: #ffb478;

  font-size: 18px;
}

.footer-contact-svg {
  width: 20px;

  height: 20px;

  display: block;
}

/*=========================
BOTTOM
=========================*/

.footer-bottom {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 18px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.45);

  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

/*=========================
RESPONSIVE
=========================*/

@media (max-width: 950px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width: 650px) {
  .footer-content {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;

    text-align: center;
  }

  .social-link {
    max-width: 100%;
  }
}

/*==========================
REDES
==========================*/

/*==========================
RESPONSIVE
==========================*/

/* ==========================================================
   12. WHATSAPP FLOTANTE
   ========================================================== */
.floating-whatsapp {
  position: fixed;
  z-index: 900;
  right: clamp(16px, 2.4vw, 26px);
  bottom: clamp(16px, 2.4vw, 26px);
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #25d366;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(9, 44, 21, 0.32);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(37, 211, 102, 0.55);
  border-radius: 50%;
  animation: whatsappPulse 2.2s ease-out infinite;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  background: #1ebc58;
  transform: translateY(-4px) scale(1.03);
}

.floating-whatsapp svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* ==========================================================
   13. ACCESIBILIDAD Y ANIMACIONES
   ========================================================== */
a:focus-visible,
label:focus-visible {
  outline: 3px solid #ffb478;
  outline-offset: 4px;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsappPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.92);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* ==========================================================
   14. PORTÁTILES Y TABLETAS GRANDES
   ========================================================== */
@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-description {
    min-height: 116px;
  }

  .brand {
    width: 86px;
    object-fit: cover;
  }
  }
}

/* ==========================================================
   15. TABLETAS
   ========================================================== */
@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  .brand {
    width: 82px;
    height: 65px;
    object-fit: cover;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 82px;
  }

  .trust-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 190px;
  }

  .trust-card:hover {
    transform: translateY(-6px);
  }

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

  .pillar-card {
    min-height: auto;
  }

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

  .product-description {
    min-height: 94px;
  }

  .orders-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .orders-heading > p {
    max-width: 720px;
  }

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

  .photo-card:first-child {
    grid-column: 1 / -1;
  }

  .order-box {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-social {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* ==========================================================
   16. CELULARES
   Header y menú hamburguesa completamente corregidos.
   ========================================================== */
@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --container: min(100% - 24px, 1220px);
  }

  .site-header,
  .header-content {
    min-height: var(--header-height);
  }

  .brand {
    width: 68px;
    object-fit: cover;
  }

  .menu-button {
    display: flex;
  }

  /* Menú convertido en panel desplegable limpio. */
  .main-nav {
    position: fixed;
    z-index: 5;
    top: calc(var(--header-height) + 8px);
    right: 12px;
    left: 12px;
    display: grid;
    gap: 6px;
    max-height: calc(100svh - var(--header-height) - 24px);
    padding: 14px;
    background: rgba(255, 249, 225, 0.99);
    border: 1px solid rgba(101, 12, 11, 0.12);
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(30, 28, 28, 0.2);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transform-origin: top center;
    visibility: hidden;
    transition:
      opacity 200ms ease,
      transform 240ms ease,
      visibility 200ms ease;
  }

  .main-nav > a {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 17px;
    text-align: left;
  }

  .main-nav > a:not(.nav-order)::after {
    display: none;
  }

  .main-nav .nav-order {
    margin: 6px 0 0;
    text-align: center;
  }

  /* Fondo oscuro suave detrás del menú. */
  .menu-backdrop {
    position: fixed;
    z-index: 4;
    inset: var(--header-height) 0 0;
    display: block;
    background: rgba(30, 28, 28, 0.36);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(3px);
    transition:
      opacity 200ms ease,
      visibility 200ms ease;
  }

  /* Abrir menú. */
  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .nav-toggle:checked ~ .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  /* Hamburguesa a X perfectamente centrada. */
  .nav-toggle:checked + .menu-button .menu-icon {
    background: transparent;
  }

  .nav-toggle:checked + .menu-button .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .menu-button .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hero-photo {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(25, 12, 12, 0.84) 0%,
      rgba(55, 9, 8, 0.83) 63%,
      rgba(30, 28, 28, 0.82) 100%
    );
  }

  .hero-content {
    gap: 34px;
    padding-block: 68px 74px;
  }

  .hero h1 {
    font-size: clamp(66px, 20vw, 96px);
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .trust-panel {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 24px;
  }

  .trust-card {
    grid-template-columns: 56px 1fr;
    min-height: 96px;
    padding: 14px;
  }

  .trust-card:hover {
    transform: translateX(0);
  }

  .trust-icon {
    width: 54px;
    height: 54px;
  }

  .trust-card strong {
    font-size: 32px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .orders-heading h2 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .pillar-card {
    padding: 25px;
    border-radius: 20px;
  }

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

  .product-description {
    min-height: auto;
  }

  .product-content h3 {
    font-size: 40px;
  }

  .price-grid strong {
    font-size: 29px;
  }

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

  .photo-card:first-child {
    grid-column: auto;
  }

  .order-box {
    padding: 24px;
  }

  .whatsapp-button {
    width: 100%;
  }
}

/* ==========================================================
   17. CELULARES PEQUEÑOS
   ========================================================== */
@media (max-width: 430px) {
  :root {
    --container: min(100% - 18px, 1220px);
  }

  .hero-content {
    padding-top: 58px;
  }

  .invima-badge {
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(60px, 19vw, 80px);
  }

  .trust-card {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }

  .trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .trust-icon svg {
    width: 26px;
  }

  .trust-card strong {
    font-size: 29px;
  }

  .trust-card span {
    font-size: 14px;
  }

  .product-content {
    padding: 19px;
  }

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

  .photo-card figcaption {
    right: 17px;
    bottom: 16px;
    left: 17px;
  }
}

/* ==========================================================
   18. USUARIOS QUE PREFIEREN MENOS MOVIMIENTO
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   AJUSTES FINALES DEL CATÁLOGO MINIMALISTA
   Estas reglas tienen prioridad sobre estilos anteriores.
   ========================================================== */
@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-image {
    min-height: 280px;
  }

  .product-info {
    padding: 21px;
  }

  .product-title h3 {
    font-size: 39px;
  }
}

@media (max-width: 420px) {
  .product-prices {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-prices p + p {
    padding: 12px 0 0;
    border-top: 1px solid rgba(101, 12, 11, 0.1);
    border-left: 0;
  }
}
