:root{
  --blue-900:#163a63;
  --blue-800:#1e4f86;
  --blue-700:#2c67a5;
  --blue-600:#2f73b3;
  --green-600:#5aa04b;
  --green-700:#4a8d3d;
  --text:#1e2a3b;
  --muted:#6a7a90;
  --bg:#ffffff;
  --bg-soft:#f3f6fb;
  --card:#ffffff;
  --border:#e5ecf5;
  --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.08);
  --container:1080px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  padding-top: 74px;              /* espacio para header fixed */
  overflow-x: hidden;
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: linear-gradient(#ffffff 0%, #ffffff 240px, var(--bg-soft) 240px, var(--bg-soft) 100%);
}

a{ color:inherit; text-decoration:none; }
.container{ max-width:var(--container); margin:0 auto; padding:0 18px; }
section[id]{ scroll-margin-top: 90px; }

/* ===================== HEADER ===================== */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,58,99,.08);
}

.nav{
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:0.5px; }
.brand svg{ height:28px; width:auto; display:block; }

.brand-logo{
  height: 32px;
  width: auto;
  display: block;
}

.menu{
  display:flex;
  align-items:center;
  gap:24px;
  color:var(--blue-900);
  font-size:14px;
  font-weight:600;
}

.menu a{
  opacity:.9;
  position: relative;
  padding: 10px 6px;
  font-weight: 700;
}

.menu a.active{
  color: var(--blue-900);
  opacity: 1;
}

.menu a.active::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background:#1E4F86;
  border-radius: 2px;
}

.cta-right{ display:flex; align-items:center; gap:12px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 16px;
  border-radius:8px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}

.btn-green{
  background:var(--green-600);
  color:#fff;
  box-shadow: 0 8px 18px rgba(90,160,75,.25);
}
.btn-green:hover{ background:var(--green-700); }

.btn-blue{
  background:var(--blue-800);
  color:#fff;
  box-shadow: 0 10px 20px rgba(30,79,134,.18);
}
.btn-blue:hover{ background:var(--blue-900); }

/* ===================== HERO ===================== */
.hero{ padding:38px 0 18px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:center;
  min-height:340px;
}

.eyebrow{
  color:var(--blue-900);
  font-weight:800;
  font-size:44px;
  line-height:1.06;
  margin:0 0 10px;
  letter-spacing:-0.5px;
}

.eyebrow span{
  display:block;
  font-size:28px;
  margin-top:6px;
  font-weight:900;
  color:var(--blue-900);
}

.lead{
  margin:14px 0 18px;
  color:var(--blue-900);
  font-size:15px;
  line-height:1.5;
  max-width:460px;
}

.hero-actions{ display:flex; gap:14px; align-items:center; margin-top:10px; }

.hero-illustration{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:transparent;
  border-radius:18px;
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-illustration-img{
  width:100%;
  height:100%;
  max-height:300px;
  object-fit:contain;
  display:block;
}

/* overlay */
.fx-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:14px;
  z-index:2;
}

.spark{
  position:absolute;
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(44,103,165,.95);
  box-shadow:
    0 0 0 8px rgba(44,103,165,.18),
    0 0 18px rgba(44,103,165,.35),
    0 14px 24px rgba(16,24,40,.12);
  opacity:0;
  animation: sparkFloat 3.0s ease-in-out infinite;
  will-change: transform, opacity;
}

.spark.s1{ left:12%; top:28%; animation-delay: .2s; }
.spark.s2{ left:34%; top:58%; animation-delay: 1.0s; transform: scale(.85); }
.spark.s3{ left:62%; top:32%; animation-delay: 1.8s; }
.spark.s4{ left:80%; top:64%; animation-delay: .7s; transform: scale(.75); }
.spark.s5{ left:90%; top:24%; animation-delay: 1.5s; transform: scale(.8); }

@keyframes sparkFloat{
  0%   { opacity:0; transform: translate3d(0,16px,0) scale(.85); }
  15%  { opacity:1; }
  50%  { opacity:.75; transform: translate3d(0,-14px,0) scale(1); }
  85%  { opacity:1; }
  100% { opacity:0; transform: translate3d(0,16px,0) scale(.9); }
}

@media (prefers-reduced-motion: reduce){
  .spark{ animation:none !important; opacity:0 !important; }
}

/* ===================== SECTIONS ===================== */
.section{ padding:22px 0; }

.section-title{
  text-align:center;
  font-weight:900;
  color:var(--blue-900);
  margin:12px 0 18px;
  font-size:20px;
}

/* ===================== PROBLEMS ===================== */
.section-subtitle{
  text-align:center;
  margin: -6px auto 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.section-subtitle strong{ color: var(--blue-900); font-weight: 900; }
.section-subtitle span{ display:block; margin-top:4px; opacity:.95; }

.cards-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
  margin-top:6px;
}

.card{
  background:var(--card);
  border:1px solid rgba(20,40,70,0.08);
  border-radius:10px;
  box-shadow: var(--shadow-soft);
  padding:18px 18px 16px;
  min-height:104px;
}

.card h4{
  margin:0 0 8px;
  color:var(--blue-900);
  font-size:16px;
  font-weight:900;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

/* Card FX */
.problems .card-fx{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(22,58,99,.10);
  box-shadow: 0 8px 18px rgba(16,24,40,.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.problems .card-fx::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(135deg,
    rgba(30,79,134,0) 0%,
    rgba(30,79,134,.09) 35%,
    rgba(30,79,134,.06) 70%,
    rgba(30,79,134,0) 100%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events:none;
}
.problems .card-fx:hover{
  transform: translateY(-2px);
  border-color: rgba(30,79,134,.16);
  box-shadow: 0 12px 24px rgba(16,24,40,.10);
}
.problems .card-fx:hover::before{ opacity: .55; }

.card-top{ display:flex; margin-bottom:10px; }
.card-top-left{ justify-content:flex-start; }
.card-ico{ width:30px; height:30px; }
.icon-blue{ width:30px; height:30px; display:block; color:#1E4F86; opacity:.98; }

.problems .card p strong{ font-weight: 900; }
.problems .card p:first-of-type strong{ color:#a33; }
.problems .card p:last-of-type strong{ color:#2e7d32; }

/* ===================== WHAT (SERVICIOS) ===================== */
.what{ padding-top:10px; }

.icons-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 34px 28px;
  padding: 8px 4px 0;
  justify-content: center;
}

.icon-item{
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  text-align: center;
  color: var(--blue-900);
}

.icon-item svg{
  width:46px;
  height:46px;
  margin: 0 auto 10px;
  display:block;
  color:var(--blue-900);
}

.service-title{
  font-size:16px;
  font-weight:800;
  color:var(--blue-900);
  display:inline-block;
  line-height:1.15;
}

.service-desc{
  margin-top:6px;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
  font-weight:600;
}

.underline-hover{
  position:relative;
  padding-bottom:6px;
}
.underline-hover::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:2px;
  width:100%;
  background:#1E4F86;
  transform: scaleX(0);
  transform-origin:left;
  transition: transform 240ms ease;
  border-radius:2px;
  opacity:.95;
}
.icon-item:hover .underline-hover::after{ transform: scaleX(1); }

/* ===================== HOW ===================== */
.how{ padding-top:4px; }
.steps-wrap{ margin:16px auto 0; border-top:1px solid rgba(22,58,99,.12); padding-top:14px; }
.steps-bar{
  display:flex;
  overflow:hidden;
  border-radius:8px;
  width:100%;
  max-width:980px;
  margin:0 auto;
  border:1px solid rgba(22,58,99,.12);
  box-shadow: 0 6px 18px rgba(16,24,40,0.05);
}
.step{
  flex:1;
  color:#fff;
  font-weight:800;
  font-size:13px;
  padding:12px 10px;
  text-align:center;
  position:relative;
}
.step:nth-child(1){background:#2f6fab;}
.step:nth-child(2){background:#397ab7;}
.step:nth-child(3){background:#3f7fbb;}
.step:nth-child(4){background:#3a79b5;}
.step:nth-child(5){background:#356ea7;}
.step:not(:last-child)::after{
  content:"";
  position:absolute;
  top:0; right:-18px;
  width:36px; height:100%;
  background:inherit;
  transform:skewX(-28deg);
  border-right:1px solid rgba(255,255,255,0.35);
  z-index:2;
}
.step:not(:first-child)::before{
  content:"";
  position:absolute;
  top:0; left:0;
  width:1px; height:100%;
  background:rgba(255,255,255,0.28);
  z-index:1;
}

/* ===================== EXP (TILES) ===================== */
.exp{ padding-top:8px; }

.exp .tiles-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  max-width:980px;
  margin:0 auto;
}

.exp .tile{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 130px;
  padding: 18px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  color:#fff;
  font-weight:900;
  letter-spacing:.2px;
  box-shadow: 0 14px 34px rgba(16,24,40,.14);
  border: 1px solid rgba(22,58,99,.10);
  isolation: isolate;
  transition: transform 240ms ease, box-shadow 240ms ease;
  min-width:0;
}

.exp .tile::before{
  content:"";
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 520ms ease;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

/* overlay para legibilidad */
.exp .tile::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(16,24,40,.06) 0%,
      rgba(16,24,40,.28) 55%,
      rgba(16,24,40,.55) 100%),
    radial-gradient(700px 260px at 20% 15%,
      rgba(30,79,134,.18) 0%,
      rgba(30,79,134,0) 55%);
  z-index: 1;
}

/* texto SIEMPRE arriba */
.exp .tile > :not(.tile-shine){
  position: relative;
  z-index: 3;
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16,24,40,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  text-shadow: 0 12px 26px rgba(0,0,0,.55);
  font-size: 16px;
  line-height: 1.2;
}

/* shine opcional (si lo metes en HTML) */
.exp .tile .tile-shine{
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 38%,
    rgba(255,255,255,.16) 48%,
    rgba(255,255,255,0) 58%);
  transform: translateX(-30%) rotate(12deg);
  opacity: 0;
  z-index: 2;
  pointer-events:none;
  transition: opacity 240ms ease, transform 520ms ease;
}

.exp .tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(16,24,40,.18);
}
.exp .tile:hover::before{ transform: scale(1.08); }
.exp .tile:hover .tile-shine{
  opacity: 1;
  transform: translateX(35%) rotate(12deg);
}
.exp .tile:hover > :not(.tile-shine){
  background: rgba(16,24,40,.62);
  border-color: rgba(255,255,255,.22);
}

/* rutas (styles.css está en /assets, por eso ../img) */
.tile--empresas::before{ background-image: url("../img/empresas.webp"); }
.tile--b2b::before{ background-image: url("../img/b2b.webp"); }
.tile--procesos::before{ background-image: url("../img/procesos.webp"); }

.exp-cta{ display:flex; justify-content:center; margin:16px 0 2px; }

.btn-mid{
  height:40px;
  padding:0 18px;
  border-radius:6px;
  background:#2f5f99;
  color:#fff;
  font-weight:800;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow: 0 10px 20px rgba(47,95,153,.18);
}
.btn-mid:hover{ background:#284f7f; }

.arrow{
  width:18px; height:18px;
  display:inline-block;
  border:2px solid rgba(255,255,255,.95);
  border-left:0; border-top:0;
  transform: rotate(-45deg);
  margin-left:2px;
}

/* ===================== BOTTOM ===================== */
.bottom{ padding:18px 0 32px; background: linear-gradient(var(--bg-soft), #ffffff 60%); }
.two-cols{ display:grid; grid-template-columns: 1fr 1fr; gap:26px; align-items:stretch; }

.panel{
  background:#fff;
  border:1px solid rgba(20,40,70,0.10);
  border-radius:10px;
  box-shadow: var(--shadow-soft);
  padding:16px 18px;
  min-height:190px;
}
.panel h3{ margin:0 0 12px; color:var(--blue-900); font-size:16px; font-weight:900; }
.leader{ display:flex; gap:14px; align-items:flex-start; }
.avatar{
  width:92px; height:92px;
  border-radius:4px;
  background: #cfd7e6;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid rgba(22,58,99,.12);
}
.avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.leader .name{
  font-weight:900;
  color:var(--blue-900);
  margin:2px 0 8px;
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:4px;
}
.bullets{
  margin:0;
  padding-left:14px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.6;
  font-weight:600;
}

.quote{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  position:relative;
}
.quote::before{
  content:"“";
  position:absolute;
  left:10px; top:6px;
  font-size:64px;
  color:rgba(22,58,99,.18);
  font-weight:900;
  line-height:1;
}
.quote p{
  margin:28px 0 0;
  font-size:14px;
  color:var(--blue-900);
  line-height:1.55;
  font-weight:700;
}
.quote p strong{ font-weight:900; }
.quote .brandmark{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  color:#1f2a3a;
  font-weight:900;
  opacity:.95;
}
.sig{ font-style:italic; font-weight:900; color:#1f2a3a; letter-spacing:.2px; }

/* ===================== FOOTER ===================== */
footer{ background:#fff; border-top:1px solid rgba(22,58,99,.10); padding:18px 0 22px; }
.foot-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.foot-item{ display:flex; align-items:center; gap:8px; }
.foot-item svg{ width:16px; height:16px; opacity:.85; }
.sep{ opacity:.35; }
.foot-bottom{
  text-align:center;
  margin-top:14px;
  color:rgba(22,58,99,.7);
  font-weight:700;
  font-size:13px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-illustration{ height:240px; }
  .cards-3{ grid-template-columns:1fr; }          /* problems en 1 columna móvil/tablet */
  .two-cols{ grid-template-columns:1fr; }
  .menu{ display:none; }

  .icons-row{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .exp .tiles-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .icons-row{ grid-template-columns: 1fr; }
  .icon-item{ max-width: 320px; }
  .exp .tiles-3{ grid-template-columns: 1fr; }
}

/* ===================== Scroll reveal (global) ===================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-left{ transform: translateX(-18px); }
.reveal-right{ transform: translateX(18px); }
.reveal-left.in, .reveal-right.in{ transform: translateX(0); }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-left, .reveal-right{
    transition:none !important;
    opacity:1 !important;
    transform:none !important;
  }
}

/* ===================== INTEGRACIÓN ===================== */
.tmx-int{
  position: relative;
  padding: 34px 0 18px;
  background: #fff;
}
.tmx-int__wrap{ position: relative; padding-top: 18px; padding-bottom: 34px; }
.tmx-int__bg{ position:absolute; inset:-80px -40px -60px -40px; pointer-events:none; z-index:0; }
.tmx-int__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 42px;
  align-items:start;
}
.tmx-int__eyebrow{
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
  color: rgba(22,58,99,.45);
  margin-bottom: 10px;
}
.tmx-int__title{
  margin:0;
  font-size: 52px;
  line-height: 1.03;
  letter-spacing: -0.8px;
  color: #0f1f33;
  font-weight: 900;
}
.tmx-int__lead{
  margin: 18px 0 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}
.tmx-int__row{
  display:grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items:flex-start;
  margin-top: 18px;
}
.tmx-int__rowTitle{ font-weight: 900; color: #1f2a3a; font-size: 16px; margin-bottom: 6px; }
.tmx-int__rowText{ color: var(--muted); font-size: 14px; line-height: 1.55; font-weight: 600; max-width: 520px; }
.tmx-int__right{ display:grid; grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 18px; }
.tmx-int__col{ display:flex; flex-direction:column; gap: 26px; }
.tmx-int__item{ display:grid; grid-template-columns: 60px 1fr; gap: 14px; align-items:flex-start; }
.tmx-int__itemTitle{ font-weight: 900; color: #1f2a3a; font-size: 16px; margin-bottom: 6px; }
.tmx-int__itemText{ color: var(--muted); font-size: 14px; line-height: 1.55; font-weight: 600; }
.tmx-int__badge{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 18px rgba(16,24,40,.10);
  flex: 0 0 auto;
}
.tmx-int__badge--navy{ background: var(--blue-900); }
.tmx-int__badge--blue{ background: #1E4F86; }
.tmx-int__badge svg{ width: 24px; height: 24px; display:block; color:#fff; }
.tmx-int__badge svg path,
.tmx-int__badge svg circle,
.tmx-int__badge svg rect,
.tmx-int__badge svg line,
.tmx-int__badge svg polyline,
.tmx-int__badge svg polygon{
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.tmx-int__stats{
  position:relative;
  z-index:1;
  margin: 44px auto 0;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(22,58,99,.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16,24,40,.10);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 22px;
  max-width: 980px;
  backdrop-filter: blur(6px);
}
.tmx-int__stat{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap: 12px;
  padding: 10px 6px;
}
.tmx-int__statNum{
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #1f2a3a;
}
.tmx-int__statLabel{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: rgba(22,58,99,.42);
  white-space: nowrap;
}
@media (max-width: 980px){
  .tmx-int__grid{ grid-template-columns: 1fr; }
  .tmx-int__title{ font-size: 40px; }
  .tmx-int__right{ grid-template-columns: 1fr; }
  .tmx-int__stats{ grid-template-columns: 1fr; text-align:center; }
  .tmx-int__stat{ justify-content:center; }
}
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(16,24,40,.22);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wa-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(16,24,40,.26);
  filter: brightness(0.98);
}

.wa-ico{
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.wa-ico svg{
  width: 22px;
  height: 22px;
  display: block;
}

.wa-text{
  font-size: 14px;
  letter-spacing: .2px;
}

@media (max-width: 560px){
  .wa-text{ display:none; } /* en móvil queda solo el icono */
  .wa-float{ padding: 12px; }
}









/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  padding: 88px 14px 18px;
}
.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,18,28,.62);
  backdrop-filter: blur(2px);
}

.modal__dialog{
  position:relative;
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  border: 1px solid rgba(22,58,99,.10);
  overflow: hidden;
  transform: translateY(8px);
  animation: modalIn 180ms ease forwards;
}
@keyframes modalIn{
  from{ opacity:.0; transform: translateY(10px) scale(.99); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

.modal__content{
  padding: 18px 18px 16px;
}

.modal__title{
  margin: 0 0 12px;
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 900;
}

.modal__close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(22,58,99,.14);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--blue-900);
}
.modal__close:hover{ background:#fff; }

.modal__actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 12px;
}

/* ===== Form dentro del modal (bonito y consistente) ===== */
.contact-form .hp{ position:absolute; left:-9999px; }

.contact-form label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-900);
  margin: 8px 0 6px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid rgba(22,58,99,.14);
  border-radius: 12px;
  padding: 11px 12px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  background:#fff;
}

.contact-form textarea{
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(30,79,134,.35);
  box-shadow: 0 0 0 4px rgba(30,79,134,.10);
}

.contact-form .row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 680px){
  .modal{ padding-top: 84px; }
  .contact-form .row{ grid-template-columns: 1fr; }
}
