/* Estilos de la landing pública de AIRIN Business (app/templates/landing.html). */
:root {
  /* Paleta corporativa AIRIN Technologies (extraída del logo oficial) */
  --brand: #0d4d70;
  --brand-dark: #063049;
  --brand-teal: #1c8484;
  --brand-accent: #e89820;
  --ink: #1f2d3d;
  --muted: #5b6b7b;
  --line: #e6e9ef;
}
html { scroll-behavior: smooth; }
body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; overflow-x: hidden; }
section[id] { scroll-margin-top: 80px; }

/* ---------- Navbar ---------- */
.landing-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.landing-nav .brand-iso { height: 35px; width: auto; }
.landing-nav .brand-nombre { font-weight: 800; font-size: 1.3rem; color: var(--brand); letter-spacing: -.01em; }
.landing-nav .brand-nombre span { font-weight: 600; color: var(--brand-teal); }
.btn-brand { background-color: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background-color: var(--brand); color: #fff; }
.text-brand { color: var(--brand); }
.text-teal { color: var(--brand-teal); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
.hero p.lead { opacity: 0.92; font-size: 1.2rem; max-width: 560px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600;
}
.hero-ambitos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.hero-ambitos span {
  background: rgba(255, 255, 255, .1); border-radius: 10px; padding: .35rem .7rem; font-size: .9rem;
}
.hero-phone-wrap { display: flex; justify-content: center; position: relative; }

/* Franja de confianza bajo el hero */
.confianza ul {
  list-style: none; margin: 0; padding: 1.1rem 0 .4rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem;
  color: var(--muted); font-size: .92rem; font-weight: 600;
}
.confianza li { display: flex; align-items: center; gap: .45rem; }
.confianza i { color: var(--brand-teal); font-size: 1.05rem; }

/* ---------- Secciones ---------- */
.section-kicker { color: var(--brand-teal); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }

/* Tarjetas de ámbito */
.ambito-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem;
  height: 100%; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ambito-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13, 77, 112, .1); border-color: rgba(28, 132, 132, .4); }
.ambito-icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 132, 132, .12); color: var(--brand-teal); font-size: 1.6rem; margin-bottom: 1rem;
}
.ambito-card h5 { font-weight: 800; margin-bottom: .3rem; }
.ambito-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.ambito-card li { display: flex; gap: .5rem; font-size: .93rem; padding: .22rem 0; color: #33475b; }
.ambito-card li i { color: var(--brand-teal); }
.multi-nota {
  background: linear-gradient(120deg, rgba(28, 132, 132, .1), rgba(13, 77, 112, .08));
  border-radius: 16px; padding: 1.1rem 1.4rem;
}

/* Herramientas comunes a todas las áreas */
.herramientas-section { background: linear-gradient(160deg, #f4f8fb 0%, #eef6f6 100%); }
.destacado {
  display: flex; gap: .85rem; align-items: flex-start; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem;
}
.destacado > i {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 132, 132, .12); color: var(--brand-teal); font-size: 1.2rem;
}
.destacado strong { display: block; font-weight: 700; margin-bottom: .15rem; }
.destacado span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* Preguntas frecuentes */
.preguntas { max-width: 780px; }
.preguntas .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .6rem; overflow: hidden; }
.preguntas .accordion-button { font-weight: 700; font-size: 1rem; color: var(--ink); }
.preguntas .accordion-button:not(.collapsed) { background: rgba(28, 132, 132, .07); color: var(--brand); box-shadow: none; }
.preguntas .accordion-button:focus { box-shadow: 0 0 0 3px rgba(28, 132, 132, .25); }
.preguntas .accordion-body { color: #33475b; }

/* Cómo funciona */
.paso-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}

/* ---------- Alta de cuenta (wizard) ---------- */
.alta-card {
  max-width: 880px; margin: 0 auto; background: #fff;
  border-radius: 24px; box-shadow: 0 16px 48px rgba(6, 48, 73, .1);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.paso-dots { display: flex; gap: .4rem; justify-content: center; margin-bottom: 1.25rem; }
.paso-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #d8e0e8; transition: background .2s ease, transform .2s ease; }
.paso-dots .dot.activo { background: var(--brand-teal); transform: scale(1.3); }
.paso-dots .dot.hecho { background: var(--brand-teal); opacity: .5; }
.paso-pregunta { text-align: center; font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .4rem; }
.paso-ayuda { text-align: center; color: var(--muted); margin-bottom: 1.75rem; }
.paso-sub { font-weight: 700; margin: 1.75rem 0 1rem; text-align: center; }
.js .alta-paso { display: none; }
.js .alta-paso.activo { display: block; animation: fadeUp .45s ease both; }
.alta-nav { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }

/* Chips de selección: <label> con un input checkbox/radio oculto dentro */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .9rem;
}
.chip-grid.chip-grid-sm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.chip-select {
  position: relative; margin: 0;
  border: 2px solid var(--line); border-radius: 18px; background: #fff;
  padding: 1.2rem .9rem; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.chip-select:focus-within { outline: 3px solid rgba(28, 132, 132, .35); outline-offset: 2px; }
.chip-select .chip-icon {
  width: 50px; height: 50px; margin-bottom: .65rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(28, 132, 132, 0.14); color: var(--brand-teal);
  font-size: 1.45rem; transition: background-color .18s ease, color .18s ease;
}
.chip-select .chip-nombre { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.chip-select .chip-desc { font-size: .8rem; color: var(--muted); margin-top: .3rem; line-height: 1.3; }
.chip-select .chip-check { position: absolute; top: .55rem; right: .7rem; color: var(--brand-teal); font-size: 1.05rem; display: none; }
.chip-select:has(input:checked) { border-color: var(--brand-teal); background: rgba(28, 132, 132, 0.06); }
.chip-select:has(input:checked) .chip-icon { background: var(--brand-teal); color: #fff; }
.chip-select:has(input:checked) .chip-check { display: block; }

.resumen-ambitos { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: 1.5rem; }
.resumen-ambitos span {
  background: rgba(28, 132, 132, .1); color: var(--brand-teal); font-weight: 600;
  border-radius: 999px; padding: .3rem .8rem; font-size: .85rem;
}

/* ---------- App: capturas reales en marco de teléfono ---------- */
.app-section { background: linear-gradient(160deg, #f4f8fb 0%, #e9f3f3 100%); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.phone {
  width: 230px; border-radius: 34px; background: #0b1a26; padding: 10px;
  box-shadow: 0 24px 50px rgba(6, 48, 73, .28); flex-shrink: 0;
}
.phone.lg { width: 250px; }
.phone-shot { display: block; width: 100%; height: auto; border-radius: 26px; background: #f5f7fa; aspect-ratio: 9 / 20; }
.phone-caption { text-align: center; margin-top: 1rem; font-weight: 700; color: var(--brand); }
.phone-caption small { display: block; font-weight: 400; color: var(--muted); }

.play-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #0b1a26; color: #fff; border-radius: 14px; padding: .65rem 1.2rem;
  text-decoration: none; cursor: default; position: relative;
}
.play-badge i { font-size: 1.8rem; }
.play-badge .l1 { font-size: .7rem; opacity: .8; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.play-badge .l2 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.pronto-tag {
  position: absolute; top: -10px; right: -12px;
  background: var(--brand-accent); color: #fff; font-weight: 800; font-size: .68rem;
  border-radius: 999px; padding: .2rem .55rem; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 4px 10px rgba(232, 152, 32, .4);
}

/* ---------- Footer ---------- */
footer { background: var(--brand-dark); color: rgba(255, 255, 255, .85); }
footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Animaciones ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .1s; }
  .reveal.d2 { transition-delay: .2s; }
  .reveal.d3 { transition-delay: .3s; }

  .hero .hero-anim { animation: fadeUp .8s ease both; }
  .hero .hero-anim.d1 { animation-delay: .12s; }
  .hero .hero-anim.d2 { animation-delay: .24s; }
  .hero .hero-anim.d3 { animation-delay: .36s; }

  .hero .blob {
    position: absolute; border-radius: 50%;
    filter: blur(8px); opacity: .16; pointer-events: none;
    animation: drift 14s ease-in-out infinite;
  }
  .hero .blob.b1 { width: 340px; height: 340px; background: #fff; top: -90px; right: -70px; }
  .hero .blob.b2 { width: 240px; height: 240px; background: var(--brand-teal); bottom: 10px; left: -50px; animation-duration: 18s; }
  .phone.float { animation: float 6s ease-in-out infinite; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -25px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease; }
.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
  .chip-grid, .chip-grid.chip-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .phone, .phone.lg { width: 210px; }
  .hero .phone.lg { width: 190px; }
  .landing-nav .brand-nombre { font-size: 1.15rem; }
  /* Capturas de la app: carrusel horizontal en vez de apilarlas */
  .phones {
    flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -12px; padding: 0 12px 1rem;
  }
  .phones > * { scroll-snap-align: center; }
  .hero { padding: 3.5rem 0 6rem; }
}

/* ---------- Precios ---------- */
.precio-medida {
  max-width: 720px; border: 1px solid var(--line); border-radius: 24px; background: #fff;
  padding: clamp(1.75rem, 5vw, 3rem); box-shadow: 0 16px 48px rgba(6, 48, 73, .08);
}
.precio-desde { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.precio-desde span { font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 800; color: var(--brand); margin: 0 .3rem; }
.precio-puntos {
  list-style: none; padding: 0; margin: 0 auto 1.75rem; display: inline-block; text-align: left;
}
.precio-puntos li { display: flex; gap: .5rem; padding: .25rem 0; color: #33475b; }
.precio-puntos li i { color: var(--brand-teal); }
