:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: rgba(11,18,32,0.68);
  --stroke: rgba(11,18,32,0.12);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --max: 1120px;

  --a: #2563eb; /* azul */
  --b: #22c55e; /* verde */
  --c: #06b6d4; /* cian */
}

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Barlow';
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(37,99,235,0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(6,182,212,0.10), transparent 60%),
    radial-gradient(900px 500px at 55% 90%, rgba(34,197,94,0.08), transparent 60%),
    var(--bg);
  line-height: 1.55;
}

a{ color:inherit; text-decoration:none; }
.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ 
  color: var(--muted); 
  text-align: justify;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-weight: 700;
  font-size: 12.5px;
}

.topbar{
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(11,18,32,0.08);
  backdrop-filter: blur(10px);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  gap: 14px;
}
.topbar__left{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar__link{
  font-weight: 800;
  color: rgba(37,99,235,0.95);
}
.topbar__link:hover{ text-decoration: underline; }

/* Nav */
.nav{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(247,248,251,0.78);
  border-bottom: 1px solid rgba(11,18,32,0.08);
  backdrop-filter: blur(14px);
  min-height: 72px;
}
.nav__inner{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.brand__mark{
  width: 36px; height: 36px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  color: white;
  background: linear-gradient(135deg, var(--a), var(--c));
  box-shadow: var(--shadow);
}
.brand__name{ font-size: 18px; }
.brand--footer .brand__mark{ width:32px; height:32px; border-radius: 10px; }

.nav__menu{
  display:flex;
  align-items:center;
  gap: 16px;
}
.nav__menu a{
  color: rgba(11,18,32,0.72);
  font-weight: 700;
  font-size: 14px;
}
.nav__menu a:hover{ color: rgba(11,18,32,0.95); }

.nav__toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.7);
  cursor:pointer;
}
.nav__toggle span{
  display:block;
  width: 20px; height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: rgba(11,18,32,0.70);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,140,0,0.35);
  background: linear-gradient(135deg, rgba(255,140,0,0.98), rgba(255,94,0,0.92));
  color: white;
  font-weight: 500;
  box-shadow: 0 14px 30px rgba(255,140,0,0.25);
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn:active{
  transform: translateY(0);
}

.btn--ghost{
  background: rgba(255,255,255,0.75);
  color: rgba(11,18,32,0.95);
  border: 1px solid var(--stroke);
  border-color: rgba(255,140,0,0.98);
  box-shadow: none;
  font-weight: 400;
}
.btn--sm{ padding: 10px 12px; font-size: 14px; }

.botonWhatsapp{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  color: white !important;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(37,99,235,0.18);
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
  border: 1px solid rgba(61, 235, 151, 0.22);
  background: linear-gradient(135deg, rgba(16, 79, 41, 0.98), rgba(32, 176, 61, 0.92));
}


/* Hero */

/* Ajusta este valor a la altura real de tu navbar */
#inicio{
  scroll-margin-top: 80px;
}

.hero{
  padding: 10px 0 22px;
  position: relative;
  overflow: hidden;
}

.hero::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(11,18,32,0.08);
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items:center;
}
.kicker{
  margin:0 10px 10px;
  font-weight: 600;
  color: rgba(11,18,32,0.68);
  letter-spacing: 2px;
}
h1{
  margin:0;
  font-size: 3em /*clamp(34px, 4.2vw, 52px)*/;
  font-weight: 500; 
  line-height:1.08;
}
h2{
  font-weight: 400;
  margin: 5px 0 10px 0;
}
.grad {
  background: linear-gradient(90deg, #224263, #4a7fb3, #6fa3d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  margin:0 0 16px;
  color: rgba(11,18,32,0.72);
  font-size: 16.5px;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.hero__trust{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust__item{
  padding: 10px 12px;
  border: 1px solid rgba(11,18,32,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
}
.trust__num{ display:block; font-weight: 900; }
.trust__label{ display:block; font-size: 13px; color: var(--muted); }

/* Cards, sections */
.section{ 
  padding: 40px 0; 
  scroll-margin-top: 80px; /* altura de tu navbar */
}
.section--alt{
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(11,18,32,0.08);
  border-bottom: 1px solid rgba(11,18,32,0.08);
}
.section__head{ margin-bottom: 18px; }
.section__head h2{ margin:0 0 6px; font-size: 28px; }
.section__head p{ margin:0; color: var(--muted); }

.card{
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.98),
    rgba(255,255,255,0.9)
  );
  border: 1px solid rgba(11,18,32,0.08);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 35px 30px; /* MÁS ESPACIO */
  text-align: start;     /* CENTRADO GENERAL */
  box-shadow:
    0 14px 35px rgba(11,18,32,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 24px 50px rgba(11,18,32,0.14);
}

.card--img-sm .card__icon{
  width: 120px;
  height: 120px;
}

.card__icon{
  width: 145px;
  height: 145px;
  border-radius: 50%;
  margin: 0 auto 22px;
  overflow: hidden; 
}

.card__icon img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* CUBRE TODO EL CÍRCULO */
  display: block;
}

/* SOLO cards con icono */
.card.card--icon .card__icon {
  border-radius: 0;       /* elimina forma circular */
  width: auto;
  height: auto;
  overflow: visible;
  margin-bottom: 16px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ícono */
.card.card--icon .card__icon img {
  width: 120px;
  margin-bottom: 10px;
  color: #003566;
}

/* Opcional: centra texto SOLO aquí */
.card.card--icon {
  text-align: center;
}


.card--hero{ padding: 18px; }
.card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card__foot{ margin-top: 12px; }

.card--compact{
  padding: 10px 22px;
}


.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.8);
  font-weight: 800;
  font-size: 12px;
  color: rgba(11,18,32,0.72);
}
.pill--ok{
  color: rgba(22,163,74,0.95);
  border-color: rgba(22,163,74,0.20);
  background: rgba(34,197,94,0.10);
}

.hero__mini{ display:grid; gap: 12px; }
.mini__row{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.mini__icon{
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.18);
}
.mini__icon--alt{
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.18);
}
.mini__title{ font-weight: 900; }
.mini__text{ color: var(--muted); font-size: 13.5px; }

.divider{
  height: 1px;
  background: rgba(11,18,32,0.10);
  margin: 6px 0;
}

.mini__stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat{
  border: 1px solid rgba(11,18,32,0.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.7);
}
.stat__k{ display:block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat__v{ display:block; font-weight: 900; }

/* Grids */
.grid{ display:grid; gap: 14px; }
.serviceGrid{ grid-template-columns: repeat(3, 1fr); }
.steps{ grid-template-columns: repeat(3, 1fr); }
.benefits{ grid-template-columns: repeat(3, 1fr); }

.check{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(11,18,32,0.75);
}
.check li{ margin: 7px 0; }

.callout{
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #03183a, #2e57b0);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37,99,235,0.35);
}

.callout h3{
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.callout .muted{
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.stepN{
  display:inline-flex;
  width: 34px; height: 34px;
  border-radius: 12px;
  align-items:center; justify-content:center;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.75);
  font-weight: 900;
  margin-bottom: 10px;
}

/* Tabs */
.tabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab{
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.12);
  background: rgba(255,255,255,0.75);
  padding: 10px 14px;
  font-weight: 600;
  cursor:pointer;
  color: rgba(11,18,32,0.78);
}
.tab.is-active{
  color: white;
  border: 1px solid rgba(255,140,0,0.35);
  background: linear-gradient(135deg, rgba(255,140,0,0.98), rgba(255,94,0,0.92));
}

.panels .panel{ display:none; }
.panels .panel.is-active{ display:block; }

/* FAQ */
details summary{
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
details summary::-webkit-details-marker{ display:none; }
/* ===========================
   FAQ – CARDS
   =========================== */

.faq {
  display: grid;
  gap: 1rem;
}

/* no tocamos .card original */
.faq-card {
  padding: 0.5rem;
  overflow: hidden;
  box-shadow: gray;
  border: none !important;
}

/* ===========================
   PREGUNTA
   =========================== */

.faq-question {
  all: unset;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;

  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #003566;

  display: flex;
  justify-content: space-between;
  align-items: center;

  line-height: 1.3;
}

/* ===========================
   CONTENIDO (ANIMACIÓN REAL)
   =========================== */

.faq-wrapper {
  display: grid;
  grid-template-rows: 0fr;

  transition: grid-template-rows 140ms ease-out;
}

.faq-card.is-open .faq-wrapper {
  grid-template-rows: 1fr;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(.22,.61,.36,1);
}

.faq-answer {
  overflow: hidden;
  padding: 0 1.25rem;

  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;

  opacity: 0;
  transform: translateY(-4px);

  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.faq-card.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 1.25rem;
}

/* ===========================
   CONTACT SPLIT LAYOUT
   =========================== */

.contact-split {
  display: flex;
  justify-content: center;
}

.contact-split__box {
  width: 100%;
  max-width: 1150px;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  position: relative;
  border-radius: 26px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* ===========================
   LEFT – INFO PANEL
   =========================== */

.contact-split__info {
  position: relative;
  background: #0d0232;
  display: flex;
  align-items: center;
  justify-content: center;  
}

.contact-split__info::after {
  content: "";
  position: absolute;
  right: -80px;
  width: 160px;
  height: 100%;
  background: #0d0232;
  border-radius: 50%;
}

.contact-split__infoInner {
  position: relative;
  color: #fff;
  padding: 3rem;
  max-width: 360px;
}

.contact-split__infoInner h2 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.contact-split__infoInner p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* ===========================
   RIGHT – FORM
   =========================== */

.contact-split__form {
  max-width: 580px;          /* ancho máximo en desktop */
  width: 100%;               /* adaptable */
  box-sizing: border-box;
  padding: 1.5rem 1.2rem;
  z-index: 2;                /* sobrepone al semicirculo */
  justify-self: end;         /* al final de la columna */
  margin-right: 0;           /* opcional, para espacio */
}

/* Inputs y selects ocupan 100% */
.contact-split__form input,
.contact-split__form select,
.contact-split__form textarea {
  width: 100%;
}

.form-card {
  width: 100%;
  background: transparent;
  box-shadow: none;
  padding: 0;
}


.contactCards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.mini{ padding: 14px; }

.form{ padding: 18px; }
.formRow{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 12px;
}
.formRowGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label{ font-weight: 800; font-size: 14px; }
input, select, textarea{
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,0.14);
  background: rgba(255,255,255,0.85);
  padding: 12px 12px;
  outline: none;
  color: rgba(11,18,32,0.92);
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(6,182,212,0.55);
}
.error{
  min-height: 16px;
  color: rgba(220, 38, 38, 0.95);
  font-size: 12px;
}
.formNote{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Footer
========================= */

.footer{
  padding: 30px 0;
  border-top: 1px solid rgba(11,18,32,0.08);
  background: rgba(255,255,255,0.55);
}

.footer__wrap{
  display: grid;
  gap: 18px;
}

/* TOP: 3 columnas centradas */
.footer__top{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
  justify-items: center;          /* centra cada columna */
  text-align: center;             /* centra texto dentro */
}

/* Cada columna */
.footer__col{
  max-width: 420px;
  width: 100%;
}

/* Marca */
.footer__brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand--footer img{
  max-width: 170px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Texto muted */
.footer .muted{
  font-size: 14px;
  color: rgba(11,18,32,0.62);
  line-height: 1.45;
  margin: 0;
}

/* Titles */
.footer__title{
  font-size: 12px;
  font-weight: 800;
  color: rgba(11,18,32,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px 0;
}

/* Contacto */
.footer__phone{
  font-size: 14px;
  color: rgba(11,18,32,0.78);
  text-decoration: none;
}

.footer__phone:hover{
  text-decoration: underline;
}

/* Redes con íconos */
.footer__social-links{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,0.12);
  background: rgba(255,255,255,0.6);
  color: rgba(11,18,32,0.82);
  text-decoration: none;
  font-size: 14px;
}

.social-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor; /* hereda el color del link */
  flex: 0 0 auto;
}

.social-btn:hover{
  text-decoration: none;
  border-color: rgba(11,18,32,0.22);
}

/* BOTTOM centrado */
.footer__bottom{
  padding-top: 14px;
  border-top: 1px solid rgba(11,18,32,0.08);
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px){
  .footer__top{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__col{
    max-width: 520px;
  }
}



/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .serviceGrid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .benefits{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; text-align:center; }
  .footer__links{ justify-content:center; }
}
@media (max-width: 720px){
  .nav__toggle{ display:block; }
  .nav__menu{
    position:absolute;
    top: 64px;
    left: 20px;
    right: 20px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding: 12px;
    gap: 8px;
    border: 1px solid rgba(11,18,32,0.10);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open{ display:flex; }
  .nav__menu a{
    padding: 10px 12px;
    border-radius: 12px;
  }
  .nav__menu a:hover{ background: rgba(11,18,32,0.04); }
  .contactCards{ grid-template-columns: 1fr; }
  .callout{ flex-direction: column; align-items:flex-start; }
  .formRowGrid{ grid-template-columns: 1fr; }
}

/* ===== Drone peek (asomado) ===== */
.hero{
  position: relative;
  overflow: hidden; /* clave para que se recorte */
}

/* contenedor absoluto detrás del contenido */
.hero__peek{
  position: absolute;
  top: 70px;         /* ajusta altura */
  right: -180px;     /* NEGATIVO = se sale y “se asoma” */
  width: min(880px, 85vw);
  z-index: 0;        /* atrás del texto */
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(-2deg);
  filter: drop-shadow(0 18px 40px rgba(15,23,42,0.18));
}

/* la imagen se adapta */
.hero__peekImg{
  width: 100%;
  height: auto;
  display: block;
}

/* asegura que el contenido quede encima */
.hero__grid, .hero__content, .hero__visual{
  position: relative;
  z-index: 1;
}

/* Animación sutil (entra + flota) */
.hero__peek{
    position: absolute;
  opacity: 0;
  transform: translate3d(80px, -14px, 0) rotate(-2deg);
  animation: peekIn 700ms cubic-bezier(.2,.9,.2,1) forwards,
             peekFloat 6s ease-in-out 700ms infinite;
    /* CENTRADO VERTICAL REAL */
  top: 20%;
  transform: translateY(-50%);

}

@keyframes peekIn{
  to{
    opacity: 0.95;
    transform: translate3d(0,0,0) rotate(-2deg);
  }
}

@keyframes peekFloat{
  0%,100% { transform: translate3d(0,0,0) rotate(-2deg); }
  50%     { transform: translate3d(-10px, 10px, 0) rotate(-1.2deg); }
}

/* Móvil: que no tape texto */
@media (max-width: 820px){

  .hero__grid{
    display: flex;
    flex-direction: column;
  }

  .hero__content{
    order: 1;
  }

  .hero__peek{
    order: 2;           
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 24px auto 32px;

    inset: auto;
    transform: none;
    animation: none;
    filter: none;
    opacity: 1;
  }
}



/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero__peek{ animation: none; opacity: 0.35; transform: none; }}


/* ===== RESPONSIVE FORM ===== */
@media (max-width: 900px) {
  .contact-split__box {
    grid-template-columns: 1fr; /* info arriba, form debajo */
  }

  .contact-split__info {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .contact-split__info::after {
    display: none; /* semicirculo desaparece */
  }

  .contact-split__form {
    justify-self: center;   /* centra el formulario */
    max-width: 480px;       /* ancho limitado para tablet */
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
}

@media (max-width: 720px) {
  .contact-split__form {
    max-width: 100%;       /* ocupa todo el ancho */
    padding: 1.5rem;       /* menos padding para móvil */
    margin-top: 1.5rem;
  }

  .formRowGrid {
    grid-template-columns: 1fr; /* los campos en vertical */
  }
}

@media (max-width: 720px){
  .hero__cta{
    flex-direction: column;
    gap: 10px;
  }

  .hero__cta .btn,
  .hero__cta .botonWhatsapp{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}