:root {
  --navy: #0a1f3d;
  --navy-light: #0f2a52;
  --teal: #2bb6c4;
  --teal-dark: #1f97a3;
  --orange: #e8732c;
  --green: #5a9f3c;
  --white: #ffffff;
  --gray-light: #f4f6f8;
  --text-muted: #6b7785;
  --font-display: "Inter", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

#botellas,
#sustentabilidad,
#contacto {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
}

em {
  font-style: italic;
  color: var(--teal);
  font-family: "Architects Daughter", cursive;
  font-weight: 400;
  font-size: 1em;
}

.hero__text h1 em {
  font-size: 1.4em;
}

.brush-underline {
  position: relative;
  display: inline-block;
}

.brush-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: -1%;
  bottom: -0.08em;
  height: 0.16em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C100 9, 200 5, 297 3' stroke='%232bb6c4' stroke-width='9' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.container {
  max-width: 1104px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(43, 182, 196, 0.35);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(43, 182, 196, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}

.btn--outline:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* Nav */
.nav {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 24px;
}

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

.nav__brand img {
  height: 56px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--teal); }

.nav__cta {
  background: var(--teal);
  padding: 0.55rem 1.3rem;
  border-radius: 20px;
}

.nav__cta:hover { background: var(--teal-dark); color: var(--white) !important; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, #134470 100%);
  padding: 6.5rem 0 0;
  min-height: 70vh;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(70vh - 3rem - 140px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.hero__video-wrap {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 75%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
  mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.55;
}

.hero__video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  mix-blend-mode: multiply;
}

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

  .hero {
    padding: 7.5rem 0 0;
    min-height: auto;
  }

  .hero__inner {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 2.5rem;
    gap: 1.5rem;
  }

  .hero__text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hero__text > .btn {
    align-self: center;
  }

  .hero__badge {
    align-self: center;
    width: fit-content;
    max-width: 340px;
    box-sizing: border-box;
    text-align: left;
    padding: 0.8rem 1rem;
  }

  .hero__badge span {
    white-space: nowrap;
  }

  .bottle-row {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: -1.5rem;
  }

  .bottle-row__img {
    width: 78px;
    height: 192px;
  }

  .bottle-row__item--side:first-child { margin-right: -18px; }
  .bottle-row__item--side:last-child { margin-left: -18px; }

}

.hero__text {
  max-width: 480px;
}

.hero__text h1 {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.hero__text p {
  color: #b9c4d4;
  font-size: 1.2rem;
  margin-top: 10px;
  margin-bottom: 1.8rem;
}

.hero__bottles {
  display: flex;
  gap: 1.5rem;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: fit-content;
  max-width: 360px;
}

.hero__badge-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
  padding: 2px;
}

.hero__badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__badge strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.hero__badge span {
  color: #c3cedd;
  font-size: 0.85rem;
  line-height: 1.3;
}

.bottle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -3rem;
}

.bottle-row__item {
  display: flex;
}

.bottle-row__item--side {
  transform: scale(0.85);
  z-index: 1;
}

.bottle-row__item--side:first-child { margin-right: -48px; }
.bottle-row__item--side:last-child { margin-left: -48px; }

.bottle-row__item--center {
  z-index: 2;
}

.bottle-row__img {
  width: 200px;
  height: 490px;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
}

.bottle-row__item--center .bottle-row__img { animation-delay: 0.6s; }
.bottle-row__item--side:last-child .bottle-row__img { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Wave dividers */
.wave-divider {
  display: block;
  width: 100%;
  height: 140px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.wave-divider__svg {
  display: block;
  width: 200%;
  height: 100%;
  animation: wave-flow 36s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes wave-flow {
  0% { transform: translateX(0); }
  50% { transform: translateX(-38%); }
  100% { transform: translateX(-50%); }
}

/* Pillars */
.pillars {
  background: var(--gray-light);
  padding: 0 0 0;
  position: relative;
}

.pillars .container { padding-top: 2.5rem; padding-bottom: 3rem; }

.pillars__layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: stretch;
  gap: 1rem;
}

.pillars__intro {
  text-align: left;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillars__intro h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.pillars__intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pillar {
  background: var(--white);
  border-radius: 18px;
  border-top: 4px solid transparent;
  padding: 2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 10px 30px rgba(10, 31, 61, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 31, 61, 0.12);
}

.pillar:nth-child(2),
.pillar:nth-child(3),
.pillar:nth-child(4) {
  border-top-color: var(--teal);
}

.pillar__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  flex-shrink: 0;
}

.pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pillar h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pillars .wave-divider { margin-top: -1px; }

/* Impact */
.impact {
  background: var(--navy-light);
  position: relative;
}

.impact__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.impact__photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact__photo img {
  width: 88%;
  height: 88%;
  object-fit: cover;
  clip-path: url(#blobClip);
}

.impact__photo-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ring-spin 40s linear infinite;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.impact__text {
  color: var(--white);
}

.impact__text h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.impact__text p {
  color: #b9c4d4;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.impact__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.impact__brand img {
  width: 100%;
  max-width: 160px;
  height: auto;
}

.impact__brand span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: #b9c4d4;
}

/* Contact */
.contact {
  background: var(--gray-light);
  padding: 3rem 0 5.5rem;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__intro h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact__intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

.contact__stats {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  list-style: none;
  margin-bottom: 2.2rem;
}

.contact__stats li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  background: var(--white);
  border-radius: 12px;
  border-left: 3px solid var(--teal);
  box-shadow: 0 6px 18px rgba(10, 31, 61, 0.06);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.contact__stats img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.contact__social svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.contact__social:hover {
  color: var(--teal-dark);
  gap: 0.8rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  padding: 2.2rem;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(10, 31, 61, 0.1);
}

.form__row {
  display: flex;
  gap: 1rem;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--gray-light);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.contact__form textarea { resize: vertical; }

.contact__form .btn { align-self: flex-start; }

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 1.8rem 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand img {
  height: 32px;
  display: block;
}

.footer__copy {
  color: #8392a8;
  font-size: 0.82rem;
}

.footer__back {
  color: #b9c4d4;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer__back:hover { color: var(--teal); }

@media (max-width: 768px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__text h1 { font-size: 2.2rem; }
  .nav__links { gap: 1rem; }
  .impact__inner { grid-template-columns: 1fr; text-align: center; }
  .impact__photo { margin: 0 auto; }
  .form__row { flex-direction: column; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .pillars__layout { grid-template-columns: 1fr; text-align: center; }
  .pillars__intro { text-align: center; padding-right: 0; margin-bottom: 1rem; }

  .bottle-row__img {
    width: 125px;
    height: 307px;
  }

  .bottle-row__item--side:first-child { margin-right: -29px; }
  .bottle-row__item--side:last-child { margin-left: -29px; }

  .hero__text {
    display: contents;
  }

  .hero__text h1,
  .hero__text p {
    width: 100%;
  }

  .hero__text h1 { order: 1; }
  .hero__text p { order: 2; }
  .hero__badge { order: 3; }
  .bottle-row { order: 4; margin-bottom: 1.5rem; }
  .hero__text > .btn { order: 5; }

  .wave-divider {
    height: 36px;
  }

  .hero__text p {
    margin-bottom: 0;
  }

  .hero__badge {
    margin-bottom: 0;
  }
}
