*{ box-sizing:border-box; }

:root{
  --bg:#fff;
  --ink:#0a0a0a;
  --muted:#2a2a2a;
  --muted2:rgba(0,0,0,.62);
  --stroke:rgba(0,0,0,.12);
  --soft:rgba(0,0,0,.03);
  --red:#dc2626;

  --max: 980px;
  --pad: clamp(18px, 4vw, 34px);
  --gap: clamp(40px, 6vw, 74px);
  --radius: 16px;
}

html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

a{ color:inherit; text-decoration:none; }
p{ margin:0 0 1.05em; color:var(--muted); }
p:last-child{ margin-bottom:0; }

.container{
  width:min(var(--max), calc(100% - (var(--pad) * 2)));
  margin:0 auto;
  padding: var(--gap) 0;
}

h1,h2,h3{
  margin:0 0 .85em;
  letter-spacing:-.02em;
  line-height:1.12;
  font-weight:900;
  color:var(--ink);
}
h1{ font-size: clamp(2.0rem, 4.2vw, 3.0rem); }
h2{ font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
h3{ font-size: 1.05rem; margin-bottom:.35em; }

.sub{ color: var(--muted2); max-width: 70ch; }

.topbar{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar-inner{
  width:min(var(--max), calc(100% - (var(--pad) * 2)));
  margin:0 auto;
  padding: 10px 0;
  display:flex;
  align-items:center;
  gap: 14px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  white-space: nowrap;
}
.brand-dot{
  width:10px;
  height:10px;
  background: var(--red);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.topnav{
  margin-left:auto;
  display:flex;
  gap: 10px;
  overflow-x:auto;
  scrollbar-width:none;
}
.topnav::-webkit-scrollbar{ display:none; }
.topnav a{
  font-weight: 900;
  color: rgba(0,0,0,.72);
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.topnav a:hover{
  background: var(--soft);
  border-color: var(--stroke);
}
.top-cta{
  font-weight: 900;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
}

.hero{
  text-align:center;
  padding-top: 10px;
}
.kicker{
  display:inline-block;
  font-weight: 950;
  font-size: .92rem;
  color:#fff;
  background: var(--ink);
  border: 1px solid rgba(0,0,0,.25);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lead{
  max-width: 70ch;
  margin: 0 auto 1.4em;
  font-size: 1.06rem;
}
.micro{
  color: rgba(0,0,0,.70);
  font-weight: 800;
  margin-top: 16px;
}

.hero-actions{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
  justify-content:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 15px 22px;
  border-radius: 12px;
  font-weight: 950;
  border:1px solid var(--stroke);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn.primary{
  background: var(--red);
  color:#fff;
  border-color: rgba(0,0,0,.08);
}
.btn.primary:hover{
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.btn.ghost{
  background:#fff;
  color: var(--ink);
}
.btn.ghost:hover{ background: var(--soft); }
.btn.small{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 950;
}

.block{
  padding: var(--gap) 0;
  border-top: 1px solid var(--stroke);
}
.panel{
  background: rgba(0,0,0,.02);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding: calc(var(--gap) * .72) var(--pad);
}

.cards{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.svc{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.svc-sum{
  cursor:pointer;
  padding: 16px;
  list-style:none;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items:start;
  background: var(--ink);
  color:#fff;
}
.svc-sum::-webkit-details-marker{ display:none; }
.svc-head h3{ color:#fff; margin: 0 0 6px; }
.svc-head p{ margin:0; color: rgba(255,255,255,.84); }

.pill{
  font-weight: 950;
  font-size: .85rem;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--red);
  color:#fff;
  border:1px solid rgba(0,0,0,.10);
  height: fit-content;
}

/* Fix: cuando no está abierto, no mostrar body */
.svc .svc-body{ display: none; }
.svc[open] .svc-body{ display: block; }

.svc-body{
  padding: 14px 16px 16px;
}
.svc-body ul{
  margin: 0 0 10px;
  padding-left: 18px;
}
.svc-body li{ margin: 8px 0; color: var(--muted); }

.card-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 950;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.card-btn:hover{
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.card-btn:active{ transform: translateY(0); }

.cta-micro{
  margin-top: 8px;
  color: rgba(0,0,0,.62);
  font-weight: 800;
  font-size: .92rem;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.box{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background:#fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.plain{
  list-style:none;
  padding:0;
  margin: 10px 0 0;
}
.plain li{
  margin: .55em 0;
  color: var(--muted);
}
.plain li::before{
  content:"—";
  color: var(--red);
  font-weight: 950;
  margin-right: .55em;
}
.note{ color: var(--muted2); margin-top: 10px; }

.cta-row{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
}

.faq{ margin-top: 14px; }
.faq details{
  border-top: 1px solid var(--stroke);
  padding: 1.05em 0;
}
.faq details:last-of-type{ border-bottom: 1px solid var(--stroke); }
.faq summary{
  cursor:pointer;
  font-weight: 950;
  color: var(--ink);
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+";
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 950;
}
.faq details[open] summary::after{ content:"−"; }
.faq details p{ margin-top: .85em; color: var(--muted); }
.faq ul{ margin: .75em 0 0; padding-left: 18px; }
.faq li{ margin: .45em 0; color: var(--muted); }

/* Carrusel + flechas */
.carousel-wrap{
  position: relative;
  margin-top: 18px;
}

.carousel{
  display:flex;
  gap: 12px;
  overflow-x:auto;
  padding: 4px 6px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.carousel::-webkit-scrollbar{ height: 8px; }
.carousel::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}

.car-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
  cursor: pointer;
  font-weight: 950;
  font-size: 24px;
  line-height: 1;
  display:grid;
  place-items:center;
  user-select:none;
  z-index: 50;
}
.car-arrow.left{ left: -10px; }
.car-arrow.right{ right: -10px; }
.car-arrow:active{ transform: translateY(-50%) scale(.98); }

.tile{
  min-width: 300px;
  max-width: 300px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background:#fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  scroll-snap-align: start;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  z-index: 1;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(220,38,38,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.12);
  z-index: 2;
}
.tile summary{
  cursor:pointer;
  list-style:none;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
}
.tile summary::-webkit-details-marker{ display:none; }

.tile-top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 6px;
}
.tile-dot{
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.mini{ margin:0; color: var(--muted2); }

.tile-body{
  padding: 0 14px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.tile-body p{ margin-top: 12px; }

/* Footer */
.footer{
  width:100%;
  border-top:1px solid var(--stroke);
  padding: 26px var(--pad);
  text-align:center;
  color: rgba(0,0,0,.62);
  background:#fff;
}
.footer p{ margin-bottom: .85em; }
.social{
  display:flex;
  flex-wrap:wrap;
  gap: 14px 18px;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
}
.social-link{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-weight: 950;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .18s ease;
}
.social-link:hover{ border-bottom-color: var(--red); }

.payments{
  max-width: 760px;
  margin: 12px auto 0;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 14px;
}
.pay-text{
  margin: 0 0 10px;
  color: rgba(0,0,0,.72);
  font-weight: 900;
}
.pay-icons{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content:center;
}
.pay-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.pay-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  border-color: rgba(220,38,38,.25);
  background: rgba(0,0,0,.02);
}
.pay-btn img{ display:block; }
.pay-btn span{ white-space: nowrap; }
.pay-micro{
  margin-top: 10px;
  font-weight: 800;
  color: rgba(0,0,0,.62);
}

/* Modal */
.modal{
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 18px;
  padding: 0;
  width: min(520px, calc(100% - 28px));
}
.modal::backdrop{
  background: rgba(0,0,0,.55);
}
.modal-inner{
  padding: 16px;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.modal-x{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-text{ color: rgba(0,0,0,.72); font-weight: 900; }
.copy-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}
.copy-row code{
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  font-weight: 950;
}
.modal-note{
  margin-top: 12px;
  color: rgba(0,0,0,.62);
  font-weight: 800;
}
.modal-actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
}

@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .top-cta{ display:none; }
  .car-arrow{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn, .topnav a, .social-link, .tile, .card-btn, .pay-btn{ transition:none; }
  .carousel{ scroll-behavior:auto; }
}
