/* =====================================================
   SUPERMERCADO ENTRE AMIGOS — Estilos principales
   Diseño mobile-first, sin frameworks ni dependencias.
   ===================================================== */

:root {
  --green-950: #0a2c20;
  --green-900: #103d2c;
  --green-800: #18553c;
  --green-700: #21734e;
  --green-600: #2f8e5f;
  --green-500: #48a96f;
  --lime: #b9db55;
  --lime-soft: #eaf4bf;
  --cream: #f7f3e8;
  --sand: #ece5d4;
  --white: #ffffff;
  --ink: #173128;
  --muted: #61726b;
  --line: #dfe8e2;
  --surface: #f7faf8;
  --shadow-sm: 0 10px 32px rgba(15, 61, 43, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 61, 43, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --transition: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 108px 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Barra superior */
.topbar {
  color: rgba(255, 255, 255, 0.88);
  background: var(--green-950);
  font-size: 0.78rem;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar p,
.topbar a {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar a {
  color: var(--lime);
  font-weight: 700;
}

/* Cabecera y navegación */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  border-color: rgba(23, 49, 40, 0.07);
  box-shadow: 0 8px 30px rgba(10, 44, 32, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 48px;
  height: 48px;
  transition: transform var(--transition);
}

.brand:hover img {
  transform: rotate(-4deg) scale(1.04);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__copy strong {
  color: var(--green-900);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__copy span {
  margin-top: 4px;
  color: var(--green-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 700;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #3f514a;
  font-size: 0.89rem;
  font-weight: 650;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--green-800);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Botones */
.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  background: var(--green-700);
  border: 1px solid var(--green-700);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(33, 115, 78, 0.18);
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button:hover {
  background: var(--green-800);
  box-shadow: 0 14px 30px rgba(33, 115, 78, 0.26);
  transform: translateY(-2px);
}

.button--small {
  min-height: 42px;
  padding-inline: 20px;
  font-size: 0.84rem;
}

.button--outline {
  color: var(--green-800);
  background: transparent;
  border-color: #aebdb5;
  box-shadow: none;
}

.button--outline:hover {
  color: var(--white);
  border-color: var(--green-800);
}

/* Hero */
.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 243, 232, 0.96), rgba(241, 248, 242, 0.76)),
    radial-gradient(circle at 70% 30%, #dcefcf, transparent 44%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(#287b54 0.75px, transparent 0.75px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 5%, black, transparent 88%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  min-height: 690px;
  padding: 70px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(430px, 1.07fr);
  align-items: center;
  gap: 34px;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 27px;
  height: 2px;
  background: var(--lime);
}

.hero h1,
.section-heading h2,
.about__content h2,
.contact__intro h2 {
  margin: 0;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3.15rem, 6.1vw, 5.9rem);
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--green-700);
  font-weight: 600;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 4px;
  height: 9px;
  background: url("assets/underline.svg") center / 100% 100% no-repeat;
}

.hero__lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: #52665d;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.75;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  margin-top: 44px;
  padding-top: 26px;
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(23, 49, 40, 0.12);
}

.hero__facts > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: var(--green-800);
  background: rgba(185, 219, 85, 0.33);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero__facts p {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hero__facts strong { font-size: 0.88rem; }
.hero__facts p span { margin-top: 4px; color: var(--muted); font-size: 0.74rem; }

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.82);
  border-radius: 52% 48% 47% 53% / 45% 51% 49% 55%;
  box-shadow: var(--shadow-lg);
  animation: hero-shape 9s ease-in-out infinite;
}

.hero__image-wrap img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.floating-card--fresh { top: 12%; left: -5%; }
.floating-card--open { right: -2%; bottom: 13%; }

.floating-card > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green-600);
  border-radius: 50%;
  font-weight: 900;
}

.floating-card i {
  width: 11px;
  height: 11px;
  background: #55bd70;
  border: 3px solid #d9f6df;
  border-radius: 50%;
  box-sizing: content-box;
}

.floating-card p {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.floating-card strong { font-size: 0.78rem; }
.floating-card small { margin-top: 3px; color: var(--muted); font-size: 0.67rem; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.hero__orb--one {
  top: 12%;
  right: 2%;
  width: 130px;
  height: 130px;
  background: rgba(185, 219, 85, 0.27);
}

.hero__orb--two {
  right: 44%;
  bottom: -70px;
  width: 190px;
  height: 190px;
  background: rgba(72, 169, 111, 0.13);
}

@keyframes hero-shape {
  0%, 100% { border-radius: 52% 48% 47% 53% / 45% 51% 49% 55%; }
  50% { border-radius: 47% 53% 51% 49% / 52% 46% 54% 48%; }
}

/* Encabezados de sección */
.section-heading {
  margin-bottom: 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.section-heading h2,
.about__content h2,
.contact__intro h2 {
  font-size: clamp(2.35rem, 4.1vw, 4rem);
}

.section-heading > p {
  max-width: 470px;
  margin: 0 0 4px;
  color: var(--muted);
}

.section-heading--center {
  display: block;
  text-align: center;
}

.section-heading--center .eyebrow { justify-content: center; }

/* Categorías */
.category-section {
  background: var(--white);
}

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

.category-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #edf1ee;
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  border-color: #cadbd1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-6px);
}

.category-card--accent {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  background: rgba(185, 219, 85, 0.11);
  border-radius: 50%;
}

.category-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #e5f1e8;
  border-radius: 18px;
  font-size: 2rem;
  transform: rotate(-3deg);
}

.category-card__icon--lime { background: #e7f2c9; }
.category-card__icon--orange { background: #f9e5ce; }
.category-card__icon--blue { background: #dcecf4; }
.category-card__icon--yellow { background: #f7edc6; }
.category-card__icon--mint { background: #d7eee5; }
.category-card__icon--cream { background: rgba(255, 255, 255, 0.13); }

.category-card h3 {
  margin: 24px 0 8px;
  color: var(--green-950);
  font-size: 1.1rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.category-card > span {
  position: absolute;
  bottom: 24px;
  left: 30px;
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-card--accent h3,
.category-card--accent p,
.category-card--accent > span { color: var(--white); }
.category-card--accent p { opacity: 0.76; }
.category-card--accent > span { color: var(--lime); }

/* Ofertas */
.offers {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
}

.offers::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -120px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.016);
}

.offers .container { position: relative; z-index: 1; }
.section-heading--light h2 { color: var(--white); }
.section-heading--light > p { color: rgba(255, 255, 255, 0.62); }
.eyebrow--light { color: var(--lime); }

.offer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.offer-card {
  min-height: 380px;
  overflow: hidden;
  color: var(--ink);
  background: #f5f0df;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

.offer-card:hover { transform: translateY(-5px); }
.offer-card--pantry { background: #f2e3cd; }
.offer-card--home { background: #dbece5; }

.offer-card__art {
  height: 170px;
  padding: 24px 28px 0;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 110%, rgba(33, 115, 78, 0.2), transparent 53%);
}

.offer-card__emoji {
  display: block;
  font-size: clamp(3.5rem, 6vw, 5.7rem);
  filter: drop-shadow(0 16px 12px rgba(25, 67, 46, 0.13));
  transform: translateY(10px) rotate(-7deg);
}

.offer-card__emoji:nth-child(2) { transform: translateY(2px) rotate(6deg); }
.offer-card__emoji:nth-child(3) { transform: translateY(13px) rotate(9deg); }

.offer-card__body {
  min-height: 210px;
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
}

.tag {
  width: fit-content;
  padding: 5px 9px;
  color: var(--green-900);
  background: var(--lime-soft);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--warm { background: #f7cb9d; }
.tag--aqua { background: #c1dfd2; }

.offer-card h3 {
  margin: 17px 0 8px;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.12;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.offers__note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.75rem;
  text-align: center;
}

/* Beneficios */
.benefits { background: var(--cream); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #d9dfd6;
  border: 1px solid #d9dfd6;
  border-radius: var(--radius-md);
}

.benefit {
  position: relative;
  min-height: 315px;
  padding: 36px 30px;
  background: var(--white);
}

.benefit__number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #d5ded8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.benefit__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: #edf4ea;
  border-radius: 50%;
}

.benefit__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.benefit h3 {
  margin: 29px 0 10px;
  color: var(--green-950);
  font-size: 1.05rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

/* Nosotros */
.about__grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 9%;
}

.about__visual {
  position: relative;
  min-height: 520px;
}

.about__panel {
  position: absolute;
  z-index: 2;
  inset: 28px 30px 28px 0;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--green-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__quote-mark {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 0.5;
}

.about__panel > p {
  margin: 24px 0 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.about__signature {
  display: flex;
  align-items: center;
  gap: 13px;
}

.about__signature img {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: var(--white);
  border-radius: 50%;
}

.about__signature span { display: flex; flex-direction: column; line-height: 1.3; }
.about__signature strong { font-size: 0.85rem; }
.about__signature small { color: rgba(255, 255, 255, 0.62); font-size: 0.7rem; }

.about__pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-color: var(--lime-soft);
  background-image: radial-gradient(var(--green-600) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.about__content > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.about__values {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.about__values span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-900);
  font-size: 0.86rem;
  font-weight: 750;
}

.about__values i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: var(--green-800);
  background: var(--lime-soft);
  border-radius: 50%;
  font-size: 0.65rem;
  font-style: normal;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-weight: 800;
}

.text-link span { transition: transform var(--transition); }
.text-link:hover span { transform: translateX(5px); }

/* Contacto */
.contact { padding-top: 30px; }

.contact__shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  color: var(--white);
  background: var(--green-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact__shell::before {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border: 70px solid rgba(185, 219, 85, 0.07);
  border-radius: 50%;
}

.contact__intro {
  position: relative;
  z-index: 1;
  padding: 70px 60px;
}

.contact__intro h2 { color: var(--white); }
.contact__intro > p:not(.eyebrow) { margin: 24px 0 34px; color: rgba(255, 255, 255, 0.65); }

.button--cream {
  color: var(--green-950);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: none;
}

.button--cream:hover { color: var(--white); background: var(--green-600); border-color: var(--green-600); }

.contact__details {
  position: relative;
  z-index: 1;
  padding: 62px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 34px;
  background: rgba(255, 255, 255, 0.055);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item {
  display: flex;
  gap: 14px;
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.contact-item__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 0.8rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.contact-item a:hover { color: var(--lime); }
.button--whatsapp {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  color: var(--green-950);
  background: var(--lime);
  border-color: var(--lime);
}

.button--whatsapp:hover {
  color: var(--green-950);
  background: #d3f36f;
  border-color: #d3f36f;
}

/* Pie */
.site-footer {
  padding: 70px 0 24px;
  color: var(--white);
  background: #071e16;
}

.footer__top {
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand--footer .brand__copy strong { color: rgba(255, 255, 255, 0.74); }
.brand--footer .brand__copy span { color: var(--lime); }

.footer__slogan {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.footer__nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 650;
}

.footer__nav a:hover { color: var(--lime); }

.footer__bottom {
  padding-top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, 0.36);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
}

.footer__bottom p { margin: 0; }

/* Accesos flotantes y asistente virtual */
.floating-actions {
  position: fixed;
  z-index: 1100;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-action {
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(10, 44, 32, 0.25);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.floating-action:hover {
  box-shadow: 0 16px 34px rgba(10, 44, 32, 0.32);
  transform: translateY(-3px);
}

.floating-action svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.floating-action--whatsapp { background: #25a95b; }
.floating-action--whatsapp:hover { background: #1f914d; }
.floating-action--chat { background: var(--green-900); }
.floating-action--chat:hover,
.floating-action--chat[aria-expanded="true"] { color: var(--green-950); background: var(--lime); }

.chatbot {
  position: fixed;
  z-index: 1090;
  right: 22px;
  bottom: 94px;
  width: min(380px, calc(100vw - 44px));
  max-height: min(570px, calc(100vh - 125px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 61, 44, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 65px rgba(10, 44, 32, 0.25);
  animation: chatbot-in 220ms ease-out;
}

.chatbot[hidden] { display: none; }

@keyframes chatbot-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.chatbot__header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  background: var(--green-900);
}

.chatbot__header strong,
.chatbot__header span { display: block; }
.chatbot__header strong { font-size: 0.95rem; }
.chatbot__header span { margin-top: 2px; color: rgba(255, 255, 255, 0.64); font-size: 0.7rem; }

.chatbot__close {
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.chatbot__close:hover { background: rgba(255, 255, 255, 0.16); }
.chatbot__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.chatbot__messages {
  height: 260px;
  padding: 20px;
  overflow-y: auto;
  background: var(--cream);
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-message--bot {
  color: var(--ink);
  background: var(--white);
  border-bottom-left-radius: 5px;
  box-shadow: 0 5px 16px rgba(10, 44, 32, 0.07);
}

.chat-message--user {
  margin-left: auto;
  color: var(--white);
  background: var(--green-700);
  border-bottom-right-radius: 5px;
}

.chatbot__quick-replies {
  padding: 12px 14px 4px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  background: var(--white);
}

.chatbot__quick-replies button {
  padding: 7px 10px;
  flex: 0 0 auto;
  color: var(--green-800);
  background: var(--lime-soft);
  border: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.chatbot__quick-replies button:hover { background: var(--lime); }

.chatbot__form {
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  background: var(--white);
}

.chatbot__form input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
}

.chatbot__form input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(47, 142, 95, 0.12); }
.chatbot__form button { display: grid; place-items: center; color: var(--white); background: var(--green-700); border: 0; border-radius: 50%; cursor: pointer; }
.chatbot__form button:hover { background: var(--green-900); }
.chatbot__form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.back-to-top {
  position: fixed;
  z-index: 900;
  left: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green-700);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(10, 44, 32, 0.23);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--green-900); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* Animaciones activadas por JavaScript */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.2,.75,.25,1);
}

.js .reveal.reveal--delay { transition-delay: 130ms; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1050px) {
  .main-nav { gap: 19px; }
  .hero__grid { grid-template-columns: 1fr 0.95fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer-card--main { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; }
  .offer-card--main .offer-card__art { height: 100%; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__intro { padding: 60px 44px; }
  .contact__details { padding: 52px 42px; grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .topbar__inner { justify-content: center; }
  .topbar a { display: none; }
  .nav-wrap { min-height: 70px; }
  .menu-toggle { margin-left: auto; display: block; }
  .main-nav {
    position: absolute;
    z-index: 10;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    margin: 0;
    padding: 20px;
    display: grid;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 44, 32, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 12px 16px; border-radius: 10px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a.is-active { background: var(--surface); }
  .hero, .hero__grid { min-height: auto; }
  .hero__grid { padding: 64px 0 84px; grid-template-columns: 1fr; gap: 56px; }
  .hero__content { max-width: 650px; }
  .hero__visual { width: min(100%, 570px); margin-inline: auto; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .section-heading--center { display: block; }
  .about__grid { grid-template-columns: 1fr; gap: 54px; }
  .about__visual { min-height: 470px; }
  .contact { padding-top: 10px; }
  .contact__shell { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__slogan { display: none; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 70px 0; }
  .topbar { font-size: 0.69rem; }
  .topbar__inner { min-height: 34px; }
  .brand img { width: 43px; height: 43px; }
  .brand__copy strong { font-size: 0.65rem; }
  .brand__copy span { font-size: 1.12rem; }
  .hero__grid { padding: 52px 0 68px; gap: 48px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.25rem); }
  .hero__lead { margin-top: 24px; }
  .hero__actions { display: grid; }
  .hero__actions .button { width: 100%; }
  .hero__facts { margin-top: 34px; gap: 20px; }
  .fact-icon { width: 39px; height: 39px; flex-basis: 39px; }
  .hero__facts strong { font-size: 0.76rem; }
  .hero__facts p span { font-size: 0.67rem; }
  .hero__image-wrap { border-width: 8px; }
  .floating-card { padding: 10px 12px; }
  .floating-card--fresh { left: -1%; top: 5%; }
  .floating-card--open { right: -1%; bottom: 7%; }
  .floating-card > span { width: 30px; height: 30px; }
  .floating-card strong { font-size: 0.69rem; }
  .floating-card small { font-size: 0.59rem; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .about__content h2, .contact__intro h2 { font-size: clamp(2.2rem, 11vw, 3.15rem); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 245px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-card--main { grid-column: auto; display: block; }
  .offer-card--main .offer-card__art { height: 170px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { min-height: 270px; }
  .about__visual { min-height: 420px; }
  .about__panel { inset: 18px 16px 18px 0; padding: 35px; }
  .about__panel > p { font-size: 1.85rem; }
  .about__content > p:not(.eyebrow) { font-size: 0.94rem; }
  .contact__shell { width: calc(100% - 20px); border-radius: 27px; }
  .contact__intro, .contact__details { padding: 42px 27px; }
  .contact__details { grid-template-columns: 1fr; gap: 26px; }
  .footer__top { display: flex; align-items: flex-start; flex-direction: column; }
  .footer__nav { flex-wrap: wrap; justify-content: flex-start; gap: 16px 22px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .floating-actions { right: 15px; bottom: 15px; gap: 9px; }
  .floating-action { width: 52px; height: 52px; }
  .chatbot { right: 12px; bottom: 80px; width: calc(100vw - 24px); max-height: calc(100vh - 100px); }
  .chatbot__messages { height: min(260px, 36vh); }
  .back-to-top { left: 15px; bottom: 15px; }
}

@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; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Accesibilidad del foco con teclado */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
