/* ========================================
   GIDA — LANDING INICIAL
   Hero-only launch page
   ======================================== */

/* ── Variables ── */
:root {
  --primary: #260801;
  --primary-light: #73534c;
  --bg: #faf8f7;
  --text: #0d0d0d;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
}

/* ── Reset mínimo ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family:
    "proxima-nova",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* Sólo para lectores de pantalla / rastreadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  overflow: hidden;
}

/* ── Fondo ── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  will-change: transform;
  animation: glowFloat 20s ease-in-out infinite;
}

.hero-glow--1 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(115, 83, 76, 0.3), transparent 70%);
  top: -10%;
  right: 10%;
}

.hero-glow--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(38, 8, 1, 0.15), transparent 70%);
  bottom: 10%;
  left: -5%;
  animation-delay: -10s;
}

@keyframes glowFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

/* ── Logo ── */
.hero-logo {
  position: absolute;
  top: 2.5rem;
  left: 5vw;
  z-index: 10;
  animation: fadeIn 0.6s ease 0s both;
}

.hero-logo img {
  height: 1.6rem;
  width: auto;
}

/* ── Contenido principal ── */
.hero-content {
  flex: 1;
  max-width: 560px;
}

/* ── Título ── */
.hero-title {
  font-family: "proxima-nova", sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-city {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.hero-city.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

/* ── Subtítulo ── */
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ── Formulario lista de espera ── */
.hero-waitlist {
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  max-width: 440px;
}

.waitlist-row {
  display: flex;
  gap: 0.5rem;
}

.waitlist-input {
  flex: 1;
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--text-light);
}

.waitlist-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(115, 83, 76, 0.12);
}

.waitlist-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.waitlist-btn {
  height: 48px;
  padding: 0 1.25rem;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.waitlist-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.waitlist-btn:active {
  transform: translateY(0);
}

.waitlist-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.waitlist-note {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Estado de éxito ── */
.waitlist-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.waitlist-success[hidden] {
  display: none;
}

/* ── Animaciones base ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   MOCKUP TELÉFONO
   ======================================== */

.hero-phone {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-end;
  margin-right: 4vw;
}

.hero-phone-frame {
  position: relative;
  width: 375px;
  will-change: transform;
  animation: phoneSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-phone-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

@keyframes phoneSlideUp {
  from {
    transform: translateY(60px);
  }
  to {
    transform: translateY(0);
  }
}

/* ========================================
   SCOUT BUBBLES
   ======================================== */

.hero-scout-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  opacity: 0;
  z-index: 5;
  white-space: nowrap;
  will-change: transform;
  animation:
    bubbleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(1.2s + var(--delay))
      forwards,
    bubbleFloat var(--float-dur) ease-in-out calc(2s + var(--delay)) infinite;
}

.hero-scout-bubble img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bubble-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-scout-bubble span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.hero-scout-bubble small {
  font-size: 0.6rem;
  color: var(--text-light);
  font-weight: 400;
}

.hero-scout-bubble small strong {
  font-weight: 700;
  color: inherit;
}

/* ========================================
   FLOAT CARDS — review, chat, ciudad
   ======================================== */

.hero-float-card {
  position: absolute;
  top: var(--y);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 0.7rem 0.85rem;
  opacity: 0;
  z-index: 5;
  white-space: nowrap;
  will-change: transform;
  animation:
    bubbleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(1.2s + var(--delay))
      forwards,
    bubbleFloat var(--float-dur) ease-in-out calc(2s + var(--delay)) infinite;
}

.hero-float-card[data-side="left"] {
  left: var(--x);
}
.hero-float-card[data-side="right"] {
  right: var(--rx);
}

/* ── Review ── */
.float-card-stars {
  display: flex;
  gap: 1px;
  margin-bottom: 0.3rem;
}

.float-card-text {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
}

.float-card-author {
  display: block;
  font-size: 0.58rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* ── Chat ── */
.hero-float-card--chat {
  max-width: 200px;
  white-space: normal;
}

.float-card-chat-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.float-card-chat-header img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.float-card-chat-header > div {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.float-card-chat-header span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.float-card-chat-header small {
  font-size: 0.55rem;
  color: var(--text-light);
  line-height: 1;
}

.float-card-chat-msg {
  background: var(--bg);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.float-card-chat-msg p {
  font-size: 0.62rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 0.25rem;
}

.float-card-chat-read {
  display: flex;
  justify-content: flex-end;
}

/* ── Ciudad ── */
.hero-float-card--city {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 100px;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
}

.float-card-city-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.float-card-city-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.float-card-city-info span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}

.float-card-city-info small {
  font-size: 0.58rem;
  color: var(--text-light);
}

/* ── Animaciones compartidas ── */
@keyframes bubbleReveal {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(var(--float-y));
  }
}

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

@media (max-width: 1024px) {
  .hero-phone-frame {
    width: 280px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 1.5rem 2rem;
    text-align: center;
    gap: 2rem;
  }

  .hero-logo {
    left: 1.5rem;
    top: 1.5rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-waitlist {
    max-width: 100%;
  }
  .waitlist-row {
    flex-direction: column;
  }
  .waitlist-btn {
    width: 100%;
  }

  .hero-phone {
    align-self: center;
    width: 100%;
    min-height: 420px;
    overflow: visible;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .hero-phone-frame {
    width: 220px;
  }

  /* Ocultar todos por defecto */
  .hero-scout-bubble,
  .hero-float-card {
    display: none;
  }

  /* Mostrar los 3 seleccionados reposicionados */
  .hero-bubble--maria,
  .hero-card--review,
  .hero-card--city {
    display: flex;
    position: absolute;
    left: auto;
    right: auto;
    top: auto;
    animation:
      bubbleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(1.2s + var(--delay))
        forwards,
      bubbleFloat var(--float-dur) ease-in-out calc(2s + var(--delay)) infinite;
  }

  .hero-bubble--maria {
    left: 4px;
    top: 5%;
    text-align: left;
  }

  .hero-card--review,
  .hero-float-card[data-side="right"].hero-card--review {
    right: 4px;
    left: auto;
    top: 22%;
    white-space: normal;
    max-width: 155px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-card--city,
  .hero-float-card[data-side="left"].hero-card--city {
    left: 4px;
    right: auto;
    top: 64%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1.25rem 2rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .waitlist-input,
  .waitlist-btn {
    height: 44px;
  }
  .waitlist-input {
    line-height: 44px;
  }
}

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

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 5vw;
  gap: 1rem;
  background: rgba(250, 248, 247, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .hero-logo,
  .hero-title,
  .hero-subtitle,
  .hero-waitlist,
  .hero-phone-frame,
  .hero-scout-bubble,
  .hero-float-card {
    animation: none !important;
  }

  .hero-city,
  .waitlist-btn,
  .waitlist-input,
  .footer-social a {
    transition: none !important;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-light);
}

.footer-legal a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 0.55rem 1.25rem;
  }
  .footer-legal {
    font-size: 0.68rem;
  }
}
