:root{
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand1:#6366f1;
  --brand2:#a78bfa;
  --brand3:#f472b6;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
     color:var(--ink); background:linear-gradient(#fff,#f8fafc)}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.header{position:sticky;top:0;backdrop-filter:saturate(180%) blur(12px);background:rgba(255,255,255,.85);border-bottom:1px solid var(--line);z-index:40}
.header-inner{height:64px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;font-weight:600}
.badge{width:32px;height:32px;border-radius:12px;background:linear-gradient(135deg,var(--brand1),var(--brand2),var(--brand3));box-shadow:0 6px 20px rgba(99,102,241,.35)}
.nav a{margin-left:20px;color:#64748b;text-decoration:none;font-size:14px}
.nav a:hover{color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:12px 16px;font-weight:600;font-size:14px;text-decoration:none}
.btn-primary{background:#000;color:#fff}
.btn-outline{border:1px solid var(--line);color:var(--ink)}
.hero{padding:80px 0}
h1{font-size:40px;line-height:1.1;margin:0}
.hero p{color:var(--muted);font-size:18px;margin-top:14px}
.hero-cta{margin-top:28px;display:flex;gap:12px;flex-wrap:wrap}
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:1fr 1fr}
@media(max-width:900px){.grid-2{grid-template-columns:1fr}}
.card{border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(2,6,23,.04);padding:20px}
.section{padding:72px 0}
.section h2{font-size:28px;margin:0 0 8px}
.section p.lead{color:var(--muted)}
.features{grid-template-columns:repeat(3,1fr)}
@media(max-width:1000px){.features{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.features{grid-template-columns:1fr}}
.feature .icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--brand1),var(--brand3));margin-bottom:10px}
.hr{border-top:1px solid var(--line)}
.faq{grid-template-columns:1fr 1fr}
@media(max-width:800px){.faq{grid-template-columns:1fr}}
.footer{padding:40px 0;color:#64748b;font-size:14px}
/* Carousel */
.carousel{position:relative}
.carousel-viewport{overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fff}
.carousel-track{display:flex;transition:transform .4s ease}
.slide{flex:0 0 100%;padding:20px;background:#fff}
.slide img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--line)}
.carousel-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px}
.carousel-btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:8px 12px;cursor:pointer}
.carousel-dot{width:8px;height:8px;border-radius:999px;background:#cbd5e1;display:inline-block}
.carousel-dot[aria-current="true"]{background:#0f172a;width:10px;height:10px}
/* Phone mock beside hero */
.phone{position:relative;max-width:420px;margin:auto}
.phone .frame{border:1px solid var(--line);border-radius:32px;padding:16px;background:#fff;box-shadow:0 10px 30px rgba(2,6,23,.08)}
.pill{width:40px;height:6px;border-radius:6px;background:#e5e7eb;margin:8px auto}
.shadow-blob{position:absolute;inset:auto -40px -24px -40px;background:linear-gradient(90deg,#f5d0fe,#ddd6fe,#c7d2fe);filter:blur(24px);opacity:.5;border-radius:100px}
.small{font-size:12px;color:#94a3b8}
/* --- Brand overrides (gradient hero) --- */

:root{
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand1:#6366f1; /* indigo */
  --brand2:#a78bfa; /* violet */
  --brand3:#f472b6; /* pink */
}
/* Top hero gradient */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #c7d2fe, #ddd6fe, #f5d0fe);
}
.header{position:sticky;top:0;backdrop-filter:saturate(180%) blur(12px);background:rgba(255,255,255,.85);border-bottom:1px solid var(--line);z-index:40}
.btn-primary{background:#000;color:#fff}


/* --- Override hero background to strong blue gradient --- */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #93c5fd, #3b82f6, #1e3a8a);
}
.hero h1, .hero p, .hero strong { color: white; }
.hero .btn-outline { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.25); }


/* --- Override hero background: dark blue to light blue --- */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #93c5fd);
}


/* --- Override hero background: custom navy to light blue-gray --- */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #21334A, #2b4665, #E5EDF5);
}
.hero h1, .hero p, .hero strong { color: #8CABCF; }
.hero .btn-primary { background:#8CABCF; color:#21334A; }
.hero .btn-outline { border-color: rgba(255,255,255,0.4); color:#8CABCF; background: rgba(255,255,255,0.05); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }


/* --- Override hero background: deep navy to navy --- */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #0F1A24, #21334A);
}
.hero h1, .hero p, .hero strong { color: white; }
.hero .btn-primary { background:#8CABCF; color:#0F1A24; }
.hero .btn-outline { border-color: rgba(255,255,255,0.4); color:white; background: rgba(255,255,255,0.05); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }


/* --- Hero text white override --- */
.hero h1, .hero p, .hero strong { color: #FFFFFF; }
.hero .btn-primary { background:#FFFFFF; color:#0F1A24; }
.hero .btn-outline { border-color: rgba(255,255,255,0.8); color:#FFFFFF; background: rgba(255,255,255,0.05); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }


/* --- Override hero text to white for readability --- */
.hero h1, .hero p, .hero strong { color: #ffffff; }
.hero .btn-primary { background:#ffffff; color:#0F1A24; }
.hero .btn-outline { border-color: rgba(255,255,255,0.8); color:white; background: rgba(255,255,255,0.05); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }


/* --- Override all brand gradients to new blue --- */
.badge,
.feature .icon,
.card > div[style*="background:linear-gradient"],
.phone .card > div[style*="background:linear-gradient"] {
  background: linear-gradient(135deg, #004594, #4570A1) !important;
}


/* --- Override all brand gradients to #004594 -> #8CABCF --- */
.badge,
.feature .icon,
.card > div[style*="background:linear-gradient"],
.phone .card > div[style*="background:linear-gradient"] {
  background: linear-gradient(135deg, #004594, #8CABCF) !important;
}


/* --- Make carousel screenshots smaller on larger screens --- */
.carousel .slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel .slide img {
  max-width: 350px;
  height: auto;
}
@media (max-width: 640px) {
  .carousel .slide img {
    max-width: 100%;
  }
}


/* --- Hero background: #004594 to #0059A3 --- */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #004594, #0059A3);
}
.hero h1, .hero p, .hero strong { color: white; }
.hero .btn-primary { background:#ffffff; color:#004594; }
.hero .btn-outline { border-color: rgba(255,255,255,0.8); color:white; background: rgba(255,255,255,0.05); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }


/* --- Hero background: #002b48 to #004594 --- */
.hero{
  padding: 96px 0;
  background: linear-gradient(135deg, #002b48, #004594);
}
.hero h1, .hero p, .hero strong { color: white; }
.hero .btn-primary { background:#ffffff; color:#002b48; }
.hero .btn-outline { border-color: rgba(255,255,255,0.8); color:white; background: rgba(255,255,255,0.05); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); }


/* --- Final override for up-arrow circle & centering --- */
.up-arrow{
  width:32px;
  height:32px;
  display:inline-grid;
  place-items:center;
  padding:0;
  line-height:0;
  border-radius:9999px;
  background:#ffffff;
  border:1px solid #e5eaf0;
  box-shadow:
    0 2px 4px rgba(15,23,42,0.06),
    0 18px 40px rgba(15,23,42,0.10);
  color:#0f172a;
  text-decoration:none;
  vertical-align:middle;
}
.up-arrow svg{
  width:16px;
  height:16px;
  display:block;
}

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* Ensure hero preview image renders correctly inside phone frame */
.phone .frame img{
  display:block;
  width:100%;
  height:auto;
  border-radius:20px;
  border:1px solid var(--line);
}


/* --- Phone mock: list layout (restored) --- */
.phone{position:relative;max-width:420px;margin:auto}
.phone .frame{border:1px solid var(--line);border-radius:32px;padding:16px;background:#fff;box-shadow:0 10px 30px rgba(2,6,23,.08)}
.pill{width:40px;height:6px;border-radius:6px;background:#e5e7eb;margin:8px auto}
.phone .mock-section{border:1px solid var(--line);border-radius:20px;padding:16px;background:#fff}
.phone .mock-header,
.phone .mock-card{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);background:#f3f4f6;border-radius:16px;padding:14px}
.phone .mock-header{margin-top:8px}
.phone .mock-card{margin-top:12px}
.phone .mock-icon{width:18px;height:18px;border-radius:6px;background: linear-gradient(135deg, #004594, #8CABCF);flex:0 0 auto}
.phone .mock-title{font-weight:700;color:#0f172a}
.phone .mock-sub{font-size:12px;color:#475569;margin-top:2px;line-height:1.35}
.phone .mock-button{margin-top:14px;width:100%;height:44px;border:none;border-radius:12px;background:#004594;color:#fff;font-weight:700;letter-spacing:.2px}


/* ===== Language switcher (scoped, non-intrusive) ===== */
.i18n-switch{display:inline-flex;gap:.5rem;align-items:center;margin-left:8px}
.i18n-switch button{
  all: unset;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 0 rgba(0,0,0,.06) inset;
  cursor: pointer;
}
.i18n-switch button:hover{transform: translateY(-1px)}
.i18n-switch button.active{outline:2px solid rgba(0,0,0,.18); outline-offset:2px}
.i18n-switch .flag{font-size:18px; line-height:1}

/* ===== Header responsive (mobile-first enhancements) ===== */
.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  width:40px; height:40px;
  align-items:center; justify-content:center;
  cursor:pointer;
  color:#334155;
}

.nav {
  display:flex; align-items:center; gap:0;
}
.nav a{ margin-left:20px; }

.nav-extras{ display:flex; align-items:center; gap:12px; margin-left:20px; }
.nav-divider{ display:none; }

/* Mobile ≤900px: convertir nav en panel desplegable */
@media (max-width: 900px){
  .header-inner{
    height:64px;
    display:grid;
    grid-template-columns:auto auto;
    align-items:center;
    gap:12px;
  }

  .menu-toggle{ display:inline-flex; justify-self:end; }

  .nav{
    position: absolute;
    /* se ancla bajo la cabecera */
    left:0; right:0;
    top:64px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin:0 auto;
    padding:8px;
    width:min(92%, 520px);
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:
      0 10px 20px rgba(2,6,23,.08),
      0 24px 48px rgba(2,6,23,.10);
    z-index:50;
  }

  .header.is-open .nav{ display:flex; }

  .nav a{
    margin:0;
    padding:14px 12px;
    font-size:16px;
    line-height:1.3;
    color:#0f172a;
    border-radius:10px;
  }
  .nav a:hover{ background:#f8fafc; color:#0f172a; }

  .nav-divider{
    display:block;
    height:1px;
    background:var(--line);
    margin:6px 8px;
    border-radius:999px;
  }

  .nav-extras{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 4px 4px;
    gap:10px;
  }

  .appstore-btn{
    flex:0 0 auto;
    padding:10px 12px;
    font-size:14px;
  }

  /* Evitar que el body se desplace detrás del panel */
  body.no-scroll{ overflow:hidden; }
}

/* Un pequeño refuerzo para la barra fija en móvil, sobre el hero con gradiente */
@media (max-width: 900px){
  .header{
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
  }
}