/* =========================================
   1. VARIABLES & CONFIGURACIÓN
   ========================================= */
:root {
  /* Paleta de Colores: Tierra y Naturaleza */
  --sand: #FDEDCE;
  /* Fondo principal */
  --sand-glass: rgba(253, 237, 206, 0.85);

  --olive: #545A37;
  /* Acento verde */
  --olive-light: rgba(84, 90, 55, 0.14);

  --terracotta: #F4723C;
  /* Acento vibrante */
  --rust: #8D3A23;
  /* Acento oscuro */

  --ink: #1F1C17;
  /* Texto principal */
  --muted: rgba(31, 28, 23, 0.72);
  /* Texto secundario */
  --stroke: rgba(31, 28, 23, 0.12);
  /* Bordes sutiles */

  --deep-green: #2b4521;
  /* Verde profundo para avisos */

  --card-bg: rgba(255, 255, 255, 0.55);
  --shadow-soft: 0 14px 40px rgba(31, 28, 23, 0.08);
  --shadow-hover: 0 18px 34px rgba(244, 114, 60, 0.15);

  /* Dimensiones y Tipografías */
  --container-width: 1120px;
  --header-height: 120px;
  --radius: 18px;
  --radius-lg: 26px;

  --serif: "EB Garamond", serif;
  --sans: "Mulish", system-ui, sans-serif;

  --ease: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Tipografía Base */
h1,
h2,
h3 {
  font-family: var(--serif);
  margin-top: 0;
  line-height: 1.1;
}

p {
  margin-top: 0;
}

/* Accesibilidad */
.skip-link {
  position: absolute;
  left: -999px;
  top: 20px;
  background: #fff;
  padding: 15px 20px;
  z-index: 1000;
  border-radius: 8px;
  font-weight: bold;
}

.skip-link:focus {
  left: 20px;
}

/* =========================================
   3. HEADER & NAVEGACIÓN
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sand-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0;
}

/* Marca / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(135deg, var(--olive), var(--rust));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 16px rgba(31, 28, 23, 0.1);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.02);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.brand-tagline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--rust);
}

/* Menú */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn) {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rust);
  transition: width 0.3s ease;
}

.nav a:not(.btn):hover {
  color: var(--rust);
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* =========================================
   4. COMPONENTES GLOBALES (Botones y Cards)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  box-shadow: 0 10px 20px rgba(244, 114, 60, 0.25);
  transition: var(--ease);
  cursor: pointer;
}

.btn:hover {
  background: #E05D28;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--stroke);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--ink);
  box-shadow: none;
}

.btn--small {
  padding: 8px 18px;
  font-size: 13px;
}

/* Grid Genérico */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card Genérica (Usada en filosofía) */
.card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--ease);
}

.card:hover {
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--olive-light);
  color: var(--olive);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* Títulos y textos generales de card */
.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* Estructura de Secciones */
.section {
  padding: 80px 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.25);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 42px;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 18px;
  max-width: 60ch;
  color: var(--muted);
}

/* =========================================
   5. HERO (Inicio)
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: none;
}

.hero--dynamic {
  text-align: center;
  color: #fff;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: background-image 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 24px;
  color: var(--ink);
}

.hero--dynamic h1 {
  color: #fff;
}

.hero--dynamic .accent {
  color: var(--sand);
}

.accent {
  color: var(--rust);
  font-style: italic;
}

/* =========================================
  ENLACES HERO (Minimalista)
   ========================================= */
.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Responsive para móviles pequeños */
@media (max-width: 900px) {
  .hero-inner {
    text-align: center;
    padding: 40px 0;
  }
}

/* =========================================
   6. EXPERIENCIAS
   ========================================= */
.experiences-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.experience-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 28, 23, 0.12);
}

.experience-card__image-wrapper {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.experience-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.experience-card:hover .experience-card__image {
  transform: scale(1.05);
}

.badge-floating {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--olive);
  backdrop-filter: blur(4px);
}

.experience-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experience-card .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.experience-card h3 {
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 14px 0;
}

.experience-card p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Lista de amenidades en experiencia */
.amenities-list {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.amenities-list li {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.experience-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
  margin-top: auto;
}

/* Card completamente clickeable */
.experience-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
}

.experience-card-link:hover .experience-card {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 28, 23, 0.12);
}

.experience-card-link:hover .experience-card__image {
  transform: scale(1.05);
}

/* =========================================
   7. PRODUCTOS (Botica Natural)
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Card Específica de Producto */
.card--product {
  padding: 0;
  /* Override del padding general para que la imagen toque bordes */
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__image-box {
  position: relative;
  height: 250px;
  width: 100%;
  overflow: hidden;
  background-color: var(--sand);
}

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

.card--product:hover .card__image-box img {
  transform: scale(1.04);
}

/* Etiqueta 'Best Seller' */
.tag-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rust);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card__content .description {
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
  /* Empuja el botón al final si hay diferencia de altura */
}

/* Lista de características del producto */
.feature-list {
  margin-bottom: 20px;
  border-top: 1px solid var(--stroke);
  padding-top: 16px;
}

.feature-list li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Enlace tipo botón al final de la card */
.btn-link {
  display: block;
  text-align: center;
  width: 100%;
  padding: 12px;
  background: rgba(253, 237, 206, 0.5);
  /* Sand muy suave */
  color: var(--rust);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  transition: var(--ease);
}

.btn-link:hover {
  background: var(--sand);
  color: var(--terracotta);
}

/* =========================================
   8. CONTACTO & FOOTER
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-box {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--ease);
}

.contact-box:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.contact-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-box-header .icon {
  font-size: 28px;
}

.contact-box-header h3 {
  margin: 0;
  font-size: 20px;
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.store-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  transition: var(--ease);
}

.store-card:hover {
  background: var(--sand);
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(244, 114, 60, 0.1);
}

.store-card img {
  transition: filter 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.store-card:hover img {
  /* Convierte la imagen a negra y luego la tiñe del color Terracotta (#F4723C) */
  filter: brightness(0) saturate(100%) invert(53%) sepia(82%) saturate(2501%) hue-rotate(344deg) brightness(101%) contrast(93%);
}

.store-name {
  font-weight: 700;
}

.store-arrow {
  color: var(--terracotta);
  font-weight: bold;
  font-size: 18px;
}

/* WhatsApp contact: inline por defecto (desktop) */
.whatsapp-contact {
  display: inline;
}

.whatsapp-name,
.whatsapp-number {
  display: inline;
}

/* =========================================
   ANIMATIONS (Scroll Premium)
   ========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

/* Footer */
.site-footer {
  padding: 40px 0;
  background: rgba(253, 237, 206, 0.6);
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin-left: 20px;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--rust);
}

/* =========================================
   HAMBURGER MENU
   ========================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--olive-light);
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* X cuando el menú está abierto */
.nav-toggle--open .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle--open .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  :root {
    --header-height: 90px;
  }

  /* 1. Títulos de sección más pequeños en mobile */
  .section-head h2 {
    font-size: 30px;
  }

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

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

  .trust-row {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .video-wrapper {
    max-width: 500px;
  }

  .brand {
    /* logo a la izq, hamburger a la der */
  }

  .brand-text {
    flex-grow: 1;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    display: none;
  }

  /* Mostrar hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Menú colapsado por defecto */
  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--sand-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      padding 0.35s ease;
    z-index: 99;
  }

  /* Menú abierto */
  .nav.nav--open {
    max-height: 320px;
    padding: 8px 0 16px;
  }

  /* 5. Todas las opciones del menú móvil con mismo estilo */
  .nav a {
    width: 100%;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--stroke);
    display: block;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-top: none;
    border-left: none;
    border-right: none;
    text-align: left;
    letter-spacing: normal;
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  /* 4. WhatsApp contact: nombre y número en líneas separadas */
  .whatsapp-contact {
    display: flex;
    flex-direction: column;
  }

  .whatsapp-number {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
  }
}

@media (max-width: 768px) {
  .experience-card {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .video-wrapper {
    max-width: 400px;
  }

  .experience-card__image-wrapper {
    height: 250px;
    min-height: auto;
    max-height: none;
    aspect-ratio: auto;
    background-color: #000;
  }

  .experience-card__image {
    border-radius: 0;
    object-fit: contain;
  }

  .experience-card__content {
    padding: 24px;
  }

  .experience-card__footer {
    justify-content: flex-start;
  }

  /* 2. Ocultar amenities en mobile — la info está en la página de la cabaña */
  .amenities-list {
    display: none;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

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

/* =========================================
   NEEDS SECTION (Encuentra tu bienestar)
   ========================================= */
.needs-section {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--stroke);
}


.needs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.need-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.need-card:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--terracotta);
}

.need-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--olive-light);
  font-size: 38px;
  transition: transform 0.3s ease;
}

.need-card:hover .need-card__icon {
  transform: scale(1.1);
}

.need-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.need-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .needs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .needs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .need-card {
    padding: 28px 16px 24px;
    gap: 12px;
  }

  /* Centrar el quinto elemento */
  .need-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 8px);
  }

  .need-card__icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .need-card__title {
    font-size: 15px;
  }
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.18);
}

.trust-bar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}

.trust-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.3s ease;
}

.trust-bar__item img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.8);
}

.trust-bar__item img[alt="Suburbia"] {
  filter: grayscale(100%) opacity(0.5);
}

.trust-bar__item svg,
.trust-bar__item i {
  opacity: 0.8;
  filter: grayscale(100%);
}

.trust-bar__item i {
  font-size: 20px;
}

.trust-bar__item:hover {
  color: var(--ink);
}

.trust-bar__item:hover img,
.trust-bar__item:hover svg,
.trust-bar__item:hover i {
  filter: grayscale(0%) opacity(1);
  opacity: 1;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.whatsapp-float:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  color: #fff;
}

.whatsapp-float__text {
  white-space: nowrap;
  margin-left: 10px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    overflow: hidden;
    animation: wa-expand-collapse 5s ease-in-out forwards;
  }

  /* Evitar animación automática en la home */
  body.home-page .whatsapp-float {
    animation: none;
  }

  /* Disparar animación en home por scroll */
  body.home-page .whatsapp-float.wa-trigger {
    animation: wa-expand-collapse 5s ease-in-out forwards;
  }

  .whatsapp-float__text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: wa-text-expand-collapse 5s ease-in-out forwards;
  }

  body.home-page .whatsapp-float__text {
    animation: none;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }

  body.home-page .whatsapp-float.wa-trigger .whatsapp-float__text {
    animation: wa-text-expand-collapse 5s ease-in-out forwards;
  }
}

@keyframes wa-expand-collapse {
  0% {
    padding: 14px;
  }

  10% {
    padding: 14px 22px;
  }

  80% {
    padding: 14px 22px;
  }

  100% {
    padding: 14px;
  }
}

@keyframes wa-text-expand-collapse {
  0% {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }

  10% {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
  }

  80% {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
  }

  100% {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}