/*!
 * Amistiva - Landing comercial
 * Estética redondeada, aesthetic, tipo Instagram/TikTok. Mobile-first.
 */

.amistiva-landing {
  --am-radius-xl: 32px;
  --am-radius-2xl: 40px;
  overflow-x: clip;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.amistiva-landing .amistiva-topbar { background: rgba(250, 249, 246, 0.7); }

/* ---------- Utilidades ---------- */
.am-section { position: relative; padding: 90px 24px; }
.am-container { max-width: 1120px; margin: 0 auto; }
.am-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--am-coral); background: var(--am-coral-light);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.am-h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 16px;
}
.am-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--am-text-2);
  max-width: 560px;
  margin: 0 0 12px;
}
.am-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Blobs de fondo ---------- */
.am-blob {
  position: absolute;
  filter: blur(60px);
  opacity: .55;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.am-hero {
  padding-top: 56px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .am-hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .am-hero .am-sub { margin-left: auto; margin-right: auto; }
}
.am-hero__title {
  font-size: clamp(36px, 6.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
  background: linear-gradient(100deg, var(--am-text) 30%, var(--am-coral) 60%, #A855F7 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.am-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) { .am-hero__actions { justify-content: center; } }

.am-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0B0B0F; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 16px; font-weight: 700;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  transition: transform .25s ease;
}
.am-store-badge:hover { transform: translateY(-2px) scale(1.02); }
.am-store-badge small { display: block; font-weight: 500; font-size: 11px; opacity: .75; }
.am-store-badge span { font-size: 16px; line-height: 1.1; }

.am-soon-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--am-card); border: 1.5px solid var(--am-border);
  padding: 12px 20px; border-radius: 16px; font-weight: 700; color: var(--am-text);
}
.am-soon-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--am-mint); box-shadow: 0 0 0 4px rgba(110,231,183,.35); }

/* Trust row */
.am-trustrow { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; color: var(--am-text-2); font-size: 13px; font-weight: 600; }
.am-trustrow span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .am-trustrow { justify-content: center; } }

/* ---------- Phone mockup ---------- */
.am-phone-wrap { position: relative; display: flex; justify-content: center; }
.am-phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  background: #0E1424;
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(30,41,59,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative;
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s ease;
}
.am-phone:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.am-phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 46%; height: 22px; background: #0E1424; border-radius: 0 0 16px 16px; z-index: 3;
}
.am-phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--am-bg);
}
.am-phone__status { display: flex; justify-content: space-between; padding: 14px 18px 0; font-size: 11px; font-weight: 700; color: var(--am-text); }
.am-phone__slide {
  position: absolute; inset: 0; padding: 34px 16px 16px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.am-phone__slide.is-active { opacity: 1; transform: translateY(0); position: relative; }
.am-phone__slide:not(.is-active) { position: absolute; }

.am-mock-card {
  background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 8px 20px rgba(30,41,59,.08); margin-bottom: 10px;
}
.am-mock-row { display: flex; align-items: center; gap: 8px; }
.am-mock-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.am-mock-title { font-size: 12px; font-weight: 800; color: var(--am-text); }
.am-mock-sub { font-size: 10px; color: var(--am-text-2); }
.am-mock-cover { height: 74px; border-radius: 12px; margin: 8px 0; }
.am-mock-pill { font-size: 9px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 999px; display: inline-block; }

.am-float-chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 14px 30px rgba(30,41,59,.14); font-size: 12px; font-weight: 800; color: var(--am-text);
  display: flex; align-items: center; gap: 8px; z-index: 4;
  animation: am-float 4.5s ease-in-out infinite;
}
.am-float-chip--1 { top: 8%; left: -8%; animation-delay: 0s; }
.am-float-chip--2 { bottom: 12%; right: -10%; animation-delay: 1.2s; }
@media (max-width: 900px) {
  .am-float-chip--1 { left: 2%; }
  .am-float-chip--2 { right: 2%; }
}
@keyframes am-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Feature grid ---------- */
.am-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .am-grid-3 { grid-template-columns: 1fr; } }
.am-feature {
  background: var(--am-card);
  border-radius: var(--am-radius-xl);
  padding: 28px 26px;
  border: 1px solid var(--am-border);
  transition: transform .35s ease, box-shadow .35s ease;
}
.am-feature:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(30,41,59,.08); }
.am-feature__icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.am-feature h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.am-feature p { font-size: 14px; color: var(--am-text-2); margin: 0; }

/* ---------- Showcase alterno (imagen/texto) ---------- */
.am-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.am-showcase.is-reverse { direction: rtl; }
.am-showcase.is-reverse > * { direction: ltr; }
@media (max-width: 900px) { .am-showcase, .am-showcase.is-reverse { grid-template-columns: 1fr; direction: ltr; } }

.am-visual-card {
  border-radius: var(--am-radius-2xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.am-chip-list span {
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: #fff; box-shadow: 0 6px 16px rgba(30,41,59,.06);
}

/* ---------- Pasos ---------- */
.am-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: am-step; }
@media (max-width: 900px) { .am-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .am-steps { grid-template-columns: 1fr; } }
.am-step { background: var(--am-card); border-radius: var(--am-radius-xl); padding: 24px; border: 1px solid var(--am-border); }
.am-step__num {
  width: 38px; height: 38px; border-radius: 12px; background: var(--am-text); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}
.am-step h3 { font-size: 15px; margin: 0 0 6px; }
.am-step p { font-size: 13px; color: var(--am-text-2); margin: 0; }

/* ---------- Mapa España (silueta simple) ---------- */
.am-map-badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--am-card);
  border: 1px solid var(--am-border); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14px;
}

/* ---------- CTA final ---------- */
.am-cta-final {
  border-radius: var(--am-radius-2xl);
  padding: 64px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--am-coral), #A855F7);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.am-cta-final h2 { color: #fff; }
.am-cta-final .am-sub { color: rgba(255,255,255,.9); margin-left: auto; margin-right: auto; }
.am-cta-final .am-store-badge { background: #fff; color: #0B0B0F; }

/* ---------- Sticky CTA movil ---------- */
.am-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--am-border);
  display: none;
  align-items: center; justify-content: center; gap: 12px;
}
@media (max-width: 640px) { .am-sticky-cta.is-visible { display: flex; } }
.am-sticky-cta .amistiva-btn { flex: 1; justify-content: center; }

/* AOS fallback (por si el CDN tarda) */
[data-aos] { opacity: 1; }
