:root {
  --color-primary: #1b7f4a;
  --color-primary-soft: #e6f4ee;
  --color-accent: #fbbf24;
  --color-bg: #f5f5f7;
  --color-text: #111827;
  --color-muted: #6b7280;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --color-brand: #ed7004;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  padding-top: 100px;
}

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

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

/* Loader */

.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c0c0d;
  z-index: 999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(237, 112, 4, 0.45);
  animation: loader-pulse 1.4s ease-in-out infinite;
}

.loader__logo {
  width: 70%;
  height: auto;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes loader-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(237, 112, 4, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 18px rgba(237, 112, 4, 0);
  }
}

/* Animaciones de aparición */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */

.navbar {
  position: fixed;
      display: flex;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  height: 100px;
}

.navbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__brand {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.navbar__logo {
  height: 60px;
  width: auto;
}

.navbar__divider {
  width: 1px;
  height: 32px;
  background: rgba(15, 23, 42, 0.16);
}

.navbar__title {
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.78rem;
}

/* Hero */

.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
  background-image:
    linear-gradient(120deg, rgba(0, 0, 0, 0.45), rgba(15, 23, 42, 0.35)),
    url("assets/background_hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
}

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

.hero__column--product {
  grid-column: 2;
}

.hero__content {
  width: 100%;
  max-width: 520px;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 2.6rem 2.3rem 2.4rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 0.98rem;
  color: var(--color-muted);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
}

.hero__product-card {
  width: clamp(340px, 40vw, 456px);
  max-width: 100%;
  min-height: clamp(360px, 42vw, 480px);
  background: #ffffff99;
  border-radius: 24px;
  border: 2px solid var(--Terciary-50, #ffffff);
  padding: clamp(2.3rem, 4.5vw, 3.2rem) clamp(1.8rem, 3.5vw, 2.4rem);
  box-shadow: 0 24px 80px -8px rgba(12, 12, 13, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(8px);
}

.hero__product-label {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  color: #004650;
  margin-bottom: 0.8rem;
}

.hero__product-title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 900;
  font-size: 70px;
  line-height: 1.2;
  text-align: center;
  color: #ed7004;
  letter-spacing: 0.08em;
}

.hero__product-list {
  list-style: disc;
  margin-top: 1rem;
  width: 100%;
  padding-left: 1.5rem;
}

.hero__product-list li {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #004650;
  text-align: left;
}

.hero__product-list li + li {
  margin-top: 0.45rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #15803d);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.45);
}

.btn--ghost {
  background: #ffffff;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn--ghost:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

/* Banner */

.banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background-color: #ffffff;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  display: none;
}
.banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  color: var(--color-text);
}

.banner__header {
  margin-bottom: 2rem;
  text-align: center;
}

.banner__header h2 {
  font-size: 2.1rem;
  color: var(--color-text);
}

.banner__cards {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 2.2rem;
}

.banner__card {
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  min-height: 420px;
}

.banner__card--text p {
  font-size: 0.95rem;
}

.banner__card--text p + p {
  margin-top: 0.85rem;
}

.banner__card--text strong {
  font-weight: 600;
}

.banner__card--image {
  background-image: url("assets/background_banner.jpg");
  background-size: cover;
  background-position: center;
  min-width: 456px;
  min-height: 480px;
}

/* Primera tarjeta del banner (texto) */

.banner__card--text {
  background: #ed70040d;
  border: 2px solid #ed7004;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  min-width: 552px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0.2rem;
  border-bottom: 1px solid #000000;
  white-space: nowrap;
}

.banner__row:last-child {
  border-bottom: none;
}

.banner__row-label {
  font-size: 1.2rem;
  font-weight: 500;
}

.banner__row-value {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
}

/* Recomendaciones */

.recomendaciones {
  color:#0c0c0d;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 40px;
  background: #0c0c0d0d;
}

.recomendaciones__inner {
  max-width: 1120px;
  width: 100%;
}

.recomendaciones__header {
  text-align: center;
  margin-bottom: 2rem;
}

.recomendaciones__header h2 {
  font-size: 2rem;
  color: var(--color-text);
}

.recomendaciones__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
}

.reco-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.reco-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.reco-card:nth-child(1) .reco-card__image {
  background-image: url("assets/rec_1.jpg");
}

.reco-card:nth-child(2) .reco-card__image {
  background-image: url("assets/rec_2.jpg");
}

.reco-card:nth-child(3) .reco-card__image {
  background-image: url("assets/rec_3.jpg");
}

.reco-card:nth-child(4) .reco-card__image {
  background-image: url("assets/rec_4.jpg");
}

.reco-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.reco-card__body p {
  font-size: 0.92rem;
  color: #1e2431;
}

/* Footer */

.footer {
  position: relative;
  background-image: url("assets/background-footer.jpg");
  background-size: cover;
  background-position: center;
  margin-top: auto;
  color: #f9fafb;
}



.footer__content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 48px;
  font-size: 0.88rem;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer__info {
  color: #ffffff;
}

.footer__line {
  margin: 0.1rem 0;
}

.footer__line--strong {
  font-weight: 700;
}

.footer__brand {
  flex-shrink: 0;
}

.footer__logo {
  max-height: 64px;
  width: auto;
}

.footer__bottom {
  margin-top: 1.8rem;
  text-align: center;
  border-top: 1px solid rgba(249, 250, 251, 0.85);
  padding-top: 1rem;
}

.footer__bottom-text {
  color: #f9fafb;
}

/* Botón volver arriba */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    box-shadow 0.2s ease;
  z-index: 90;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Utilidades */

@media (max-width: 1024px) {
  .banner__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner__card--text,
  .banner__card--image {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 24px 16px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__column--product {
    grid-column: auto;
    justify-content: center;
  }

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

  .footer { 
   
    background-position: bottom !important; 
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
     .footer { 
    background-size: 650px!important;
    background-position: bottom !important; 
  }
  .hero {
    padding: 24px 16px;
    min-height: calc(100vh - 72px);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__column--product {
    margin-top: 1.2rem;
  }

  .hero__product-card {
    max-width: 100%;
    min-height: auto;
    padding: 2.1rem 1.7rem 2.2rem;
  }

  .hero__product-title {
    font-size: 42px;
  }

  .hero__product-list li {
    font-size: 20px;
  }

  .banner {
    padding: 24px 16px;
  }

  .banner__cards {
    gap: 1.4rem;
  }

   .banner__row {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    padding: 1rem 0.1rem;
  }



  .banner__card--text,
  .banner__card--image {
    min-width: 0;
  }

  .recomendaciones {
    padding: 24px 16px 32px;
  }

  .recomendaciones__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reco-card__image {
    height: 150px;
  }

  .footer__content {
    padding: 32px 16px 40px;
  }

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

  .footer__logo {
    max-height: 52px;
  }

  .navbar__logo {
    height: 32px;
  }
}

@media (min-width: 1044px) {
  .hero__inner {
    grid-template-columns: 552px auto;
    justify-content: center;
  }

  .hero__column {
    justify-content: flex-start;
  }
}
