/* ===================================================
   NUBE BLANCA — Landing Page Styles
   =================================================== */

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

:root {
  /* Palette */
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE3;
  --white:        #FFFFFF;
  --gold:         #C4A265;
  --gold-light:   #D4B97A;
  --gold-dark:    #A8883F;
  --brown-dark:   #2B2420;
  --brown-mid:    #5C4F42;
  --brown-light:  #7A6E63;
  --brown-muted:  #A59D94;
  --green:        #3D7A5A;
  --green-light:  #E8F0EB;

  /* Typography */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-label:   'Barlow Semi Condensed', Arial, sans-serif;

  /* Spacing */
  --section-px:   clamp(24px, 6vw, 120px);
  --section-py:   clamp(64px, 8vw, 120px);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-display);
  color: var(--brown-dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Utility --- */
.section-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-title--light {
  color: var(--cream);
}

.section-desc {
  font-size: 18px;
  color: var(--brown-light);
  max-width: 520px;
  line-height: 1.6;
}

/* ===================================================
   HEADER
   =================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 162, 101, 0.15);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header--scrolled {
  background: rgba(250, 247, 242, 0.96);
  box-shadow: 0 2px 24px rgba(43, 36, 32, 0.06);
}

.header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.35) sepia(1) saturate(0.6) hue-rotate(350deg);
}

.header__nav {
  display: flex;
  gap: 36px;
}

.header__link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--brown-mid);
  position: relative;
  transition: color 0.25s var(--ease);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.header__link:hover {
  color: var(--brown-dark);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown-dark);
  border: 1.5px solid var(--brown-dark);
  padding: 10px 28px;
  transition: all 0.3s var(--ease);
}

.header__cta:hover {
  background: var(--brown-dark);
  color: var(--cream);
}

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

.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  transition: all 0.3s var(--ease);
}

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

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

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

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* HERO IMAGE POSITION: adjust the first % to move horizontally (higher = more right) */
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% center;
  opacity: 0.90;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(43, 36, 32, 0.55) 0%,
    rgba(43, 36, 32, 0.3) 40%,
    rgba(43, 36, 32, 0.05) 70%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 140px var(--section-px) 100px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 600px;
  text-shadow: 0 2px 16px rgba(43, 36, 32, 0.25);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(250, 247, 242, 0.85);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero__btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
  border: 2px solid rgba(250, 247, 242, 0.7);
  padding: 16px 40px;
  transition: all 0.35s var(--ease);
}

.hero__btn:hover {
  background: var(--cream);
  color: var(--brown-dark);
  border-color: var(--cream);
}

.hero__btn:hover {
  background: var(--brown-dark);
  color: var(--cream);
}

/* ===================================================
   PRODUCTOS
   =================================================== */
.productos {
  background: var(--cream);
  padding: var(--section-py) 0;
}

.productos__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  text-align: center;
}

.productos__inner .section-desc {
  margin: 0 auto 60px;
}

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

/* Card */
.producto-card {
  background: var(--white);
  border: 1px solid rgba(196, 162, 101, 0.15);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(43, 36, 32, 0.08);
}

.producto-card--featured {
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(196, 162, 101, 0.12);
}

.producto-card__img {
  width: 100%;
  height: 320px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

.producto-card__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.producto-card:hover .producto-card__img img {
  transform: scale(1.05);
}

.producto-card__body {
  padding: 32px 28px;
  text-align: left;
}

.producto-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.producto-card__size {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.producto-card__desc {
  font-size: 16px;
  color: var(--brown-light);
  line-height: 1.55;
  margin-bottom: 20px;
}

.producto-card__ideal {
  border-top: 1px solid var(--cream-dark);
  padding-top: 16px;
  font-size: 14px;
  color: var(--brown-mid);
  line-height: 1.5;
}

.producto-card__ideal-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

/* ===================================================
   BENEFICIOS
   =================================================== */
.beneficios {
  background: var(--brown-dark);
  padding: var(--section-py) 0;
}

.beneficios__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  text-align: center;
}

.beneficios__inner .section-label {
  color: var(--gold-light);
}

.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.beneficio {
  text-align: center;
}

.beneficio__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.beneficio__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 12px;
}

.beneficio__desc {
  font-size: 15px;
  color: var(--brown-muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ===================================================
   SOCIAL / INSTAGRAM
   =================================================== */
.social {
  background: var(--cream);
  padding: var(--section-py) 0;
  overflow: hidden;
}

.social__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  text-align: center;
}

.social__inner .section-title {
  margin-bottom: 48px;
}

.social__carousel {
  position: relative;
  overflow: hidden;
}

.social__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease);
}

.social__slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
}

.social__img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid rgba(196, 162, 101, 0.15);
}

.social__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.social__slide:hover .social__img-wrapper img {
  transform: scale(1.06);
}

.social__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  color: var(--brown-dark);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 3;
}

.social__arrow:hover {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
}

.social__arrow--prev {
  left: 0;
}

.social__arrow--next {
  right: 0;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 80px 0 0;
}

.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 340px;
}

.footer__form {
  display: flex;
  gap: 0;
}

.footer__input {
  flex: 1;
  background: rgba(250, 247, 242, 0.08);
  border: 1.5px solid rgba(250, 247, 242, 0.15);
  border-right: none;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.footer__input::placeholder {
  color: var(--brown-muted);
}

.footer__input:focus {
  border-color: var(--gold);
}

.footer__form-btn {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--brown-dark);
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}

.footer__form-btn:hover {
  background: var(--gold-light);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--brown-muted);
}

.footer__contact-title {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__contact-link {
  display: block;
  font-size: 15px;
  color: var(--brown-muted);
  margin-bottom: 10px;
  transition: color 0.25s var(--ease);
}

.footer__contact-link:hover {
  color: var(--cream);
}

.footer__bottom {
  padding: 28px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--brown-muted);
  font-family: var(--font-label);
  letter-spacing: 0.5px;
}

/* ===================================================
   ANIMATIONS (scroll reveal)
   =================================================== */
[data-aos="up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-aos="up"].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delay */
.productos__grid [data-aos]:nth-child(2) { transition-delay: 0.12s; }
.productos__grid [data-aos]:nth-child(3) { transition-delay: 0.24s; }

.beneficios__grid [data-aos]:nth-child(2) { transition-delay: 0.1s; }
.beneficios__grid [data-aos]:nth-child(3) { transition-delay: 0.2s; }
.beneficios__grid [data-aos]:nth-child(4) { transition-delay: 0.3s; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .productos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .beneficios__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--cream);
    padding: 24px var(--section-px) 32px;
    gap: 20px;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 12px 32px rgba(43, 36, 32, 0.08);
  }

  .header__nav.active {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .header__nav.active .header__link {
    font-size: 18px;
    padding: 4px 0;
  }

  .header__menu-toggle {
    display: flex;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(43, 36, 32, 0.6) 0%,
      rgba(43, 36, 32, 0.35) 60%,
      rgba(43, 36, 32, 0.1) 100%
    );
  }

  .hero__content {
    padding: 120px var(--section-px) 60px;
  }

  .productos__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 24px;
  }

  .beneficios__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .social__slide {
    flex: 0 0 80%;
    min-width: 80%;
  }

  .footer__form {
    flex-direction: column;
  }

  .footer__input {
    border-right: 1.5px solid rgba(250, 247, 242, 0.15);
    border-bottom: none;
  }

  .footer__brand {
    align-items: flex-start;
  }
}
