:root{
  --bg: #ffffff;
  --bg2: #f3f7ff;
  --text: #0b1b33;
  --muted: #51627a;

  --blue: #0a4bd7;
  --blue2:#0b66ff;
  --blue3:#00308f;

  --card: #ffffff;
  --border: rgba(11, 27, 51, 0.10);
  --shadow: 0 16px 40px rgba(11, 27, 51, 0.10);

  --radius: 18px;
  --radius2: 26px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.micro{ font-size: .85rem; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }
.btn--block{ width: 100%; }

.btn--primary{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white;
  box-shadow: 0 10px 24px rgba(10, 75, 215, 0.25);
}
.btn--primary:hover{ box-shadow: 0 16px 34px rgba(10, 75, 215, 0.30); }

.btn--ghost{
  background: rgba(10, 75, 215, 0.08);
  border-color: rgba(10, 75, 215, 0.20);
  color: var(--blue3);
}
.btn--ghost:hover{ background: rgba(10, 75, 215, 0.12); }

.btn--dark{
  background: var(--text);
  color: white;
  box-shadow: 0 10px 24px rgba(11, 27, 51, 0.20);
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  padding: .9rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; /* clave: no saltos en desktop */
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width: unset;
  flex-shrink: 1;
}
.brand__text{ display:flex; flex-direction:column; line-height:1.15; }
.brand__name{ font-weight: 950; letter-spacing: .6px; }
.brand__tag{ font-size: .85rem; color: var(--muted); }

.brand__logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(10, 75, 215, 0.25);
}

.brand__img{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(11, 27, 51, 0.10);
  box-shadow: 0 12px 26px rgba(10, 75, 215, 0.12);
}

.nav{
  margin-left: auto;
  display:flex;
  gap: .6rem;
  align-items: center;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav a{
  font-weight: 850;
  color: var(--muted);
  padding: .35rem .55rem;
  border-radius: 999px;
  font-size: .95rem;
}
.nav a:hover{
  background: rgba(10, 75, 215, 0.07);
  color: var(--blue3);
}

.topbar__cta{
  white-space: nowrap;
  flex-shrink: 0;
}

.hamburger{
  display:none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
}
.hamburger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
}

.mobile-nav{
  display:none;
  border-top: 1px solid var(--border);
  padding: .75rem 0;
}
.mobile-nav a{
  display:block;
  padding: .75rem 1rem;
  font-weight: 900;
  color: var(--muted);
}
.mobile-nav a:hover{
  background: rgba(10, 75, 215, 0.06);
  color: var(--blue3);
}
.mobile-nav__cta{
  color: var(--blue3);
  font-weight: 950;
}
.mobile-nav--open{ display:block; }

/* Hero */
.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(10, 75, 215, 0.14), transparent 60%),
    radial-gradient(700px 450px at 85% 20%, rgba(11, 102, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff, #f5f8ff);
  border-bottom: 1px solid var(--border);
}
.hero__inner{
  padding: 4.2rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 2rem;
  align-items: center;
}
.hero h1{
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.7px;
}
.hero p{
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero__cta{ display:flex; gap:.8rem; flex-wrap: wrap; }

.hero__badges{
  margin-top: 1.5rem;
  display:flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.badge{
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: .75rem .9rem;
  box-shadow: 0 10px 22px rgba(11, 27, 51, 0.07);
  min-width: 150px;
}
.badge strong{ display:block; font-size: 1rem; }
.badge span{ color: var(--muted); font-size: .9rem; }

.hero__card{ display:flex; justify-content: flex-end; }
.hero-card{
  width: 100%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.hero-card h3{ margin: 0; }
.hero-card__note{
  margin-top: 1rem;
  background: rgba(10, 75, 215, 0.08);
  border: 1px solid rgba(10, 75, 215, 0.18);
  border-radius: 16px;
  padding: .8rem;
  color: var(--blue3);
}
.hero__wave{
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background:
    radial-gradient(600px 120px at 25% 0%, rgba(10, 75, 215, 0.12), transparent 55%),
    radial-gradient(600px 120px at 75% 0%, rgba(11, 102, 255, 0.12), transparent 55%);
}

/* Sections & Grid */
.section{ padding: 3.2rem 0; }
.section--alt{ background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head{
  margin-bottom: 1.5rem;
  max-width: 820px;
}
.section__head h2{
  margin: 0 0 .5rem;
  font-size: 2rem;
  letter-spacing: -0.4px;
}
.section__head p{ margin: 0; }

.grid{ display:grid; gap: 1.2rem; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(11, 27, 51, 0.07);
  padding: 1.2rem;
}
.card h3{ margin-top: 0; }

.list{
  padding-left: 1.1rem;
  margin: .7rem 0 0;
  color: var(--muted);
}
.list li{ margin: .35rem 0; }

/* Services */
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.service-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 27, 51, 0.10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover,
.service-card:focus-visible{
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11, 27, 51, 0.14);
  border-color: rgba(10, 75, 215, 0.22);
  outline: none;
}
.service-card--quote{
  border-color: rgba(255, 91, 113, 0.30);
}
.service-card__media{
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f9ff, #e4eeff);
}
.service-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.service-card:hover .service-card__media img,
.service-card:focus-visible .service-card__media img{
  transform: scale(1.06);
  filter: saturate(1.03);
}
.service-card__tag{
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 2;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(11, 27, 51, 0.10);
  color: var(--blue3);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  transition: opacity .22s ease, transform .22s ease;
}
.service-card__tag--alert{
  background: rgba(255, 244, 246, 0.96);
  border-color: rgba(255, 91, 113, 0.22);
  color: #c93648;
}
.service-card:hover .service-card__tag,
.service-card:focus-visible .service-card__tag{
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.service-card__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .55rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(11, 27, 51, 0.05) 0%, rgba(11, 27, 51, 0.72) 58%, rgba(11, 27, 51, 0.94) 100%);
  color: #ffffff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .24s ease, transform .24s ease;
}
.service-card:hover .service-card__overlay,
.service-card:focus-visible .service-card__overlay{
  opacity: 1;
  transform: translateY(0);
}
.service-card__overlay p{
  margin: 0;
  line-height: 1.45;
}
.service-card__meta{
  color: rgba(255,255,255,0.78);
  font-size: .84rem;
}
.service-card__body{
  padding: 1rem 1rem 1.1rem;
}
.service-card__eyebrow{
  margin-bottom: .35rem;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue3);
}
.service-card--quote .service-card__eyebrow{
  color: #c93648;
}
.service-card__body h3{
  margin: 0 0 .42rem;
  font-size: 1.18rem;
}
.service-card__body p{
  margin: 0;
  min-height: 3.6em;
}
.service-card__hint{
  display: inline-block;
  margin-top: .85rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

/* ✅ Especialidades con iconos y tiles */
.spec__head{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-bottom: .8rem;
}
.spec__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(10, 75, 215, 0.10);
  border: 1px solid rgba(10, 75, 215, 0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.25rem;
}
.spec__tiles{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: .7rem 0 .9rem;
}
.tile{
  display:flex;
  align-items:center;
  gap:.55rem;
  border: 1px solid rgba(11, 27, 51, 0.10);
  background: rgba(255,255,255,0.8);
  border-radius: 14px;
  padding: .55rem .65rem;
  box-shadow: 0 10px 20px rgba(11, 27, 51, 0.05);
  font-weight: 850;
  color: var(--blue3);
}
.tile__i{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(10, 75, 215, 0.10);
  border: 1px solid rgba(10, 75, 215, 0.16);
}

/* Notice */
.notice{
  margin-top: 1.2rem;
  background: rgba(10, 75, 215, 0.10);
  border: 1px solid rgba(10, 75, 215, 0.20);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--blue3);
  display:flex;
  gap: .6rem;
  align-items: flex-start;
}

/* Pricing */
.price{ position: relative; }
.price__top p{ margin: .35rem 0 0; }
.price__amount{
  margin: 1rem 0;
  display:flex;
  align-items: baseline;
  gap: .2rem;
}
.price__from{ color: var(--muted); font-weight: 900; }
.price__money{ font-size: 1.3rem; font-weight: 950; color: var(--blue3); }
.price__value{ font-size: 2.4rem; font-weight: 950; letter-spacing: -1px; color: var(--blue); }
.price__unit{ color: var(--muted); font-weight: 800; margin-left: .25rem; }

.price--featured{
  border: 2px solid rgba(10, 75, 215, 0.35);
  box-shadow: 0 18px 50px rgba(10, 75, 215, 0.18);
  transform: translateY(-2px);
}
.ribbon{
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 950;
  font-size: .8rem;
}
.pricing-note{
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Forms */
.form{
  display:flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .8rem;
}
.form label{
  display:flex;
  flex-direction: column;
  gap: .4rem;
  font-weight: 900;
}
.form input, .form select, .form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 27, 51, 0.14);
  padding: .75rem .85rem;
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: rgba(10, 75, 215, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 75, 215, 0.12);
}
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.divider{
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.contact-list{
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
}
.contact-list li{
  padding: .45rem 0;
  border-bottom: 1px dashed rgba(11, 27, 51, 0.12);
}

/* Footer */
.footer{
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.brand--footer .brand__tag{ display:none; }
.footer__right{
  display:flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__right a{
  color: var(--muted);
  font-weight: 900;
}
.footer__right a:hover{ color: var(--blue3); }

/* Chat */
.chat-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white;
  box-shadow: 0 18px 44px rgba(10, 75, 215, 0.30);
  cursor: pointer;
  font-size: 1.2rem;
}
.chat{
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: min(380px, calc(100% - 36px));
  height: 520px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display:none;
  overflow: hidden;
}
.chat--open{ display:flex; flex-direction: column; }
.chat__header{
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content: space-between;
  background:
    radial-gradient(500px 180px at 20% 0%, rgba(10, 75, 215, 0.14), transparent 60%),
    #fff;
}
.chat__title{ display:flex; flex-direction: column; line-height:1.1; }
.chat__close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 950;
}
.chat__body{
  flex: 1;
  padding: 1rem;
  overflow:auto;
  display:flex;
  flex-direction: column;
  gap: .7rem;
}
.msg{
  max-width: 85%;
  padding: .75rem .85rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(11, 27, 51, 0.06);
  white-space: pre-wrap;
}
.msg--bot{
  background: rgba(10, 75, 215, 0.08);
  border-color: rgba(10, 75, 215, 0.16);
  color: var(--blue3);
}
.msg--user{
  margin-left: auto;
  background: #fff;
  color: var(--text);
}
.chat__input{
  display:flex;
  gap: .6rem;
  padding: .8rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat__input input{
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(11, 27, 51, 0.14);
  padding: .75rem .85rem;
  font: inherit;
  outline: none;
}
.chat__input input:focus{
  border-color: rgba(10, 75, 215, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 75, 215, 0.12);
}

/* Responsive */
@media (max-width: 1180px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .nav{ display:none; }
  .topbar__cta{ display:none; }
  .hamburger{ display:block; margin-left:auto; }
}
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__card{ justify-content: flex-start; }
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-card__media{
    display:flex;
    flex-direction: column;
    aspect-ratio: auto;
  }
  .service-card__media img{ aspect-ratio: 16 / 11; }
  .service-card__overlay{
    position: static;
    opacity: 1;
    transform: none;
    min-height: 0;
    background: linear-gradient(180deg, #173055, #0b1b33);
  }
  .service-card__tag{ display:none; }
  .service-card__hint{ display:none; }
  .spec__tiles{ grid-template-columns: 1fr; }
  .form__row{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction: column; }
  .footer__right{ justify-content: flex-start; }
}
/* ====== Costos: Caja de precio ====== */
.priceBox{
  border: 1px solid rgba(10, 75, 215, 0.20);
  background: rgba(10, 75, 215, 0.06);
  border-radius: 18px;
  padding: 1rem;
}
.priceBox__label{
  font-weight: 900;
}
.priceBox__value{
  font-size: 2rem;
  font-weight: 950;
  color: var(--blue);
  letter-spacing: -0.6px;
  margin: .2rem 0;
}
.priceBox__note{
  margin-top: .25rem;
}
/* =========================
   Costos: Carrusel de servicios
   ========================= */
.pricing-carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 330px);
  gap: 1rem;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .25rem .25rem 1rem;
  border-radius: 22px;

  /* para que se vean “cajitas” a los lados */
  mask-image: linear-gradient(to right, black 0%, black 95%, transparent 100%);
-webkit-mask-image: linear-gradient(to right, black 0%, black 95%, transparent 100%);
}

.carousel-track::-webkit-scrollbar{
  height: 10px;
}
.carousel-track::-webkit-scrollbar-thumb{
  background: rgba(11, 27, 51, 0.18);
  border-radius: 999px;
}
.carousel-track::-webkit-scrollbar-track{
  background: rgba(11, 27, 51, 0.06);
  border-radius: 999px;
}

.carousel-btn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(11, 27, 51, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 950;
  color: var(--blue3);
  box-shadow: 0 12px 26px rgba(11, 27, 51, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.carousel-btn:active{ transform: translateY(1px); }

.price-card{
  scroll-snap-align: start;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(11, 27, 51, 0.10);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(11, 27, 51, 0.09);
  padding: 1.1rem;
}

.price-card__top{
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: .9rem;
}

.price-card__icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(10, 75, 215, 0.10);
  border: 1px solid rgba(10, 75, 215, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.price-card__title{
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.2px;
}
.price-card__subtitle{
  margin: .15rem 0 0;
  font-size: .9rem;
}

.price-table{
  border: 1px solid rgba(10, 75, 215, 0.16);
  background: rgba(10, 75, 215, 0.06);
  border-radius: 18px;
  padding: .75rem;
  margin-bottom: .85rem;
}
.price-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .35rem;
  border-bottom: 1px dashed rgba(11, 27, 51, 0.12);
  font-weight: 800;
  color: var(--blue3);
}
.price-row:last-child{
  border-bottom: none;
}
.price-row strong{
  color: var(--blue);
  font-weight: 950;
}

.price-card--pending{
  border: 1px solid rgba(11, 27, 51, 0.10);
  background: rgba(255,255,255,0.78);
}

.price-card--quote{
  border-color: rgba(255, 91, 113, 0.24);
  background: rgba(255,255,255,0.96);
}
.price-card--quote .price-card__icon{
  background: rgba(255, 91, 113, 0.10);
  border-color: rgba(255, 91, 113, 0.18);
}
.price-card--quote .price-table{
  background: rgba(255, 91, 113, 0.06);
  border-color: rgba(255, 91, 113, 0.16);
}
.price-row--quote strong{
  color: #c93648;
}

.carousel-hint{
  margin-top: .65rem;
}

@media (max-width: 980px){
  .carousel-btn{
    display: none; /* en móvil se usa swipe */
  }
  .carousel-track{
    mask-image: none;
    grid-auto-columns: minmax(260px, 85vw);
  }
}
