/* =============================================================
   Galipán APP — Landing
   Tokens de marca tomados de la app Flutter (lib/app/core/theme/color.dart)
   ============================================================= */

/* Tipografía Inter (auto-alojada, misma que la app) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/Inter-Bold.ttf") format("truetype"); }

:root {
  /* Marca / identidad */
  --brand:        #30B3EE; /* azul de marca (icono/splash) */
  --brand-dark:   #1E8FC4;
  --primary:      #2F80ED; /* azul primario */
  --secondary:    #DE667B; /* rosa */
  --accent:       #1F9F33; /* verde */

  /* Neutros (tema claro) */
  --bg:           #F9FAFB;
  --surface:      #FFFFFF;
  --surface-2:    #F3F4F6;
  --text:         #1F2937;
  --text-2:       #4B5563;
  --text-3:       #9CA3AF;
  --border:       #E5E7EB;

  /* Tema oscuro (footer / secciones) */
  --ink:          #0B1220;
  --ink-2:        #111827;
  --ink-3:        #1B2638;

  /* Sistema */
  --radius:       16px;
  --radius-sm:    12px;
  --radius-lg:    28px;
  --shadow-sm:    0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow:       0 8px 24px rgba(16,24,40,.10);
  --shadow-lg:    0 24px 60px rgba(16,24,40,.18);
  --maxw:         1120px;
  --gutter:       clamp(20px, 5vw, 48px);
  --font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------ Layout ------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 6vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.section-sub { margin-top: 16px; color: var(--text-2); font-size: clamp(1rem, 2vw, 1.12rem); }

/* ------------------------------ Botones ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #2570d6; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

/* ----------------------- Badges tiendas (SVG) ------------------------ */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge { display: inline-block; transition: transform .15s ease, opacity .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img, .store-badge svg { height: 54px; width: auto; }
.store-badge[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* ------------------------------ Header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; }
.brand .mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand); box-shadow: var(--shadow-sm);
}
.brand .mark img { width: 26px; height: 26px; }
.brand b { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ------------------------------- Hero -------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(48,179,238,.18), transparent 60%),
    linear-gradient(180deg, #eaf6fd 0%, var(--bg) 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
.hero h1 .hl { color: var(--primary); }
.hero-lead { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); max-width: 32ch; }
.hero-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.hero-note { font-size: .85rem; color: var(--text-3); }

/* Mockup de teléfono */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: clamp(240px, 30vw, 300px); aspect-ratio: 9 / 19.5;
  background: var(--ink); border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.2);
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  background: var(--brand); display: grid; place-items: center; position: relative;
}
.phone-screen img.shot { width: 100%; height: 100%; object-fit: cover; }
.phone-screen .placeholder { text-align: center; color: #fff; padding: 24px; }
.phone-screen .placeholder img { width: 88px; margin: 0 auto 18px; }
.phone-screen .placeholder b { font-size: 1.4rem; display: block; }
.phone-screen .placeholder span { opacity: .85; font-size: .92rem; }
.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.float-badge .dot { width: 9px; height: 9px; border-radius: 50%; }
.float-badge.one { top: 14%; left: -6%; }
.float-badge.two { bottom: 16%; right: -8%; }

/* --------------------------- Tira de stats --------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 16px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--primary); }
.stat span { color: var(--text-2); font-size: .92rem; }

/* ---------------------------- Features ------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-img { aspect-ratio: 16 / 11; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feature:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 22px 22px 26px; }
.feature-body h3 { font-size: 1.18rem; font-weight: 700; }
.feature-body p { margin-top: 8px; color: var(--text-2); font-size: .96rem; }

/* ------------------------- Bloque "cómo" ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.steps { display: grid; gap: 22px; margin-top: 8px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--primary);
}
.step:nth-child(2) .num { background: var(--secondary); }
.step:nth-child(3) .num { background: var(--accent); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-2); margin-top: 4px; font-size: .96rem; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.media-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ------------------------------- CTA --------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--brand));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 72px) var(--gutter);
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.cta p { margin-top: 14px; opacity: .92; font-size: 1.1rem; }
.cta .store-badges { justify-content: center; margin-top: 30px; }

/* ------------------------------ Footer ------------------------------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand b, .site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 700; }
.site-footer a, .site-footer li { color: #94a3b8; font-size: .92rem; line-height: 2; }
.site-footer a:hover { color: #fff; }
.footer-desc { margin-top: 14px; max-width: 30ch; font-size: .92rem; color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); }
.social a:hover { background: var(--primary); }
.social svg { width: 18px; height: 18px; fill: currentColor; color: #cbd5e1; }
.social a:hover svg { color: #fff; }

/* ----------------------- Páginas legales/soporte --------------------- */
.page-hero { background: linear-gradient(180deg, #eaf6fd, var(--bg)); padding-block: clamp(48px, 7vw, 84px) clamp(24px,4vw,40px); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-hero p { margin-top: 12px; color: var(--text-2); }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin-top: 40px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin-top: 26px; }
.prose p, .prose li { color: var(--text-2); margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ul li { margin-top: 6px; }
.prose a { color: var(--primary); text-decoration: underline; }
.note {
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 20px; font-size: .92rem; color: var(--text-2);
}

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; }

.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); }
.contact-card .ic { width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 12px; background: #eaf6fd; color: var(--primary); }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { margin-top: 6px; color: var(--text-2); font-size: .92rem; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ----------------------------- Responsive ---------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { align-items: center; }
  .hero .store-badges { justify-content: center; }
  .phone-wrap { order: -1; margin-bottom: 8px; }
  .split { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }

  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav[data-open="true"] .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px var(--gutter); gap: 14px; text-align: left;
  }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
