/* ============================================================
   ABO — holaabo.com
   Design: Clean, warm, professional. Inspired by MuleRun.
   Colors: Deep blue (from mascot's tie) + warm off-white
   Font: REM variable font (Google Fonts)
   ============================================================ */

:root {
  --blue-deep: #1B365D;
  --blue-mid: #2D5F9A;
  --blue-light: #FFF3E8;
  --blue-accent: #E08A3C;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE57;
  --bg: #FAF9F6;
  --bg-alt: #F0EFEB;
  --text: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --border: #E5E3DE;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'REM', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'REM', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--blue-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'REM', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-deep);
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-deep);
  text-decoration: none;
}

.btn-wa-nav {
  background: var(--blue-deep);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s;
}

.btn-wa-nav:hover {
  background: var(--blue-mid);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

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

.hero {
  padding: 140px 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.2rem;
  color: var(--blue-deep);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--blue-accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white !important;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.btn-wa-large {
  padding: 16px 40px;
  font-size: 1.15rem;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.hero-mascot {
  flex: 0 0 250px;
}

.hero-mascot img {
  width: 100%;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   EXAMPLES
   ============================================================ */

.examples {
  background: var(--blue-deep);
  padding: 48px 24px;
  overflow: hidden;
}

.examples-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.examples-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center;
}

.examples-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.example-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.example-card:hover {
  background: rgba(255,255,255,0.14);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-inner h2 {
  font-size: 2.4rem;
  color: var(--blue-deep);
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 60px;
}

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

.step {
  text-align: center;
  padding: 32px;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  color: var(--blue-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'REM', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.step p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: 80px 24px 100px;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  padding: 100px 24px;
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--blue-mid);
}

.faq-item summary::after {
  content: "›";
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s;
  color: var(--text-light);
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-final {
  padding: 80px 24px;
  background: var(--bg-alt);
}

.cta-final-inner {
  text-align: center;
}

.cta-mascot {
  width: 150px;
  height: auto;
  margin-bottom: 24px;
}

.cta-final h2 {
  font-size: 2.2rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.cta-final p {
  color: var(--text-mid);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

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

.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.5;
}

.footer-col h4 {
  color: rgba(255,255,255,0.4);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .btn-wa-nav {
    display: none;
  }

  .nav-mobile-btn {
    display: block;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

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

  .hero-mascot {
    flex: 0 0 auto;
  }

  .hero-mascot img {
    width: 280px;
  }

  .examples-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-final h2 {
    font-size: 1.8rem;
  }
}

/* ============================================================
   NAVBAR SCROLL EFFECT
   ============================================================ */

.nav {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.95);
  box-shadow: 0 2px 20px rgba(27, 54, 93, 0.08);
}

/* ============================================================
   EYE TRACKING — mascota hero
   Posiciones calibradas para mascota.png (1024x1024)
   Ajustar left/top si la imagen cambia
   ============================================================ */

.hero-mascot {
  position: relative;
}

.eye-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.eye-socket {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.eye-socket.L {
  /* Ojo izquierdo de la mascota */
  left: 31%;
  top: 25%;
  width: 8%;
  height: 5%;
}

.eye-socket.R {
  /* Ojo derecho de la mascota */
  left: 51%;
  top: 25%;
  width: 8%;
  height: 5%;
}

.eye-pupil {
  width: 40%;
  height: 70%;
  background: rgba(10, 10, 30, 0.6);
  border-radius: 3px;
  transition: transform 0.08s ease;
}

/* ============================================================
   MASCOTA FLOTANTE (sticky, aparece al scrollear)
   ============================================================ */

.float-mascot {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 72px;
  height: 72px;
  z-index: 150;
  cursor: pointer;
  transform: translateX(110px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}

.float-mascot.visible {
  transform: translateX(0);
  opacity: 1;
}

.float-mascot:hover {
  transform: translateX(0) scale(1.08) translateY(-3px) !important;
}

.float-mascot-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0D0D0D;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(27, 54, 93, 0.25), 0 2px 8px rgba(0,0,0,0.15);
  border: 2.5px solid rgba(27, 54, 93, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-mascot-bg img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.float-eye-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.feye {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.feye.L {
  left: 31%;
  top: 25%;
  width: 8%;
  height: 5%;
}

.feye.R {
  left: 51%;
  top: 25%;
  width: 8%;
  height: 5%;
}

.fpupil {
  width: 45%;
  height: 75%;
  background: rgba(10, 10, 30, 0.65);
  border-radius: 2px;
  transition: transform 0.08s ease;
}

/* ============================================================
   BOTÓN WHATSAPP STICKY
   ============================================================ */

.sticky-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--whatsapp);
  color: white;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'REM', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.38);
  transition: background 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.sticky-wa:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  color: white;
}

.sticky-wa svg {
  width: 18px;
  height: 18px;
  fill: white;
  flex-shrink: 0;
}

.sticky-wa-label {
  display: none;
}

@media (min-width: 769px) {
  .sticky-wa-label { display: block; }
}

@media (max-width: 768px) {
  .float-mascot { display: none; }
  .sticky-wa { right: 16px; bottom: 16px; padding: 12px 16px; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.anim-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   TIPOGRAFÍA — ajustes con REM
   REM es más compacta que Fraunces; ajustamos pesos
   ============================================================ */

.hero-text h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-inner h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.step h3,
.feature h3 {
  font-weight: 700;
}

/* footer col h4 hereda REM */
.footer-col h4 {
  font-family: 'REM', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .anim-on-scroll,
  .float-mascot,
  .hero-mascot img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
