/* ============ RESET & BASE ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #101828;
  --bg-card: #161f33;
  --bg-card-border: #22304a;
  --accent: #14B8A6;
  --accent-soft: rgba(20, 184, 166, 0.12);
  --heading: #f8fafc;
  --text: #7b8ca2;
  --font: 'Play', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  color: var(--heading);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #08110f;
}

.btn--primary:hover {
  background: #1ccbb8;
}

.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--bg-card-border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 24, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-card-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar__logo-img {
  height: 56px;
  width: auto;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.navbar__links a:hover {
  color: var(--heading);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ FALLBACK LOGO (JS injects this when img fails) ============ */
.logo-fallback {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--heading);
  letter-spacing: 0.5px;
}

.logo-fallback span {
  color: var(--accent);
}

/* ============ EYEBROW / SECTION HEAD ============ */
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.eyebrow--center {
  text-align: center;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__subtitle {
  color: var(--text);
  font-size: 1.02rem;
  margin-top: 14px;
}

.section__subtitle--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 96px 24px 100px;
}

.hero__text h1 {
  font-size: 2.6rem;
  color: var(--heading);
  margin-bottom: 20px;
}

.hero__text h1 .accent-word {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__disclaimer {
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  color: var(--text);
  opacity: 0.8;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

/* ============ PHONE MOCKUP (illustrative, CSS-only) ============ */
.phone {
  width: 280px;
  background: #0b1220;
  border: 10px solid #1c2740;
  border-radius: 36px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

.phone--compact {
  width: 260px;
}

.phone__notch {
  height: 22px;
  background: #1c2740;
  border-radius: 0 0 14px 14px;
  width: 110px;
  margin: 0 auto;
}

.phone__screen {
  padding: 18px 16px 22px;
  min-height: 420px;
}

.phone__app-name {
  color: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.phone__step-label {
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 8px;
}

.phone__service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.phone__service-card--muted {
  opacity: 0.55;
}

.phone__service-name {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 700;
}

.phone__service-meta {
  color: var(--text);
  font-size: 0.7rem;
  margin-top: 2px;
}

.phone__chip {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.phone__slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.phone__slots span {
  text-align: center;
  padding: 8px 0;
  font-size: 0.72rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
}

.phone__slot--active {
  background: var(--accent) !important;
  color: #08110f !important;
  border-color: var(--accent) !important;
  font-weight: 700;
}

.phone__confirm {
  text-align: center;
  background: var(--accent);
  color: #08110f;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px;
  border-radius: 10px;
}

.phone__mini-cal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.phone__mini-day {
  text-align: center;
  font-size: 0.66rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 8px 0;
  line-height: 1.4;
}

.phone__mini-day--active {
  background: var(--accent);
  color: #08110f;
  font-weight: 700;
  border-color: var(--accent);
}

.phone__appt {
  font-size: 0.76rem;
  color: var(--heading);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
}

.phone__appt--blue {
  border-left-color: #3b82f6;
}

.phone__appt--green {
  border-left-color: var(--accent);
}

/* ============ STEPS GRID (Cómo funciona) ============ */
.section {
  padding: 100px 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-card__number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card h3 {
  color: var(--heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.92rem;
}

/* ============ PROBALO EN ACCIÓN ============ */
.accion {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

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

.numbered-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.numbered-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.numbered-list li span {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 2px;
}

.numbered-list li strong {
  display: block;
  color: var(--heading);
  font-size: 1rem;
  margin-bottom: 4px;
}

.numbered-list li p {
  font-size: 0.9rem;
}

/* ============ BENEFITS ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.benefit-card__icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card h3 {
  color: var(--heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
}

/* ============ CLOSING CTA ============ */
.closing {
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card), rgba(20, 184, 166, 0.06));
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 64px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  color: var(--heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.closing p {
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--bg-card-border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer__logo-img {
  height: 44px;
  width: auto;
}

.footer__tagline {
  font-size: 0.88rem;
  max-width: 480px;
}

.footer__brand {
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer__brand a {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.footer__brand a:hover {
  opacity: 0.8;
}

.footer__copy {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 24px 72px;
    text-align: center;
  }

  .hero__text h1 {
    font-size: 2.1rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

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

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

  .accion__visual {
    justify-content: center;
    order: -1;
  }

  .section__subtitle--left {
    text-align: center;
  }

  .numbered-list li {
    text-align: left;
  }

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

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .navbar__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--bg-card-border);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .navbar__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .hero__text h1 {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .phone,
  .phone--compact {
    width: 100%;
    max-width: 300px;
  }

  .closing {
    padding: 48px 20px;
  }

  .closing h2 {
    font-size: 1.4rem;
  }
}
