/* ========================================
   VARIABLES
======================================== */

:root {
  --color-white: #ffffff;
  --color-orange: #ff6b00;
  --color-orange-hover: #ff8126;

  --overlay-top: rgba(0, 0, 0, 0.48);
  --overlay-middle: rgba(0, 0, 0, 0.58);
  --overlay-bottom: rgba(0, 0, 0, 0.78);

  --content-width: 1050px;

  /* Tamaños para escritorio */
  --quote-size-desktop: 3.4rem;
  --title-size-desktop: 3rem;
  --description-size-desktop: 1.3rem;

  /* Tamaños para móvil */
  --quote-size-mobile: 1.75rem;
  --title-size-mobile: 2rem;
  --description-size-mobile: 1.05rem;
}


/* ========================================
   REINICIO BÁSICO
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background-color: #101010;
  color: var(--color-white);
}


/* ========================================
   FONDO PRINCIPAL
======================================== */

.hero {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100svh;

  padding:
    clamp(3rem, 8vw, 7rem)
    clamp(1.25rem, 5vw, 4rem);

  background-image: url("./img/fondo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* Degradado oscuro sobre la imagen */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      180deg,
      var(--overlay-top) 0%,
      var(--overlay-middle) 50%,
      var(--overlay-bottom) 100%
    );
}


/* ========================================
   CONTENIDO
======================================== */

.hero__content {
  width: min(100%, var(--content-width));
  margin-inline: auto;

  text-align: center;
}


/* ========================================
   CITA
======================================== */

.quote {
  margin: 0 auto;
  max-width: 950px;
}

.quote__icon {
  display: block;

  color: var(--color-orange);

  font-family: Georgia, serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.65;
}

.quote__icon--top {
  margin-bottom: 1.5rem;
}

.quote__icon--bottom {
  margin-top: 1.8rem;
}

.quote__text {
  margin: 0;

  font-size: clamp(
    var(--quote-size-mobile),
    4vw,
    var(--quote-size-desktop)
  );

  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;

  text-wrap: balance;

  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.65);
}

.quote__author {
  margin-top: 1.5rem;
}

.quote__author cite {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 400;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.75);
}

.quote__author cite::before {
  content: "— ";
}


/* ========================================
   DIVISOR
======================================== */

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

  width: min(100%, 520px);
  margin:
    clamp(3rem, 7vw, 5rem)
    auto
    clamp(2.5rem, 6vw, 4rem);

  gap: 1.2rem;
}

.divider__line {
  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--color-orange)
    );
}

.divider__line:last-child {
  background:
    linear-gradient(
      90deg,
      var(--color-orange),
      transparent
    );
}

.divider__icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 54px;
  height: 54px;

  border: 2px solid var(--color-orange);
  border-radius: 50%;

  font-size: 1.5rem;
}


/* ========================================
   LLAMADO A LA ACCIÓN
======================================== */

.call-to-action {
  max-width: 900px;
  margin-inline: auto;
}

.call-to-action__title {
  margin: 0;

  font-size: clamp(
    var(--title-size-mobile),
    4vw,
    var(--title-size-desktop)
  );

  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;

  text-wrap: balance;

  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.7);
}

.call-to-action__title span {
  color: var(--color-orange);
}

.call-to-action__description {
  max-width: 820px;
  margin:
    clamp(1.5rem, 4vw, 2.2rem)
    auto
    0;

  font-size: clamp(
    var(--description-size-mobile),
    2vw,
    var(--description-size-desktop)
  );

  line-height: 1.75;

  text-wrap: pretty;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.75);
}


/* ========================================
   BOTÓN
======================================== */

.call-to-action__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.9rem;

  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.1rem 2.2rem;

  border: 2px solid transparent;
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #ff8a00,
      var(--color-orange)
    );

  color: var(--color-white);

  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;

  text-decoration: none;
  text-transform: uppercase;

  box-shadow:
    0 14px 30px rgba(255, 107, 0, 0.3);

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.call-to-action__button span {
  font-size: 1.5em;
  line-height: 1;

  transition:
    transform 180ms ease;
}

.call-to-action__button:hover {
  transform: translateY(-3px);

  box-shadow:
    0 18px 38px rgba(255, 107, 0, 0.42);
}

.call-to-action__button:hover span {
  transform: translateX(5px);
}

.call-to-action__button:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 5px;
}

.call-to-action__button:active {
  transform: translateY(0);
}


/* ========================================
   TABLETAS
======================================== */

@media (max-width: 900px) {

  .hero {
    background-position: center;
  }

  .quote__text {
    line-height: 1.3;
  }

}


/* ========================================
   MÓVILES
======================================== */

@media (max-width: 600px) {

  .hero {
    min-height: 100svh;

    padding:
      3rem
      1.25rem;

    background-position: center;
  }

  .quote__icon {
    font-size: 4.5rem;
  }

  .quote__icon--top {
    margin-bottom: 1rem;
  }

  .quote__icon--bottom {
    margin-top: 1.4rem;
  }

  .quote__text {
    font-size: var(--quote-size-mobile);
    line-height: 1.35;
  }

  .divider {
    margin:
      3rem
      auto
      2.5rem;
  }

  .divider__icon {
    width: 46px;
    height: 46px;

    font-size: 1.25rem;
  }

  .call-to-action__title {
    font-size: var(--title-size-mobile);
  }

  .call-to-action__description {
    font-size: var(--description-size-mobile);
    line-height: 1.65;
  }

  .call-to-action__button {
    width: 100%;
    max-width: 360px;

    padding:
      1rem
      1.4rem;

    font-size: 0.95rem;
  }

}


/* ========================================
   PANTALLAS MUY PEQUEÑAS
======================================== */

@media (max-width: 380px) {

  .quote__text {
    font-size: 1.5rem;
  }

  .call-to-action__title {
    font-size: 1.75rem;
  }

}


/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}