/* ===== Jale — Landing page =====
   Paleta tomada de jale-app (Flutter):
   naranja de marca #E5802E, verde #2D6A4F, fondo #F8F8F8,
   tinta #1A1A2E, acentos #FFF3E8 / #FFD19B                          */

:root {
  --orange: #E5802E;
  --orange-dark: #C96B1F;
  --orange-soft: #FFF3E8;
  --orange-light: #FFD19B;
  --green: #2D6A4F;
  --green-dark: #1F4D39;
  --ink: #1A1A2E;
  --ink-60: #4C4C60;
  --bg: #F8F8F8;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(26, 26, 46, 0.10);
  --shadow-sm: 0 6px 18px rgba(26, 26, 46, 0.08);
  --font-display: "Baloo 2", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(229, 128, 46, .38);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost {
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn--ghost:hover { background: var(--orange-soft); transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.3rem; font-size: .95rem; }

.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--orange-dark);
  background: var(--white);
  border: 1px solid var(--orange-light);
  padding: .3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.chip--soft { background: var(--orange-soft); border-color: transparent; }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .7rem;
}
.nav__logo img { height: 52px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav__links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-60);
  font-weight: 600;
  font-size: .98rem;
  transition: color .2s ease;
}
.nav__links a:not(.btn):hover { color: var(--orange); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--orange-soft) 0%, #FFE8D2 55%, #FFDDBB 100%);
  padding: 4.5rem 0 6.5rem;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero__copy h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero__lead {
  font-size: 1.13rem;
  color: var(--ink-60);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.8rem;
}
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  font-size: .95rem;
  color: var(--ink-60);
  font-weight: 500;
}
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: .7rem;
  margin-right: .4rem;
}

/* Collage de fotos */
.hero__media {
  position: relative;
  min-height: 460px;
}
.hero__photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main {
  inset: 8% 6% 8% 14%;
  transform: rotate(1.5deg);
}
.hero__photo--top {
  width: 38%; height: 32%;
  top: 0; left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}
.hero__photo--bottom {
  width: 36%; height: 30%;
  bottom: 0; right: 0;
  transform: rotate(3deg);
  z-index: 2;
}
.hero__card {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: .8rem 1rem;
  font-size: .85rem;
  animation: float 5s ease-in-out infinite;
}
.hero__card--chat {
  display: flex;
  align-items: center;
  gap: .7rem;
  bottom: 16%;
  left: -2%;
  max-width: 240px;
}
.hero__card--chat strong { display: block; font-size: .9rem; }
.hero__card--chat span { color: var(--ink-60); }
.hero__card-dot {
  flex: 0 0 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(45, 106, 79, .18);
}
.hero__card--rating {
  top: 4%;
  right: 0;
  max-width: 210px;
  display: grid;
  gap: .2rem;
  color: var(--ink-60);
  animation-delay: 2.2s;
}
.stars { color: var(--orange); letter-spacing: 2px; font-size: .95rem; }
.stars--lg { font-size: 1.2rem; }

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

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 70px; display: block; }

/* ===== Secciones ===== */
.section { padding: 5.5rem 0; }
.section--tint { background: var(--bg); }
.section__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.2rem;
}
.section__head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .8rem;
}
.section__head p { color: var(--ink-60); font-size: 1.05rem; }

/* ===== Pasos ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid #EFEFEF;
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  position: absolute;
  top: -16px; left: 1.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--orange);
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(229, 128, 46, .4);
}
.step__icon, .feat__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.step__icon svg, .feat__icon svg { width: 26px; height: 26px; }
.step h3, .feat h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.step p, .feat p { color: var(--ink-60); font-size: .97rem; }

/* ===== Categorías ===== */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.cat {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cat:hover img { transform: scale(1.05); }
.cat__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.3rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, .82));
}
.cat__label h3 { color: var(--white); font-size: 1.25rem; font-weight: 700; }
.cat__label p { color: rgba(255, 255, 255, .85); font-size: .88rem; }
.cat--more {
  background: linear-gradient(150deg, var(--orange) 0%, var(--orange-dark) 100%);
  display: grid;
  place-items: center;
  text-align: center;
}
.cat__more-inner { padding: 1.5rem; }
.cat__plus {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.cat--more h3 { color: var(--white); font-size: 1.3rem; }
.cat--more p { color: rgba(255, 255, 255, .88); font-size: .92rem; }

/* ===== Confianza ===== */
.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}
.feat {
  background: var(--white);
  border: 1px solid #EFEFEF;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.quote {
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: center;
  gap: 2.5rem;
  background: var(--green);
  border-radius: 24px;
  padding: 2.5rem;
  color: var(--white);
}
.quote__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 4px solid rgba(255, 255, 255, .25);
}
.quote__photo img { width: 100%; height: 100%; object-fit: cover; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin: .8rem 0 1rem;
}
.quote cite { font-style: normal; color: rgba(255, 255, 255, .8); font-size: .95rem; }

/* ===== CTA descarga ===== */
.cta {
  background: linear-gradient(150deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 5.5rem 0;
  text-align: center;
  color: var(--white);
}
.cta__logo { height: 84px; width: auto; margin: 0 auto 1.4rem; }
.cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: .7rem;
}
.cta p {
  color: rgba(255, 255, 255, .92);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}
.cta__stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 14px;
  padding: .7rem 1.4rem;
  transition: transform .2s ease, background .2s ease;
}
.store:hover { transform: translateY(-3px); background: #000; }
.store svg { width: 28px; height: 28px; }
.store span {
  display: grid;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.store small { font-family: var(--font-body); font-weight: 400; font-size: .7rem; opacity: .8; }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  padding: 3.5rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand img { height: 60px; width: auto; margin-bottom: .6rem; }
.footer__brand p { font-size: .95rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.footer__links a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--orange-light); }
.footer__legal {
  padding-top: 1.4rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* ===== FAQ (seguridad.html) ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq {
  background: var(--white);
  border: 1px solid #EFEFEF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange); }
.faq__arrow {
  flex: 0 0 auto;
  color: var(--orange);
  transition: transform .25s ease;
}
.faq[open] .faq__arrow { transform: rotate(180deg); }
.faq__body {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-60);
  font-size: .97rem;
}
.faq__body p + p { margin-top: .8rem; }
.faq__body a { color: var(--orange-dark); font-weight: 600; }

/* ===== Eliminación de cuenta ===== */
.del {
  margin-top: 1.3rem;
  background: var(--bg);
  border: 1px solid #ECECEC;
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}
.del__step h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.del__row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .8rem;
}
.del__row input {
  flex: 1 1 220px;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem 1rem;
  border: 1px solid #DDD;
  border-radius: 999px;
  outline: none;
  transition: border-color .2s ease;
}
.del__row input:focus { border-color: var(--orange); }
.del__row .btn { border: 0; cursor: pointer; }
.btn--danger {
  background: #D64545;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(214, 69, 69, .3);
}
.btn--danger:hover:not(:disabled) { background: #B93636; transform: translateY(-2px); }
.btn--danger:disabled {
  background: #E5B5B5;
  box-shadow: none;
  cursor: not-allowed;
}
.del__warn {
  background: #FDF0EF;
  border: 1px solid #F3CBC8;
  color: #8C2F2A;
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .92rem;
  margin-bottom: .8rem;
}
.del__done h4 { color: var(--green); }
.del__error {
  margin-top: .8rem;
  color: #B93636;
  font-weight: 600;
  font-size: .92rem;
}
.del__alt {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed #DDD;
  font-size: .88rem;
}

/* ===== Animaciones de entrada ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal--delay { transition-delay: .15s; }
.reveal--delay2 { transition-delay: .3s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 420px; margin-top: 1rem; }
  .steps, .cats { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .quote { grid-template-columns: 1fr; }
  .quote__photo { max-width: 340px; }
}

@media (max-width: 640px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    background: var(--white);
    padding: 1.4rem 6%;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .hero { padding-top: 2.8rem; }
  .hero__media { min-height: 340px; }
  .hero__card--chat { left: 0; }
  .steps, .cats, .feats { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 10; }
  .section { padding: 3.8rem 0; }
}
