/* Finple Landing — MD3-inspired (limpio) */
:root {
  --md-sys-color-primary: #406836; /* Finple green */
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-on-surface: #101828;
  --md-sys-color-outline: #d0d5dd;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial,
    sans-serif;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  line-height: 1.55;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== App bar (Fijo y estable) ===== */
.appbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f9fafb;
  border-bottom: 1px solid var(--md-sys-color-outline);
}
.appbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--md-sys-color-primary), #4f8151);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-title b {
  font-weight: 800;
}
.brand-title small {
  color: #667085;
  white-space: nowrap;
}

/* ÚNICA clase .nav para el header */
.nav {
  display: inline-flex;
  gap: 16px;
  flex: 0 0 auto;
}
.nav a {
  color: #475467;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover {
  text-decoration: underline;
}
/* Si prefieres ocultar nav en móvil, descomenta:
@media (max-width:640px){ .nav{display:none} }
*/

/* ===== Hero ===== */
.hero {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.hero .inner {
  padding: 56px 0;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.hero p.sub {
  margin: 0;
  opacity: 0.95;
}

/* ===== Showcase con Embla ===== */
.showcase {
  padding: 28px 0 40px;
  border-top: 1px solid var(--md-sys-color-outline);
}
.embla {
  position: relative;
}
.embla__viewport {
  overflow: hidden;
}
.embla__container {
  display: flex;
  gap: 18px;
  padding: 8px 2px;
}
.embla__slide {
  flex: 0 0 auto;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 1px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide-title {
  text-align: center;
  margin: 0 0 12px;
  font-size: 16px;
  color: #101828;
}
.phone {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1/2;
  object-fit: cover;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 22px;
  background: #eef6ef;
}

/* flechas */
.embla__btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #2f4f28;
  background: #2f4f28;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.embla__btn:hover {
  filter: brightness(1.05);
}
.embla__btn--prev {
  left: -6px;
}
.embla__btn--next {
  right: -6px;
}

/* dots */
.embla__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.embla__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--md-sys-color-primary);
  background: #fff;
  cursor: pointer;
}
.embla__dot[aria-current="true"] {
  background: var(--md-sys-color-primary);
}

/* ===== CTA ===== */
.cta {
  background: #f3f8f4;
  padding: 40px 0;
  border-top: 1px solid var(--md-sys-color-outline);
}
.cta .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #2f4f28;
  background: #2f4f28;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.btn.secondary {
  background: #fff;
  color: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--md-sys-color-outline);
  background: #f9fafb;
}
.footer .inner {
  padding: 18px 0;
  color: #667085;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero h1 {
    font-size: 40px;
  }
}
@media (max-width: 720px) {
  .embla__slide {
  }
  .hero h1 {
    font-size: 34px;
  }
  .embla__btn--prev {
    left: 2px;
  }
  .embla__btn--next {
    right: 2px;
  }
}

.embla__slide {
}

/* === Ajustes finos de Showcase === */
:root {
  --phone-max: 320px;
}
.showcase .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.embla {
  padding-inline: 24px;
}
.embla__viewport {
  width: 100%;
}
.embla__container {
  gap: 24px;
}
.embla__slide {
  /* tarjetas menos gigantes: ~480px en desktop, resp. en móvil */
  min-width: clamp(280px, 48vw, 520px);
}
.slide-title {
  max-width: var(--phone-max);
  margin-inline: auto;
  /* si hay más texto, se acomoda debajo (ya que está sobre la imagen) */
}
.phone {
  max-width: var(--phone-max);
}
/* dot activo más grande y con transición */
.embla__dot {
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.embla__dot[aria-current="true"] {
  transform: scale(1.6);
  background: var(--md-sys-color-primary);
}
@media (max-width: 720px) {
  .embla {
    padding-inline: 12px;
  }
  .embla__slide {
    min-width: 92vw;
  }
}

.policy {
  padding: 24px 0 48px;
}
.prose {
  max-width: 840px;
  margin: 0 auto;
  font-size: 16px;
}
.prose h1 {
  font-size: 32px;
  margin: 0 0 8px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 28px;
}
.prose h3 {
  font-size: 18px;
  margin-top: 18px;
}
.prose p {
  margin: 12px 0;
  color: var(--md-sys-color-on-surface);
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
}
.prose a {
  color: #1f6b3a;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
}
.prose th,
.prose td {
  border: 1px solid var(--md-sys-color-outline);
  padding: 8px;
}
@media (max-width: 1020px) {
  .hero h1 {
    font-size: 40px;
  }
}
@media (max-width: 720px) {
  .embla__slide {
    min-width: 86%;
  }
  .hero h1 {
    font-size: 34px;
  }
}

/* ===== Contact Form ===== */
.form-wrap {
  padding: 32px 0 56px;
}
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 1px rgba(16, 24, 40, 0.04);
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.label {
  display: block;
  font-weight: 600;
  color: #344054;
  margin-bottom: 6px;
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
  background: #fff;
  color: var(--md-sys-color-on-surface);
  font: inherit;
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.helper {
  color: #667085;
  font-size: 0.9rem;
  margin-top: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.checkbox input {
  margin-top: 2px;
}
.alert {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #14532d;
  border: 1px solid #bbf7d0;
}
.btn {
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* === Brand logo sizing for header === */
.brand-logo {
  display: block;
  height: 72px;
  width: auto;
}
@media (max-width: 1024px) {
  .brand-logo {
    height: 64px;
  }
}
@media (max-width: 640px) {
  .brand-logo {
    height: 56px;
  }
}

/* Compactar header sin perder presencia del logo */
.appbar .inner {
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icono {
  height: 60px;
  width: auto;
}

.brand-texto {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-nombre {
  height: 28px;
  width: auto;
}

.brand-slogan {
  font-size: 0.85rem;
  color: #667085;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .brand-icono {
    height: 48px;
  }
  .brand-nombre {
    height: 22px;
  }
  .brand-slogan {
    font-size: 0.75rem;
  }
}

/* === Brand (logo único + slogan a la derecha) === */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
}
.brand-slogan {
  font-size: 14px;
  color: #667085;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transform: translateY(2px);
}

@media (max-width: 1024px) {
  .brand-logo {
    height: 56px;
  }
  .brand-slogan {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  .brand-logo {
    height: 48px;
  }
  .brand-slogan {
    display: none;
  } /* en móvil ocultamos el slogan para no saturar */
}

/* ===== Levels Comparison ===== */
.pricing-section {
  padding: 56px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 24px;
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}
.pricing-card.featured {
  border-color: var(--md-sys-color-primary);
  background: #fdfefd;
  position: relative;
}
.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--md-sys-color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.pricing-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--md-sys-color-primary);
}
.pricing-card .price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}
.pricing-card .price small {
  font-size: 16px;
  font-weight: 400;
  color: #667085;
}
.pricing-card .desc {
  color: #475467;
  margin-bottom: 24px;
  font-size: 15px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-card li {
  padding: 8px 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #344054;
  border-bottom: 1px solid #f2f4f7;
}
.pricing-card li:last-child {
  border-bottom: none;
}
.pricing-card li .material-symbols-outlined {
  color: var(--md-sys-color-primary);
  font-size: 20px;
}
.pricing-card .group-title {
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  color: #667085;
  letter-spacing: 0.5px;
}

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