/* ==============================
   VARIABLES & RESET
============================== */
:root {
  /* Paleta Esektextil */
  --bordo:          #7B2035;
  --bordo-dark:     #5a1727;
  --beige:          #F2EDE4;
  --beige-dark:     #E8E1D5;
  --negro:          #111111;
  --gris:           #9A9590;
  --gris-topo:      #5C5550;
  --blanco:         #FFFFFF;
  --verde-wa:       #25D366;
  --verde-wa-hover: #1ebe57;

  /* Asignaciones semánticas */
  --color-bg:       var(--beige);
  --color-surface:  var(--blanco);
  --color-text:     var(--negro);
  --color-muted:    var(--gris-topo);
  --color-accent:   var(--bordo);
  --color-border:   #DDD8D0;

  /* Tipografía — Google Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container:   1200px;
  --section-v:   5.5rem;
  --radius:      10px;
  --radius-sm:   6px;
  --gap:         1.5rem;
  --header-h:    72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; }
ul   { list-style: none; }

/* ==============================
   UTILITIES
============================== */
.container {
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
}

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

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.label--center { display: block; text-align: center; }
.label--light  { color: rgba(255,255,255,0.65); }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__sub {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }

/* Placeholder images */
.placeholder-img {
  background: linear-gradient(135deg, #DDD8D0 0%, #C8C2BA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris);
  font-size: 0.78rem;
  font-style: italic;
  font-family: var(--font-body);
}

/* Icons */
.icon      { width: 1.1em; height: 1.1em; vertical-align: middle; flex-shrink: 0; }
.icon--sm  { width: 0.9em; height: 0.9em; }
.icon--accent { color: var(--color-accent); }

/* ==============================
   SCROLL ANIMATIONS
============================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-36px);
}
.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(36px);
}
.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.88);
}
.reveal--scale.is-visible {
  transform: scale(1);
}

/* Stagger grid: children animate in sequence */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--color-accent);
  color: var(--blanco);
}
.btn--primary:hover {
  background: var(--bordo-dark);
  box-shadow: 0 4px 14px rgba(123,32,53,0.3);
}

.btn--whatsapp {
  background: var(--verde-wa);
  color: var(--blanco);
}
.btn--whatsapp:hover {
  background: var(--verde-wa-hover);
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.btn--outline-light {
  border-color: rgba(255,255,255,0.6);
  color: var(--blanco);
  background: transparent;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--blanco);
}

.btn--lg   { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ==============================
   HEADER
============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Scrolled state — JS añade clase */
.header.is-scrolled {
  background: var(--blanco);
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

/* Logo en nav */
.nav__logo { margin-right: auto; display: flex; align-items: center; }

.nav__logo-img {
  height: 46px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}
.nav__logo-img:hover { opacity: 0.85; }

/* Burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, background 0.35s ease;
  transform-origin: center;
}
/* Burger color cuando header es blanco */
.header.is-scrolled .nav__burger span { background: var(--negro); }

/* Burger → X */
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav menu */
.nav__menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--blanco);
  padding: 1.5rem 4%;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.nav__menu.is-open { display: flex; }

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 1023px) {
  .nav__links li {
    border-bottom: 1px solid var(--color-border);
  }
  .nav__links li:last-child {
    border-bottom: none;
  }
  .nav__link {
    display: block;
    padding: 0.75rem 0;
  }
}

.nav__link {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--color-accent); }

/* Links del nav cuando el header es transparente (sobre hero) */
.header:not(.is-scrolled) .nav__link {
  color: rgba(255,255,255,0.85);
}
.header:not(.is-scrolled) .nav__link:hover {
  color: var(--blanco);
}
/* En el dropdown móvil siempre oscuros, independiente del scroll */
.nav__menu.is-open .nav__link {
  color: var(--color-muted);
}
.nav__menu.is-open .nav__link:hover {
  color: var(--color-accent);
}

.nav__cta { align-self: flex-start; }

/* ==============================
   HERO
============================== */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, #1c0810 0%, #3d1020 45%, #7B2035 100%);
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); /* compensa el padding-top del body */
  padding-top: var(--header-h);
}

/* Textura sutil sobre el hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(123,32,53,0.15) 0%, rgba(0,0,0,0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 660px;
}

/* Logo en el hero */
.hero__logo {
  height: 110px;
  width: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  /* Sombra para que respire en el fondo oscuro */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: #E8C090;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.2); }
}

/* ==============================
   STATS STRIP
============================== */
.stats-strip {
  background: var(--bordo);
  padding: 2.25rem 0;
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.stat-item {
  text-align: center;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-item__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #E8C090;
}

.stat-item__plus {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #E8C090;
  line-height: 1;
  align-self: flex-start;
  margin-top: 0.2rem;
  /* inline next to number via flex trick */
  display: inline;
}

/* Posicionar número + signo en la misma línea */
.stat-item {
  position: relative;
}
.stat-item .stat-item__num,
.stat-item .stat-item__plus {
  display: inline;
}
.stat-item__row {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #E8C090;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}

/* ==============================
   SOBRE ESEKTEXTIL
============================== */
.about { background: var(--color-surface); }

.about__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__text p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about__info {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.about__info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.about__image {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, #DDD8D0 0%, #C8C2BA 100%);
}

.about__image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* ==============================
   UBICACIÓN
============================== */
.location { background: var(--color-bg); }

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.location__map iframe { display: block; }

.location__ctas { display: flex; justify-content: center; }

/* ==============================
   PRODUCTOS
============================== */
.products { background: var(--color-surface); }

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

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--blanco);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.11);
  transform: translateY(-5px);
}

.product-card__image {
  height: 230px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #DDD8D0 0%, #C8C2BA 100%);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}

.product-card__colors {
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--color-border);
}

/* Paleta de swatches dentro de cada card */
.color-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.color-swatches img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blanco);
  box-shadow: 0 0 0 1px var(--color-border);
  transition: transform 0.15s;
  cursor: default;
}
.color-swatches img:hover {
  transform: scale(1.25);
  z-index: 1;
}

.color-swatches__more {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 2px;
}

/* ==============================
   SUBLIMACIÓN
============================== */
.sublimacion {
  position: relative;
  background: linear-gradient(135deg, #1a0a10 0%, #5a1727 50%, #7B2035 100%);
  text-align: center;
  overflow: hidden;
}

.sublimacion__overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.sublimacion__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
}

.sublimacion__title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sublimacion__text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ==============================
   RESEÑAS
============================== */
.reviews { background: var(--beige-dark); }

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

.review-card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.review-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.review-card__stars {
  color: #F5A623;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: 1px;
}

.review-card__google {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

.review-card__text {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.7;
}

/* ==============================
   GALERÍA
============================== */
.gallery { background: var(--color-surface); }

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.gallery__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #DDD8D0 0%, #C8C2BA 100%);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.2s;
}
.gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

/* ==============================
   TROPICAL MECÁNICO — GALERÍA
============================== */
.tropical-section {
  background: var(--beige);
}

.tropical-section__intro {
  max-width: 640px;
  margin: 0 auto;
}

.tropical-section__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.tropical-section__color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: calc((100% - 1.5rem) / 3);
}

.tropical-section__color-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #DDD8D0 0%, #C8C2BA 100%);
}

.tropical-section__color-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tropical-section__color-item:hover .tropical-section__color-img img {
  transform: scale(1.07);
}

.tropical-section__color-name {
  font-size: 0.68rem;
  font-family: var(--font-body);
  color: var(--gris-topo);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tropical-section__cta {
  text-align: center;
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: var(--negro);
  color: rgba(255,255,255,0.7);
  padding-top: 3.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo-img {
  height: 64px;
  width: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer__info-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 0.85rem;
}

.footer__info-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer__info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer__info-list a {
  text-decoration: none;
  color: var(--verde-wa);
  transition: opacity 0.2s;
}
.footer__info-list a:hover { opacity: 0.8; }

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s, transform 0.2s;
}
.footer__social-link:hover {
  color: var(--blanco);
  transform: translateX(3px);
}
.footer__social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.footer__bottom {
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

/* ==============================
   BUSCADOR DE CATÁLOGO
============================== */
.catalog-search {
  position: relative;
  max-width: 400px;
  margin: 0 auto 2.5rem;
}

.catalog-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--gris);
  pointer-events: none;
  flex-shrink: 0;
}

.catalog-search__input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--blanco);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.catalog-search__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(123,32,53,0.1);
}
.catalog-search__input::placeholder {
  color: var(--gris);
}

.catalog-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.catalog-empty a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==============================
   BOTÓN VOLVER ARRIBA
============================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(123,32,53,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--bordo-dark);
  box-shadow: 0 6px 20px rgba(123,32,53,0.45);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ==============================
   WHATSAPP FLOTANTE
============================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde-wa);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.2s;
  text-decoration: none;
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  background: var(--verde-wa-hover);
  transform: scale(1.12);
  animation: none;
}
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

/* ==============================
   MOBILE  ≤ 639px — ajustes específicos
============================== */
@media (max-width: 639px) {

  /* Reduce el espaciado vertical de secciones */
  :root { --section-v: 3rem; }

  /* Hero: más compacto en pantallas chicas */
  .hero__content { padding: 2rem 0 3rem; }
  .hero__logo    { height: 80px; margin-bottom: 1.25rem; }

  /* Botones del hero: apilados y full-width */
  .hero__ctas             { flex-direction: column; }
  .hero__ctas .btn        { width: 100%; justify-content: center; }

  /* Mapa: menos alto en mobile */
  .location__map iframe   { height: 280px; }

  /* Buscador: ocupa todo el ancho en mobile */
  .catalog-search         { max-width: 100%; }

  /* Previene auto-zoom en iOS (requiere font-size >= 16px en inputs) */
  .catalog-search__input  { font-size: 1rem; }

  /* Link de Instagram en sección Nosotros */
  .about__info-item a     { color: var(--color-accent); font-weight: 500; }
}

/* ==============================
   TABLET  ≥ 640px
============================== */
@media (min-width: 640px) {
  .stats-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .tropical-section__color-item {
    width: calc((100% - 3rem) / 5);
  }
}

/* ==============================
   DESKTOP  ≥ 1024px
============================== */
@media (min-width: 1024px) {

  /* Nav horizontal */
  .nav__burger { display: none; }

  .nav__menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: static;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    top: auto;
  }

  .nav__links {
    flex-direction: row;
    gap: 1.85rem;
  }

  /* About — 2 col */
  .about__grid {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .about__text  { flex: 1; }
  .about__image {
    flex: 1;
    min-height: 460px;
  }
  .about__image .placeholder-img { min-height: 460px; }

  /* Productos — 4 col */
  .products__grid { grid-template-columns: repeat(4, 1fr); }

  /* Reseñas — 3 col */
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }

  /* Tropical — 7 col (flexbox, última fila centrada) */
  .tropical-section__color-item { width: calc((100% - 4.5rem) / 7); }

  /* Footer — 3 col */
  .footer__grid { grid-template-columns: 2fr 1.5fr 1fr; }
}
