/* MisGastos Landing - Minimal, modern, fast (no clutter) */
:root{
  --bg: #1b0f3b;
  --panel: rgba(255,255,255,.08);
  --panel2: rgba(255,255,255,.12);

  --text: #ffffff;
  --muted: rgba(255,255,255,.75);
  --muted2: rgba(255,255,255,.6);

  --stroke: rgba(255,255,255,.14);

  --accent: #6cf2c2;
  --accent2: #5aa9ff;

  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(122,92,255,.35), transparent 60%),
    radial-gradient(800px 500px at 80% 30%, rgba(88,198,255,.25), transparent 60%),
    linear-gradient(180deg, #2a136a 0%, #140b2e 100%);
  color:var(--text);
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(167,139,250,.40), transparent 62%),
    radial-gradient(1050px 650px at 88% 12%, rgba(105,215,255,.25), transparent 60%),
    radial-gradient(900px 600px at 50% 85%, rgba(139,92,246,.22), transparent 58%),
    linear-gradient(180deg, rgba(124,58,237,.22), rgba(18,8,36,0) 45%),
    var(--bg);

color:var(--text);
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.hr{height:1px; background:var(--stroke); margin:18px 0}
.kicker{font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted2)}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:600;
  transition:.18s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.06)}
.btn.primary{
  border:1px solid rgba(108,242,194,.6);
  background:linear-gradient(180deg, #6cf2c2, #5aa9ff);
  color:#0b1020;
}


.btn.primary:hover{filter:saturate(1.05); transform:translateY(-1px)}

.card{
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* NAV */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background:rgba(7,10,16,.68);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800}
.brand img{width:22px; height:22px}
.nav-links{
  display:flex; gap:18px;
  color:var(--muted);
  font-weight:600;
  overflow:auto;
  scrollbar-width:none;
}
.nav-links::-webkit-scrollbar{display:none}
.nav-links a{padding:8px 6px; border-radius:10px}
.nav-links a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.nav-cta{display:flex; gap:10px}

/* HERO */
main{padding-bottom:40px}
.hero{padding:56px 0 18px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:start;
}
.h-title{
  margin:14px 0 10px;
  font-size:clamp(34px, 4.4vw, 56px);
  line-height:1.02;
  letter-spacing:-.02em;
}
.h-sub{color:var(--muted); font-size:18px; max-width:52ch}
.hero-ctas{display:flex; gap:12px; margin:18px 0 10px; flex-wrap:wrap}
.hero-note{color:var(--muted2); font-size:13px; margin-top:8px}

.hero-shot{padding:16px; position:relative; overflow:hidden}
.hero-shot .mock{
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
}
.hero-shot .mock img{width:100%; height:auto}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.item p{margin:6px 0 0; color:var(--muted); font-size:14px}
.item .kicker{margin-bottom:6px}

/* SECTIONS */
.section{padding:34px 0}
.sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.sec-title{margin:6px 0 0; font-size:28px; letter-spacing:-.01em}
.sec-desc{margin:0; color:var(--muted); max-width:52ch}

.grid3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
.grid2sec{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px}

.card.item{padding:16px}
.icon{
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  font-weight:800;
  color:var(--text);
}
.card.item h3{margin:12px 0 6px; font-size:16px}
.card.item p{margin:0; color:var(--muted)}

/* Screens */
.screens{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px}
.shot{padding:12px}
.shot img{
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
}
.label{margin-top:10px; color:var(--muted); font-size:13px}

/* Locked block */
.locked{padding:16px; opacity:.92}
.locked-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:12px;
}

/* Footer */
.footer{padding:28px 0 40px; color:var(--muted2)}
.footer a{color:var(--muted); text-decoration:underline}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; gap:16px}
  .sec-head{flex-direction:column; align-items:flex-start}
  .grid3{grid-template-columns:1fr}
  .grid2, .grid2sec{grid-template-columns:1fr}
  .screens{grid-template-columns:1fr}
  .nav-links{display:none} /* simplifica navegación para evitar encimado */
}

/* Prevent giant screenshots from dominating the hero */
.hero-shot .mock img{
  max-height: 360px;
  object-fit: cover;
}

/* --- Screenshots layout override (v1) --- */
.screens{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr 1.35fr;
  grid-template-areas:
    "dash ticket"
    "cat  ticket"
    "seg  ticket";
  align-items: stretch;
}

.screens .card.shot:nth-child(1){ grid-area: dash; }
.screens .card.shot:nth-child(2){ grid-area: ticket; }
.screens .card.shot:nth-child(3){ grid-area: cat; }
.screens .card.shot:nth-child(4){ grid-area: seg; }

/* Make the hero screenshot feel like a hero */
.screens .card.shot:nth-child(2) img{
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

/* On mobile, go back to 1 column */
@media (max-width: 900px){
  .screens{
    grid-template-columns: 1fr;
    grid-template-areas:
      "ticket"
      "dash"
      "cat"
      "seg";
  }
  .screens .card.shot:nth-child(2) img{
    min-height: 0;
  }
}
/* --- DEBUG: if you can't see this, CSS is not applying --- */
.screens{ outline: 8px solid magenta !important; background: rgba(255,0,255,.08) !important; }
.screens .card.shot{ outline: 3px solid lime !important; }

/* --- HARD OVERRIDE: force new layout --- */
section#capturas .screens{
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: 1fr 1.35fr !important;
  grid-template-areas:
    "dash ticket"
    "cat  ticket"
    "seg  ticket" !important;
  align-items: stretch !important;
}

section#capturas .screens > .card.shot:nth-child(1){ grid-area: dash !important; }
section#capturas .screens > .card.shot:nth-child(2){ grid-area: ticket !important; }
section#capturas .screens > .card.shot:nth-child(3){ grid-area: cat !important; }
section#capturas .screens > .card.shot:nth-child(4){ grid-area: seg !important; }

section#capturas .screens > .card.shot:nth-child(2) img{
  height: 100% !important;
  min-height: 520px !important;
  object-fit: cover !important;
}

@media (max-width: 900px){
  section#capturas .screens{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "ticket"
      "dash"
      "cat"
      "seg" !important;
  }
  section#capturas .screens > .card.shot:nth-child(2) img{
    min-height: 0 !important;
  }
}

/* --- Screens Carousel --- */
.screens-carousel{ margin-top: 10px; }

.carousel{
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.cviewport{
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
}

.ctrack{
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.cslide{
  min-width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.cslide .shotcard{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.cslide img{
  width: 100%;
  height: auto;
  display: block;
}

.cbtn{
  height: 44px;
  width: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cbtn:hover{ background: rgba(255,255,255,.10); }

.cdots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.cdot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  cursor: pointer;
}

.cdot[aria-current="true"]{
  width: 18px;
  background: rgba(255,255,255,.70);
  border-color: rgba(255,255,255,.70);
}

.ccaption{
  margin-top: 10px;
  text-align: center;
}

.ctitle{
  font-weight: 700;
  letter-spacing: .2px;
}

.csubtitle{
  opacity: .78;
  font-size: 13px;
  margin-top: 2px;
}

@media (max-width: 900px){
  .carousel{ grid-template-columns: 40px 1fr 40px; }
  .cbtn{ width: 40px; height: 40px; font-size: 26px; }
  .cslide{ padding: 10px; }
}

/* --- Gallery Carousel (hero + thumbnails) --- */
.screens-carousel .carousel{
  grid-template-columns: 44px 1fr 44px; /* deja flechas */
}

.screens-carousel .cviewport{
  border-radius: 16px;
}

/* Hero (principal): relación fija para que TODO se vea uniforme */
.screens-carousel .cviewport{
  aspect-ratio: 16 / 9;            /* ajustable */
}
@media (max-width: 900px){
  .screens-carousel .cviewport{ aspect-ratio: 4 / 3; }
}

/* Track/slide: una sola imagen visible */
.screens-carousel .ctrack{ height: 100%; }
.screens-carousel .cslide{ padding: 0; height: 100%; }
.screens-carousel .shotcard{ height: 100%; }

/* Clave: uniformidad de imágenes (chicas/grandes) */
.screens-carousel .cslide img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* uniforma sin recortar (recomendado para screenshots) */
  display: block;
  background: rgba(0,0,0,.12);
}

/* Thumbnails */
.cthumbs{
  margin-top: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.cthumb{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  aspect-ratio: 16 / 10; /* uniforme */
  overflow: hidden;
}

.cthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* miniatura recorta un poco para verse pareja */
  display:block;
  opacity: .92;
}

.cthumb[aria-current="true"]{
  border-color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.10);
  transform: scale(1.04); /* “se amplía” la activa */
}

.cthumb:focus{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 2px;
}

/* Opcional: oculta dots si usas miniaturas */
.screens-carousel .cdots{ display:none; }

/* --- Steps Flow --- */
.mg-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:20px;
}

.mg-step{
  border-radius:16px;
  padding:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  text-align:left;
}

.mg-step img{
  width:36px;
  height:36px;
  margin-bottom:10px;
  color:white;
}

.mg-step h4{
  margin:0 0 6px 0;
  font-size:15px;
  font-weight:800;
}

.mg-step p{
  margin:0;
  font-size:13px;
  opacity:.8;
}

@media (max-width:900px){
  .mg-steps{ grid-template-columns:1fr; }
}

/* --- Flow direction arrows --- */
.mg-step{
  position: relative;
}

@media (min-width: 901px){
  .mg-step:not(:last-child)::after{
    content: "›";
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: 800;
    color: rgba(255,255,255,.35);
    pointer-events: none;
  }
}

/* --- Step icon emphasis --- */
.mg-step img{
  color: #6CF2C2; /* verde MisGastos */
}

.mg-step:nth-child(2) img{ color:#7DD3FC; }
.mg-step:nth-child(3) img{ color:#FBBF24; }
.mg-step:nth-child(4) img{ color:#C084FC; }

/* --- Entry emphasis --- */
.mg-step:first-child{
  border-color: rgba(108,242,194,.55);
  box-shadow: 0 0 0 1px rgba(108,242,194,.15);
}

.mg-step{
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.mg-step:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
}

/* --- Steps: bigger white icons (dashboard-like) --- */
.mg-step__icon{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

.mg-step__svg{
  width: 30px;
  height: 30px;
  stroke: rgba(255,255,255,.95);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Si quieres aún más grandes como dashboard */
@media (min-width: 901px){
  .mg-step__icon{ width: 58px; height: 58px; }
  .mg-step__svg{ width: 34px; height: 34px; }
}

/* Captions debajo de cada captura del carrusel */
.shotcard { overflow: hidden; }
.shotcap{
  padding: 12px 14px;
  border-top: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.55);
}
.shotcap-title{
  font-weight: 700;
  font-size: 14px;
  color: rgba(226,232,240,1);
}
.shotcap-sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(148,163,184,1);
  line-height: 1.35;
}
.ccaption{ display:none !important; }
