:root {
  --color-primary: #009688;
  --color-primary-dark: #00695c;
  --color-primary-light: #4db6ac;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9f8;
  --color-text: #1c2b2a;
  --color-text-muted: #5a6b6a;
  --radius: 16px;
  --max-width: 1120px;
  --shadow: 0 10px 30px rgba(0, 105, 92, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 105, 92, 0.18);
  --font-heading: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

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

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

/* Section headings */
.section-eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.section-subtitle {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}

.features h2,
.screenshots h2,
.how-it-works h2,
.faq h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.features .section-eyebrow,
.screenshots .section-eyebrow,
.how-it-works .section-eyebrow,
.faq .section-eyebrow {
  display: block;
  text-align: center;
}

/* Scroll fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn--small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn--large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn__icon {
  width: 20px;
  height: 20px;
}

/* Badge */
.badge {
  display: inline-block;
  background: rgba(0, 150, 136, 0.1);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Icon badge: teal background so the white app icon stands out */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 26%;
  box-shadow: var(--shadow);
}

.icon-badge img {
  width: 62%;
  height: 62%;
}

.icon-badge--sm {
  width: 36px;
  height: 36px;
}

.icon-badge--lg {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 105, 92, 0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.navbar__links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.navbar__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

@media (max-width: 800px) {
  .navbar__links {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, #ffffff 60%);
  padding: 88px 0;
}

.hero__blob {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 150, 136, 0.18) 0%, rgba(0, 150, 136, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__text {
  flex: 1 1 420px;
}

.hero__text h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
}

.hero__text p {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero__actions {
  margin-bottom: 24px;
}

.hero__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hero__checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0, 105, 92, 0.12);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow);
}

.hero__checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__image {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone-mockup {
  width: 240px;
  aspect-ratio: 9 / 19;
  background: #101c1b;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.phone-mockup--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-mockup--empty img {
  display: none;
}

.phone-mockup--empty::after {
  content: "📱";
  font-size: 3rem;
}

/* Screenshots */
.screenshots {
  padding: 72px 0;
  background: var(--color-bg);
}

.screenshots__carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  position: relative;
}

.screenshots__viewport {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.screenshots__track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.screenshots__track .screenshot-placeholder {
  flex: 0 0 calc((100% - 48px) / 3);
}

.screenshot-placeholder {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  margin: 0;
}

.screenshot-placeholder:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder--bright img {
  filter: brightness(1.22) contrast(1.03);
}

.screenshot-placeholder figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.carousel-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-button:hover {
  background: var(--color-primary-dark);
  transform: scale(1.06);
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.carousel-button:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary-light);
  cursor: pointer;
  opacity: 0.55;
}

.carousel-dot.is-active {
  background: var(--color-primary-dark);
  opacity: 1;
  transform: scale(1.25);
}

/* Placeholder look when a screenshot image is missing */
.screenshot-placeholder--empty {
  position: relative;
}

.screenshot-placeholder--empty img {
  display: none;
}

.screenshot-placeholder--empty::after {
  content: "Agrega tu captura aquí";
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 16px;
}

/* Features */
.features {
  padding: 72px 0;
  background: var(--color-bg-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  font-size: 1.1rem;
}

.feature-card__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

/* How it works */
.how-it-works {
  padding: 72px 0;
  background: var(--color-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.step {
  text-align: center;
}

.step__number {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.step h3 {
  font-size: 1.05rem;
}

/* FAQ */
.faq {
  padding: 72px 0;
  background: var(--color-bg-alt);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  margin: 12px 0 0;
}

/* Support */
.support {
  padding: 72px 0;
  background: var(--color-bg);
}

.support__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.support__intro h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.support__direct {
  font-weight: 500;
}

.support__direct a {
  color: var(--color-primary-dark);
}

.support__form {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 105, 92, 0.2);
  background: #fff;
  color: var(--color-text);
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}

.support__form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.support__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  min-height: 1.2em;
}

@media (max-width: 800px) {
  .support__inner {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta__subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 28px;
}

.cta .btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta .btn--primary:hover {
  background: var(--color-bg-alt);
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--color-text);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #cfe3e1;
  font-size: 0.9rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links a {
  color: #cfe3e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__social {
  display: flex;
  gap: 14px;
}

.footer__social a {
  color: #cfe3e1;
  display: inline-flex;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer__social a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer__copy {
  width: 100%;
  text-align: center;
  color: #8fa8a6;
  font-size: 0.8rem;
  margin: 0;
}

@media (min-width: 640px) {
  .footer__copy {
    width: auto;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0;
  }

  .cta, .features, .screenshots, .how-it-works, .faq {
    padding: 56px 0;
  }

  .screenshots__carousel {
    gap: 8px;
  }

  .screenshots__viewport {
    max-width: 220px;
  }

  .screenshots__track {
    gap: 16px;
  }

  .screenshots__track .screenshot-placeholder {
    flex-basis: 100%;
  }

  .carousel-button {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}
