:root{
  --text:#101114;
  --muted:#5a5f67;
  --line:rgba(0,0,0,.08);
  --shadowSoft: 0 14px 30px rgba(0,0,0,.10);
  --radius: 18px;
  --wa:#25D366;
}

/* Reset */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#f2f2f2;
  line-height:1.6;
}
.container{width:min(1120px,92%);margin:0 auto}

/* Header */
.header{
  position:fixed;top:0;left:0;width:100%;
  background:rgba(255,255,255,.70);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 50;
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0;gap:16px;
  transition: padding .2s ease;
}
.header.scrolled .nav{ padding:10px 0; }

.brand{ text-decoration:none; color:inherit; display:grid; gap:2px; }
.brand-top{ font-weight:800; letter-spacing:3px; }
.brand-sub{ font-size:12px; color:#555; }

.menu a{
  text-decoration:none;color:#111;margin-left:18px;font-size:14px;opacity:.9;
  transition: opacity .2s ease, transform .2s ease;
}
.menu a:hover{ opacity:1; transform: translateY(-1px); }

/* Scrollspy active */
.nav-link.active{
  opacity: 1;
  position: relative;
}
.nav-link.active::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
}
.menu .btn.nav-link.active{
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;border-radius: 14px;
  text-decoration:none;border:1px solid #000;
  font-weight:600; font-size:14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadowSoft); }

.btn-primary{
  background:#fff; color:#111; border:1px solid rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
.btn-primary::before{
  content:"";
  position:absolute; inset:-40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-60%) rotate(10deg);
  transition: transform .6s ease;
}
.btn-primary:hover::before{ transform: translateX(60%) rotate(10deg); }
.btn-primary:hover{ background:#f7f7f7; }

.btn-silver{
  background: linear-gradient(180deg, #F3F3F3, #CFCFCF);
  border: 1px solid rgba(0,0,0,0.18);
  color:#111;
  position: relative; overflow: hidden;
}
.btn-silver::before{
  content:"";
  position:absolute; inset:-40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.50), transparent);
  transform: translateX(-60%) rotate(10deg);
  transition: transform .6s ease;
}
.btn-silver:hover::before{ transform: translateX(60%) rotate(10deg); }
.btn-silver:hover{ background: linear-gradient(180deg, #ffffff, #D8D8D8); }

.btn-whatsapp{
  background: var(--wa);
  border: 1px solid var(--wa);
  color:#fff;
  box-shadow: 0 16px 40px rgba(37,211,102,.24);
}
.btn-whatsapp:hover{
  background:#1ebe5d;
  box-shadow: 0 20px 50px rgba(37,211,102,.32);
}
.btn-block{ width:100%; }

/* Tooltips pop */
.tip{ position:relative; }
.tip::after{
  content: attr(data-tip);
  position:absolute;
  left:50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  background: rgba(15,15,16,.95);
  color:#fff;
  font-size:12px;
  padding:8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 100;
}
.tip:hover::after{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}

/* Hero */
.hero{
  height:100vh; width:100%;
  position:relative; display:flex; align-items:center;
  background: url("img/hero-jireh.jpeg") center/cover no-repeat;
  color:#fff;
  padding-top:84px;
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 30% 35%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.62));
  z-index:0;
}
.hero-content{ position:relative; z-index:1; }

.kicker{
  font-size:12px; letter-spacing:2px; opacity:.85;
  text-transform:uppercase;
}
.hero-title{
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  margin: 14px 0;
}
.lead{ max-width:760px; opacity:.92; }

.cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }

.chips{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.chips span{
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size:12px; backdrop-filter: blur(6px);
}

/* Scroll cue */
.scroll-cue{
  position:absolute; left:50%; bottom:26px;
  transform: translateX(-50%);
  width:34px; height:54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  display:flex; align-items:flex-start; justify-content:center;
  padding-top:10px;
  opacity:.9;
}
.scroll-cue span{
  width:6px; height:6px; border-radius:50%;
  background: rgba(255,255,255,.85);
  animation: dot 1.2s infinite ease-in-out;
}
@keyframes dot{
  0%{ transform: translateY(0); opacity:.3; }
  50%{ transform: translateY(18px); opacity:1; }
  100%{ transform: translateY(0); opacity:.3; }
}

/* Sections */
.section{ padding:96px 0; background:#fff; }
.section.alt{ background:#f5f5f5; border-top:1px solid #eee; border-bottom:1px solid #eee; }
.section-head{ display:grid; gap:10px; margin-bottom:18px; }
.section h2{ font-size:30px; }
.muted{ color:var(--muted); }
.tiny{ font-size:12px; }

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:16px;
}
.card{
  text-align:left;
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius);
  padding:18px;
  cursor:pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 180px at 20% 0%, rgba(37,211,102,.14), transparent 55%);
  opacity:0;
  transition: opacity .25s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadowSoft);
  border-color: rgba(0,0,0,.14);
}
.card:hover::before{ opacity:1; }
.card-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.card h3{ font-size:16px; }
.card p{ font-size:14px; color:#444; position:relative; z-index:1; }
.card-cta{ margin-top:12px; font-weight:700; font-size:13px; opacity:.9; position:relative; z-index:1; }
.pill{
  font-size:12px; padding:6px 10px; border-radius:999px;
  background:#f1f1f1; border:1px solid rgba(0,0,0,.06);
}

/* Grid */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.box{
  background:#fff;
  border:1px solid #eee;
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.box h3{ margin-bottom:8px; }
.box ul{ padding-left:18px; color:#444; }

/* Confianza */
.trust-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
  margin-top: 12px;
}
.trust-card{
  display:flex; gap:12px; align-items:flex-start;
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.trust-ico{
  width:42px; height:42px; border-radius: 14px;
  background: rgba(0,0,0,.05);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
}
.trust-card h3{ font-size:15px; margin-bottom:2px; }
.trust-card p{ font-size:13px; }

.how{
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.how h3{ margin-bottom: 10px; }
.how-steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.step{
  display:flex; gap:10px;
  padding:12px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  background: #fafafa;
}
.step-n{
  width:34px; height:34px;
  border-radius: 12px;
  background: rgba(37,211,102,.14);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
}
.how-cta{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 14px;
}

/* FAQ */
.faq{ display:grid; gap:10px; }
.faq-item{
  width:100%;
  text-align:left;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius: 16px;
  padding: 14px 14px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:700;
}
.faq-panel{
  border-left: 2px solid rgba(0,0,0,.10);
  margin-left: 10px;
  padding: 0 0 0 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-panel.open{ max-height: 180px; }
.faq-icon{ font-weight:900; opacity:.75; }

/* Contact silver */
.contact-silver{
  background: radial-gradient(1000px 500px at 20% 20%, rgba(255,255,255,.55), transparent 55%),
              linear-gradient(180deg, #E6E6E6, #CFCFCF);
}
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:16px;
  align-items:start;
}
.glass{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding:18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 55px rgba(0,0,0,.08);
}
.badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.badge{
  font-size:12px; padding:7px 10px; border-radius:999px;
  background: rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.06);
}

/* Form */
.form{ display:flex; flex-direction:column; gap:12px; }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.form label{ font-size:13px; color:#333; display:grid; gap:6px; }
.form input, .form select, .form textarea{
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  outline:none;
  font-family: inherit;
  transition: box-shadow .2s ease, border-color .2s ease;
  background: rgba(255,255,255,.92);
}
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: rgba(37,211,102,.6);
  box-shadow: 0 0 0 5px rgba(37,211,102,.18);
}
.form textarea{ min-height:110px; resize:vertical; }
.hidden{ display:none; }

/* Validación premium */
.field-error{
  display:none;
  color:#b42318;
  font-size:12px;
  margin-top:2px;
}
.input-error{
  border-color: rgba(180,35,24,.65) !important;
  box-shadow: 0 0 0 5px rgba(180,35,24,.16) !important;
}
.input-ok{
  border-color: rgba(37,211,102,.65) !important;
  box-shadow: 0 0 0 5px rgba(37,211,102,.16) !important;
}

/* Footer */
.footer{ padding:30px 0; background:#fff; border-top:1px solid #eee; }
.footer-inner{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

/* WhatsApp float */
.wa-float{
  position:fixed; right:18px; bottom:18px;
  width:58px; height:58px; border-radius:50%;
  background: var(--wa);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 18px 50px rgba(37,211,102,.30);
  z-index: 60;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover{
  transform: scale(1.08);
  box-shadow: 0 22px 60px rgba(37,211,102,.36);
}

/* Back to top */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  cursor: pointer;
  z-index: 58;

  display:flex;
  align-items:center;
  justify-content:center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover{ transform: translateY(-2px); }

/* Mobile CTA */
.mobile-cta{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(520px, 92%);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  display: none;
  gap: 10px;
  padding: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
  z-index: 59;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mcta-btn{
  flex:1;
  text-decoration:none;
  border-radius: 14px;
  padding: 12px 12px;
  text-align:center;
  font-weight: 800;
  font-size: 14px;
}
.mcta-wa{ background: var(--wa); color:#fff; }
.mcta-main{ background:#111; color:#fff; }
@media (max-width: 900px){
  .mobile-cta{ display: flex; }
}

/* Modal */
.modal{ display:none; }
.modal.show{ display:block; }
.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(6px);
  z-index:200;
}
.modal-card{
  position:fixed; left:50%; top:50%;
  transform: translate(-50%, -50%);
  width: min(940px, 92%);
  max-height: 86vh;
  overflow:auto;
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.40);
  z-index:210;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn{
  from { transform: translate(-50%, -48%) scale(0.98); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.modal-head{
  position: sticky; top:0;
  background:#0f0f0f; color:#fff;
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.modal-close{
  border:none; background:transparent; color:#fff;
  font-size:18px; cursor:pointer;
}
.modal-body{ padding:16px; }
.modal-actions{ display:flex; gap:10px; flex-wrap:wrap; margin: 12px 0 14px; }
.modal-img-wrap img{
  width:100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #eee;
}
.modal-subtitle{ margin-top: 14px; font-size: 14px; color:#111; }

.modal-cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}
.modal-list{
  padding-left: 18px;
  color:#444;
  display:grid;
  gap: 6px;
  margin-top: 10px;
}
.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.meta span{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
}
.refs{ display:grid; gap:10px; margin-top:12px; }
.ref{
  border:1px solid #eee;
  border-radius:16px;
  padding:12px;
  background:#fafafa;
}
.ref a{ color:#111; text-decoration:none; font-weight:800; }
.ref a:hover{ text-decoration:underline; }
.ref p{ margin-top:4px; color:var(--muted); font-size:13px; }

/* Reveal */
[data-reveal]{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.revealed{
  opacity:1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 900px){
  .grid2{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .row{ grid-template-columns:1fr; }
  .how-steps{ grid-template-columns:1fr; }
  .modal-cols{ grid-template-columns:1fr; }
  .hero{ padding-top:92px; }
}

