/* ===================================================
   RESERVA TRIVEE — Próximamente
   =================================================== */

:root {
  --navy: rgb(20, 47, 83);
  --blue-mid: rgb(0, 85, 121);
  --blue-bright: rgb(0, 125, 171);

  --white: #ffffff;
  --off-white: #f6f8fa;
  --neutral-100: #eef1f4;
  --neutral-300: #c7cdd4;
  --neutral-600: #5c6773;
  --neutral-900: #1c2530;

  --font: 'Montserrat', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.6s var(--ease);

  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--neutral-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 640px; }

/* ===== Utility: eyebrow ===== */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 16px;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.75); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  position: relative;
}

.btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

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

.btn--solid {
  color: var(--white);
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  width: 100%;
}

.btn--solid:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 47, 83, 0.25);
}

.btn--solid:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

/* ===================================================
   HERO
   =================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 125, 171, 0.35), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(0, 85, 121, 0.4), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--blue-mid) 65%, var(--blue-bright) 130%);
  background-size: 100% 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 47, 83, 0.25) 0%, rgba(20, 47, 83, 0.05) 40%, rgba(20, 47, 83, 0.55) 100%);
}

.hero__content {
  text-align: center;
  padding: 120px 24px 100px;
  max-width: 760px;
}

.hero__logo {
  width: 240px;
  margin: 0 auto 48px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0 0 24px;
  line-height: 1.05;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 48px;
  letter-spacing: 0.3px;
}

.hero__subtitle strong { font-weight: 600; }

/* scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  z-index: 2;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1;
}

.hero__wave path { fill: var(--white); }

/* reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 1s var(--ease) forwards;
}

.reveal[data-reveal="1"] { animation-delay: 0.15s; }
.reveal[data-reveal="2"] { animation-delay: 0.4s; }
.reveal[data-reveal="3"] { animation-delay: 0.65s; }
.reveal[data-reveal="4"] { animation-delay: 0.9s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   EXPECTATIVA
   =================================================== */

.expectativa {
  background: var(--white);
  padding: 140px 0 120px;
  text-align: center;
}

.expectativa__lead {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto 28px;
}

.expectativa__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--neutral-600);
  max-width: 620px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 96px;
  text-align: left;
}

.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
  background: linear-gradient(135deg, rgba(0, 125, 171, 0.1), rgba(20, 47, 83, 0.06));
  margin-bottom: 24px;
}

.feature__icon svg { width: 26px; height: 26px; }

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.feature p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--neutral-600);
  margin: 0;
}

/* ===================================================
   REGISTRO
   =================================================== */

.registro {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}

.registro__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 125, 171, 0.25), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--blue-mid) 100%);
}

.registro__title {
  color: var(--white);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 20px;
  letter-spacing: 0.3px;
}

.registro__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  margin: 0 auto 56px;
  max-width: 460px;
}

/* ===== Form ===== */
.form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form__group {
  position: relative;
}

.form__group input {
  width: 100%;
  padding: 16px 4px 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  outline: none;
  transition: border-color 0.35s var(--ease);
}

.form__group input::placeholder { color: transparent; }

.form__group label {
  position: absolute;
  left: 4px;
  top: 16px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.form__group input:focus ~ label,
.form__group input:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.form__group input:focus {
  border-bottom-color: var(--blue-bright);
}

.form__error {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: #ffb4b4;
  margin-top: 8px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s var(--ease);
}

.form__group.is-invalid input {
  border-bottom-color: #ff8a8a;
}

.form__group.is-invalid .form__error {
  height: auto;
  opacity: 1;
}

.form__submit {
  margin-top: 12px;
}

.btn__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.form.is-submitting .btn__spinner { display: inline-block; }
.form.is-submitting .btn__text { opacity: 0.85; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form__feedback {
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #9be8ac;
  text-align: center;
  margin: 4px 0 0;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
}

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

.form.is-sent .form__group,
.form.is-sent .form__submit {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.3s ease;
}

/* ===================================================
   FOOTER
   =================================================== */

.footer {
  background: var(--navy);
  padding: 56px 0 40px;
  text-align: center;
}

.footer__logo {
  width: 140px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.footer__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.footer__rights {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 300;
  margin: 0;
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */

.reveal-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.features .feature:nth-child(1) { transition-delay: 0.05s; }
.features .feature:nth-child(2) { transition-delay: 0.2s; }
.features .feature:nth-child(3) { transition-delay: 0.35s; }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 64px;
  }
}

@media (max-width: 640px) {
  .hero__content { padding: 100px 20px 90px; }
  .hero__logo { width: 190px; margin-bottom: 36px; }
  .hero__title { letter-spacing: 3px; }
  .hero__scroll { bottom: 32px; }

  .expectativa { padding: 96px 0 88px; }
  .registro { padding: 96px 0; }

  .btn { padding: 16px 28px; }
  .btn--outline { width: 100%; max-width: 300px; }
}

/* ===================================================
   REDUCED MOTION
   =================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal-scroll {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__scroll span { animation: none; }
}
