/* ===================== VARIABLES & BASE ===================== */
:root {
  /* Verdes principales (valores efectivos actuales) */
  --verde-oscuro: #05686e;
  --verde-claro:  #0a8d95;
  --verde1: var(--verde-oscuro);
  --verde2: var(--verde-claro);

  /* Naranja */
  --naranja: #f39c12;

  /* Precio */
  --precio-color: #E9C1A4;

  /* Fondos */
  --fondo:        #F2F2F2;
  --blanco:       #FFFFFF;
  --gris-fondo: #f8f9fa;

  /* Texto */
  --texto:        #2E2E2E;

  /* Sombras */
  --sombra:       0 8px 20px rgba(0,0,0,0.10);
  --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transiciones */
  --transicion:   all 0.3s ease;
}

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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--fondo);
  background-color: #f4f4f4;
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ===================== HEADER & NAVEGACIÓN ===================== */
.header {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-claro));
  padding: 1.2rem 1.5rem 4rem;
  position: relative;
  color: var(--blanco);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max, 1240px);
  margin: 0 auto;
  position: relative;
  z-index: 20;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}

.logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo {
    height: 60px;
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.1rem;
  align-items: center;
}

.nav-list a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transicion);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.nav-list a:hover {
  color: var(--naranja);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--blanco);
  font-size: 1.65rem;
  cursor: pointer;
  border-radius: 12px;
  width: 48px;
  height: 48px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--verde-oscuro);
    flex-direction: column;
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 1rem;
    border-radius: 0 0 0 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-list.open { display: flex; }

  .nav-list > li {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list > li > a,
  .nav-list > li > .cart-icon-container {
    width: 100%;
    justify-content: flex-start;
  }

  .controles-superiores {
    flex-direction: column;
  }
}

/* Submenú */
.nav-list .submenu {
  display: none;
  position: absolute;
  background: #05686E;
  padding: 10px 0;
  border-radius: 14px;
  min-width: 240px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.nav-list .has-submenu:hover .submenu {
  display: block;
}

.nav-list .submenu li a {
  display: block;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;
}

.nav-list > li {
  display: flex;
  align-items: center;
}

.nav-list .submenu li {
  margin: 0;
}

.has-submenu {
  position: relative;
}

.submenu {
  top: 100%;
  left: 0;
}

.nav-list > li > a,
.nav-list > li > .cart-icon-container {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-list .has-submenu .submenu {
    position: static;
    display: block;
    background: transparent;
    border-radius: 0;
    padding: 0.4rem 0 0 0.75rem;
    min-width: 0;
    width: 100%;
    box-shadow: none;
  }

  .nav-list .has-submenu .submenu li a {
    padding: 0.35rem 0;
    font-size: 0.92rem;
    white-space: normal;
  }
}

/* ===================== WAVES ===================== */
.waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.waves {
  position: relative;
  width: 100%;
  height: 12vh;
  min-height: 100px;
  max-height: 150px;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
}

/* ===================== FORM ELEMENTS ===================== */
select, input[type="search"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

select:focus, input:focus {
  border-color: var(--verde-claro);
}

/* ===================== CHIPS ===================== */
.chip {
  padding: 10px 22px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 50px;
  font-weight: 600;
  color: var(--verde-oscuro);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 0.55rem;
}

.chip:hover {
  border-color: var(--verde-claro);
  background-color: #f0f7f7;
}

.chip.active {
  background: var(--verde-claro) !important;
  color: white !important;
  border-color: var(--verde-claro) !important;
  box-shadow: 0 4px 10px rgba(5, 104, 110, 0.3);
  transform: translateY(-2px);
}

/* ===================== BOTONES ===================== */
.btn-principal,
.btn-secundario {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transicion);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-principal {
  background-color: var(--naranja);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-principal:hover {
  background-color: #e66000;
  transform: translateY(-2px);
}

.btn-secundario {
  background-color: #075e54;
  color: white;
  box-shadow: 0 4px 12px rgba(7, 94, 84, 0.15);
}

.btn-secundario:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

/* ===================== HOME LANDING ===================== */
.hero-fullscreen {
  width: 100%;
  padding: 5.4rem 0 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-layout {
  display: flex;
  width: min(92%, var(--max, 1240px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0;
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde-claro);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  color: var(--verde-oscuro);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--naranja);
  display: block;
}

.hero-content p,
.hero-lead {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.hero-actions .btn-principal,
.hero-actions .btn-secundario {
  width: auto;
  min-width: 190px;
  padding-inline: 1.25rem;
}

.hero-visual {
  flex: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-visual-card {
  width: 100%;
  max-width: 620px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4.5rem 2rem 2rem;
  border-radius: 30px;
  border: 1px solid #dbe7ea;
  background:
    radial-gradient(circle at top right, rgba(243, 156, 18, 0.16), transparent 26%),
    linear-gradient(155deg, #ffffff 0%, #edf5f6 100%);
  box-shadow: 0 28px 50px rgba(4, 38, 42, 0.12);
  min-width: 0;
}

.hero-visual-badges {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-visual-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(5, 104, 110, 0.12);
  color: var(--verde-oscuro);
  font-size: 0.88rem;
  font-weight: 700;
}

.slider-container {
  width: 100%;
  max-width: 620px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 300%;
  animation: slowSlide 18s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero-fullscreen .slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-fullscreen .slide img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hero-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid #d6e4e7;
  background: #ffffff;
  color: #114048;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(4, 38, 42, 0.06);
}

.hero-quick-link:hover {
  text-decoration: none;
  border-color: var(--verde-claro);
  transform: translateY(-2px);
}

.hero-checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  max-width: 640px;
  padding: 0;
  margin: 0;
}

.hero-checks li {
  position: relative;
  padding-left: 1.35rem;
  color: #35505d;
  font-weight: 600;
}

.hero-checks li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--naranja);
  font-size: 1.2rem;
  line-height: 1;
}

@keyframes slowSlide {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(-33.333%); }
  66%, 96% { transform: translateX(-66.666%); }
  100% { transform: translateX(0); }
}

.home-trust-strip,
.home-intents,
.categorias-grid-inicio {
  padding: 3.5rem 1.2rem;
}

.home-trust-strip {
  background: linear-gradient(180deg, #f7fafa 0%, #ffffff 100%);
}

.home-trust-grid,
.home-intents-grid,
.beneficios-grid {
  max-width: var(--max, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.home-section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--verde-claro);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.82rem;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 2.5rem);
  color: var(--verde-oscuro);
  line-height: 1.15;
}

.home-section-heading p:last-child {
  margin: 0.9rem auto 0;
  color: #4b5563;
  line-height: 1.7;
}

.trust-card,
.intent-card,
.beneficio {
  background: #fff;
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid #e8eff2;
}

.trust-card:hover,
.intent-card:hover,
.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.trust-card strong,
.intent-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--verde-oscuro);
  font-size: 1.1rem;
}

.trust-card p,
.intent-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.intent-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding-top: 1.9rem;
}

.intent-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 141, 149, 0.1);
  color: var(--verde-oscuro);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.beneficio h3 {
  color: var(--verde-oscuro);
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.beneficio p {
  font-size: 0.95rem;
  color: #4b5563;
}

.beneficios-home {
  padding: 3.5rem 1.2rem;
  background: #f7f9fa;
}

.ofertas-banner {
  background: var(--naranja);
  color: #fff;
  overflow: hidden;
  padding: 11px 0;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.ofertas-track {
  display: inline-block;
  animation: scroll-banner 32s linear infinite;
}

.ofertas-track span {
  display: inline-block;
  padding: 0 32px;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.ofertas-banner:hover .ofertas-track {
  animation-play-state: paused;
}

@keyframes scroll-banner {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.usos-home {
  padding: 3.5rem 1.2rem;
}

.usos-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.95rem;
}

.uso {
  background: var(--verde-claro);
  color: #fff;
  padding: 1.15rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.97rem;
  font-weight: 600;
}

.categorias-grid-inicio {
  padding: 3.5rem 1.2rem;
  background: #fff;
}

.titulo-centrado {
  text-align: center;
  font-size: 2rem;
  color: var(--verde-oscuro);
  margin-bottom: 2.4rem;
}

.home-grid-container,
.grid-container {
  max-width: var(--max, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.cat-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid #e6ecef;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.cat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.cat-img {
  height: 210px;
  overflow: hidden;
}

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

.cat-copy {
  padding: 1rem 1rem 1.15rem;
}

.cat-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(243, 156, 18, 0.12);
  color: #b56600;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cat-card h3 {
  margin: 0 0 0.45rem;
  color: var(--verde-oscuro);
  font-size: 1.06rem;
}

.cat-card p {
  color: #4b5563;
  font-size: 0.94rem;
  padding: 0;
  line-height: 1.6;
}

.seo-home {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.6rem 1.2rem 3rem;
  text-align: center;
}

.seo-home h2 {
  color: var(--verde-oscuro);
  margin-bottom: 0.9rem;
}

.seo-home p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.95rem;
}

.cta-newsletter {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-claro));
  color: #fff;
  text-align: center;
  padding: 3.4rem 1.2rem;
}

.cta-newsletter h2 {
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
}

.cta-newsletter p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.btn-whatsapp-rect {
  display: inline-block;
  margin-top: 0.8rem;
  background: #25d366;
  color: #fff;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-whatsapp-rect:hover {
  background: #1fb659;
  transform: translateY(-2px);
}

.home-offers {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.home-offers-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.home-offers-header h2 {
  color: var(--verde-oscuro);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.home-offers-header p {
  color: #475569;
  margin: 0;
}

.home-offers-grid {
  margin-top: 1rem;
}

.home-offers-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.home-offers-actions .btn-principal {
  width: auto;
  min-width: 220px;
}

/* ===================== PAGE CONTENT ===================== */
.page .content {
  margin-top: 1rem;
}

.page .content-page {
  display: grid;
  gap: 1.2rem;
}

.page .content-page-section {
  background: #fff;
  border: 1px solid #e8edf1;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

.page .content-page-section h2,
.page .content-page-section h3 {
  color: var(--verde-oscuro);
  margin: 0 0 0.7rem;
}

.page .content-page-section p,
.page .content-page-section li {
  color: #334155;
}

.page .content-page-section ul {
  padding-left: 1.1rem;
}

.page .content-page-cta {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--naranja);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font-weight: 700;
}

.page .content-page-cta:hover {
  background: #e68600;
}

.page .content-contact-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page .content-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem;
}

.home-editorial {
  margin-top: 1.3rem;
  margin-bottom: 1.1rem;
}

.home-editorial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1.2rem 1.1rem;
}

.home-editorial-card h2 {
  margin: 0 0 0.65rem;
  color: var(--verde-oscuro);
}

.home-editorial-content {
  color: #334155;
  line-height: 1.7;
}

.home-editorial-content h1,
.home-editorial-content h2,
.home-editorial-content h3 {
  color: var(--verde-oscuro);
}

.home-editorial-content table {
  width: 100%;
  border-collapse: collapse;
}

.home-editorial-content th,
.home-editorial-content td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
}

.contact-form-wrap {
  margin-top: 1.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem;
}

.contact-form-wrap h2 {
  color: var(--verde-oscuro);
  margin: 0 0 0.35rem;
}

.contact-form-subtitle {
  color: #475569;
  margin-bottom: 0.9rem;
}

.contact-alert {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.contact-alert.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.contact-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-form-grid label {
  font-weight: 600;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-grid label.full,
.contact-form-grid .full {
  grid-column: 1 / -1;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
}

.contact-form-grid textarea {
  resize: vertical;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  border-color: var(--verde-claro);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(10, 141, 149, 0.18);
}

.contact-form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.contact-form-actions .btn-principal,
.contact-form-actions .btn-secundario {
  width: auto;
  min-width: 210px;
  border: none;
}

.error-page {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.error-page-card {
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  text-align: center;
  padding: 2rem 1.4rem;
}

.error-code {
  margin: 0 0 0.3rem;
  color: var(--verde-claro);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.error-page-card h1 {
  margin: 0;
  color: var(--verde-oscuro);
}

.error-page-card p {
  margin: 0.7rem auto 0;
  max-width: 42ch;
  color: #475569;
}

.error-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.error-actions .btn-principal,
.error-actions .btn-secundario {
  width: auto;
  min-width: 180px;
}

@media (max-width: 992px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .hero-content p,
  .hero-lead,
  .hero-checks {
    max-width: 100%;
  }

  .hero-visual {
    order: -1;
    width: 100%;
  }

  .hero-visual-card {
    min-height: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-fullscreen,
  .beneficios-home,
  .usos-home,
  .home-trust-strip,
  .home-intents,
  .categorias-grid-inicio,
  .cta-newsletter {
    padding-inline: 1rem;
  }

  .hero-fullscreen {
    padding-top: 5.6rem;
  }

  .hero-layout {
    width: 100%;
    gap: 1.25rem;
  }

  .hero-content,
  .hero-visual {
    width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero-visual-card {
    padding: 4rem 1rem 1.25rem;
    border-radius: 24px;
  }

  .hero-visual-badges {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .hero-quick-links {
    gap: 0.55rem;
  }

  .hero-quick-link {
    flex: 1 1 100%;
  }

  .hero-checks {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn-principal,
  .hero-actions .btn-secundario {
    width: 100%;
  }

  .home-trust-grid,
  .home-intents-grid {
    grid-template-columns: 1fr;
  }

  .home-grid-container,
  .grid-container {
    grid-template-columns: 1fr;
  }

  .cat-img {
    height: 220px;
  }

  .titulo-centrado {
    font-size: 1.7rem;
  }

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

  .contact-form-actions .btn-principal,
  .contact-form-actions .btn-secundario {
    width: 100%;
  }
}

/* ===================== GRID COMPARTIDO ===================== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  width: 100%;
}

/* ===================== WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 96px;
  right: 24px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 86px;
    right: 16px;
  }
}

.tooltip-whatsapp {
  position: absolute;
  right: 75px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .tooltip-whatsapp {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse-whatsapp {
  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); }
}

@media (max-width: 768px) {
  .tooltip-whatsapp { display: none; }
}

/* ===================== FOOTER ===================== */
.main-footer {
  background-color: var(--verde-oscuro);
  color: #e0e0e0;
  padding: 5rem 1.5rem 2rem;
  margin-top: 4rem;
  position: relative;
  border-top: 4px solid var(--naranja);
}

.footer-container {
  max-width: var(--max, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  color: var(--blanco);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--naranja);
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-col p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-links a {
  background: rgba(255,255,255,0.1);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.social-links a:hover {
  background: var(--naranja);
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-link {
  color: #cfd8dc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: var(--naranja);
}

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

@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .footer-col h3::after { left: 50%; transform: translateX(-50%); }
  .social-links { justify-content: center; }
  .footer-bottom-content { justify-content: center; }
}

.footer-logo-color {
  background-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  height: 75px;
  padding: 0;
}

.google-map {
  margin-top: 10px;
  filter: grayscale(0.3) contrast(1.1);
  transition: filter 0.3s ease;
}

.google-map:hover { filter: grayscale(0); }

.footer-col .google-map iframe {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ===================== CARRITO / TOAST ===================== */
.cart-icon-container { position: relative; }

.btn-cart-header {
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  background: none;
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s;
}

.icon-cart {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.btn-cart-header:hover {
  background: rgba(255,255,255,0.12);
}

#carrito-contador-header,
#carrito-contador-flotante {
  background: #e63946;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.cart-floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27ae60;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 1.4rem;
  cursor: pointer;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  gap: 0.35rem;
  padding: 0;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.cart-floating-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.cart-floating-btn .icon-cart {
  width: 26px;
  height: 26px;
}

@media (max-width: 768px) {
  .cart-floating-btn {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }
}

.sidebar {
  position: fixed;
  right: -350px;
  top: 0;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  z-index: 10000;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 0;
}

.sidebar.open { right: 0; }

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eff1f3;
}

.sidebar-heading {
  display: grid;
  gap: 4px;
}

.sidebar-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
}

.sidebar-heading p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sidebar-header button {
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.sidebar-header button:hover {
  background: #e2e8f0;
}

#carrito-items-lateral {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
  background: #fff;
  border-top: 1px solid #eff1f3;
}

.sidebar-shipping-summary {
  margin-bottom: 12px;
}

.sidebar-shipping-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbf8 0%, #eef7f4 100%);
  border: 1px solid #d4ebe1;
}

.sidebar-shipping-label {
  color: #1f6b52;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-shipping-card strong {
  color: #113527;
  font-size: 0.96rem;
}

.sidebar-shipping-card p {
  margin: 0;
  color: #456357;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sidebar-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-total-row span {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-total-row strong {
  margin: 0;
  color: #0f172a;
  font-size: 1.18rem;
}

.sidebar-total-meta {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.img-carrito-min {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

.img-placeholder {
  background: #f1f5f9;
}

.item-carrito-lat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  justify-content: flex-start;
}

.item-info {
  min-width: 0;
  flex: 1;
}

.item-link,
.item-info strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.item-link:hover {
  color: var(--verde-oscuro);
}

.item-variante {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.item-price-meta {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
}

.item-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.item-controles button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  line-height: 1;
}

.item-controles button:hover {
  background: #f8fafc;
}

.item-precio-eliminar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.subtotal-item {
  font-weight: bold;
  color: var(--verde-oscuro);
  font-size: 0.9rem;
}

.btn-eliminar {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-eliminar:hover {
  color: #b91c1c;
}

.btn-ws {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1aa34a);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ws:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(37, 211, 102, 0.45);
}

.btn-ws:active {
  transform: translateY(0);
}

.btn-clear-cart {
  width: 100%;
  border: 1px solid #dbe3ea;
  background: #fff;
  color: #334155;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-clear-cart:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-ws:disabled,
.btn-clear-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.carrito-vacio {
  text-align: center;
  padding: 1.6rem 0.4rem;
  color: #64748b;
}

.carrito-vacio-title {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1rem;
}

.carrito-vacio p {
  margin: 0;
  line-height: 1.55;
}

.carrito-vacio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0a66c2;
  font-weight: 700;
  text-decoration: none;
}

.carrito-vacio-link:hover {
  background: #dbeafe;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  body.product-detail-page .cart-floating-btn {
    bottom: 100px;
  }

  body.product-detail-page .whatsapp-float {
    bottom: 170px;
  }
}

.toast {
  position: fixed;
  top: 20px;
  right: -300px;
  background: #27ae60;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show { right: 20px; }

.toast.success {
  background: #16a34a;
}

.toast.error {
  background: #dc2626;
}

.toast-contenido {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icono { font-size: 1.2rem; }

.toast p {
  margin: 0;
  font-weight: 500;
}

#carrito-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#carrito-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
