/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.header__nav.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.header__link {
  display: block;
  padding: 0.75rem 1.25rem;
  width: 100%;
  text-align: center;
  font-weight: 500;
  color: #333;
  transition: background 0.2s;
}

.header__link:hover {
  background: #E8F5E9;
  color: #0B9135;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #1ebe5a;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === Hero === */
.hero {
  position: relative;
  background: #076B25;
  color: #fff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 107, 37, 0.72);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* === Section Title === */
.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0B9135;
  text-align: center;
  margin-bottom: 2rem;
}

/* === Productos === */
.productos {
  padding: 4rem 0;
  background: #fff;
}

.productos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: #f9fdf9;
  border: 1px solid #E8F5E9;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(11, 145, 53, 0.12);
  transform: translateY(-4px);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0B9135;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* === Suelos === */
.suelos {
  padding: 4rem 0;
  background: #f9fdf9;
}

.suelos__intro {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
}

.suelos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.suelo-card {
  background: #fff;
  border: 1px solid #E8F5E9;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.suelo-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.suelo-card__icon svg {
  width: 100%;
  height: 100%;
}

.suelo-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0B9135;
  margin-bottom: 0.35rem;
}

.suelo-card__benefit {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* === Nosotros === */
.nosotros {
  padding: 4rem 0;
  background: #E8F5E9;
}

.nosotros__stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0B9135;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.9rem;
  color: #555;
}

.nosotros__text {
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: #333;
  line-height: 1.8;
}

/* === Caso de Éxito === */
.caso {
  padding: 4rem 0;
  background: #fff;
}

.caso__comparison {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.caso__item {
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.caso__item--humix {
  background: #E8F5E9;
  border: 2px solid #0B9135;
}

.caso__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.caso__item-body {
  padding: 1.25rem;
  text-align: center;
}

.caso__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: #e0e0e0;
  color: #555;
  margin-bottom: 0.5rem;
}

.caso__badge--green {
  background: #0B9135;
  color: #fff;
}

.caso__age {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0.25rem 0 0.5rem;
}

.caso__item--humix .caso__age {
  color: #0B9135;
}

.caso__desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.caso__vs {
  font-size: 1.25rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
}

.caso__quote {
  background: #f9fdf9;
  border-left: 4px solid #0B9135;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
}

.caso__quote p {
  font-size: 1rem;
  font-style: italic;
  color: #333;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.caso__quote cite {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: #0B9135;
}

/* === Contacto === */
.contacto {
  padding: 4rem 0;
  background: #fff;
}

.contacto__inner {
  text-align: center;
}

.contacto__text {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contacto__phone {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #777;
}

/* === Footer === */
.footer {
  background: #076B25;
  color: #fff;
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.footer__copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === Floating WhatsApp FAB === */
.fab-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 90;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* === Desktop (768px+) === */
@media (min-width: 768px) {
  .header__menu-btn {
    display: none;
  }

  .header__nav {
    display: flex;
    position: static;
    box-shadow: none;
    padding: 0;
    gap: 0.25rem;
  }

  .header__link {
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .hero {
    padding: 6rem 0 5rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .productos__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .card {
    padding: 2.5rem 2rem;
  }

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

  .nosotros__stats {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }

  .caso__comparison {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }

  .caso__item {
    flex: 1;
  }

  .caso__vs {
    display: flex;
    align-items: center;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
