.about-grid-centered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "logo logo"
    "mision vision"
    "valores valores";
  gap: 2em;
  align-items: center;
  justify-items: center;
  width: 100%;
}
.about-logo-centered {
  grid-area: logo;
  justify-self: center;
}
.about-card-left {
  grid-area: mision;
  justify-self: end;
}
.about-card-right {
  grid-area: vision;
  justify-self: start;
}
.about-card-center {
  grid-area: valores;
  justify-self: center;
  max-width: 500px;
}
@media (max-width: 900px) {
  .about-grid-centered {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "logo"
      "mision"
      "vision"
      "valores";
    gap: 1.2em;
  }
  .about-card-left, .about-card-right, .about-card-center {
    max-width: 100%;
    width: 100%;
    justify-self: center;
  }
}
.custom-about-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5em;
}
.about-logo-row {
  display: flex;
  justify-content: center;
  width: 100%;
}
.about-cards-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2em;
  width: 100%;
}
.about-card-left {
  flex: 1;
  align-self: flex-start;
}
.about-card-right {
  flex: 1;
  align-self: flex-end;
}
.about-values-row {
  display: flex;
  justify-content: center;
  width: 100%;
}
.about-card-center {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .about-cards-row {
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
  }
  .about-card-left, .about-card-right {
    width: 100%;
    max-width: 400px;
    align-self: center;
  }
}
.about-card {
  background: #121a33;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(96,165,250,0.13);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px 14px 20px;
  margin-bottom: 18px;
  color: #e8eef7;
  font-size: 16px;
  line-height: 1.7;
  transition: box-shadow 0.2s;
}
[data-theme="light"] .about-card {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(14,184,166,0.07);
}
@media (max-width: 768px){
  .brand-badge {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }
  .brand-name {
    font-size: 15px !important;
    letter-spacing: 0.5px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-right: 12px;
  }
}
[data-theme="light"] .brand-name {
  color: #fff !important;
  text-shadow: 0 2px 8px #0ea5e9cc;
}
.modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
 .footer {
  opacity: 1;
  transform: none;
}
/* ...existing code... */
.modal .cta.progressive-highlight:hover {
  background: #07103a !important;
}
.modal .cta:hover {
  background: #07103a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(10,23,78,0.22);
}
:root{
  --bg:#0b1020;
  --card:#121a33;
  --muted:#9fb0c7;
  --text:#e8eef7;
  --brand:#5eead4;
  --brand-2:#60a5fa;
  --ring: 0 0 0 3px #60a5fa33;
  --shadow: 0 20px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 25px 50px rgba(0,0,0,.5);
  --grad: radial-gradient(1400px 800px at 10% -10%, #60a5fa15, transparent 70%),
    radial-gradient(1200px 600px at 110% 10%, #5eead415, transparent 70%),
    linear-gradient(180deg, #0b1020 0%, #0a0f1e 100%);
  --section-alt: linear-gradient(180deg, #0f1629 0%, #0d1424 100%);
}
[data-theme="light"]{
  --bg:#f8fafc;
  --card:#ffff;
  --muted:#64748b;
  --text:#0f172a;
  --brand:#0ea5e9;
  --brand-2:#14b8a6;
  --ring: 0 0 0 3px #0ea5e933;
  --shadow: 0 20px 40px rgba(15,23,42,.15);
  --shadow-lg: 0 25px 50px rgba(15,23,42,.2);
  --grad: radial-gradient(1400px 800px at 10% -10%, #0ea5e908, transparent 70%),
    radial-gradient(1200px 600px at 110% 10%, #14b8a608, transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --section-alt: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color:var(--text);
  background:var(--grad);
  background-attachment: scroll;
  overflow-x:hidden;
  line-height:1.6;
}
.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}
.brand-badge.logo-img img {
  border-radius: 6px;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit}

.header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background: rgba(11,16,32,.85);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition: all .3s ease;
}
.nav{
  max-width:1600px;margin:0 auto;padding:16px 5%;
  display:flex;align-items:center;gap:20px;
}
.brand{
  display:flex;align-items:center;gap:12px;font-weight:800;
  letter-spacing:.5px;font-size:18px;cursor:pointer;
}
.brand-badge{
  width:32px;height:32px;border-radius:10px;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(94,234,212,.3), inset 0 0 16px #fff2;
  transition: transform 0.7s cubic-bezier(.22,1,.36,1), box-shadow 0.5s;
  animation-play-state: paused;
  position: relative;
  overflow: hidden;
}

.brand-badge.logo-img{
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.brand-badge.logo-img img{
  display: block;
  max-width: 64px; /* restricción razonable para evitar logos gigantes */
  max-height: 64px;
  object-fit: contain;
}

.brand-badge.animate-logo {
  animation-play-state: running !important;
}

.brand-badge svg {
  filter: drop-shadow(0 0 6px var(--brand-2));
  transition: filter 0.4s;
}

.brand:hover .brand-badge {
  transform: scale(1.12) rotate(-10deg);
  box-shadow: 0 12px 32px rgba(94,234,212,.5), 0 0 24px var(--brand-2);
  animation-play-state: paused;
}
.brand:hover .brand-badge svg {
  filter: drop-shadow(0 0 16px var(--brand));
}

@keyframes spinLogo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.nav-links{margin-left:auto;display:flex;gap:8px;align-items:center}
.nav-links a{
  padding:10px 16px;border-radius:12px;color:#fff;
  font-weight:500;transition: all .25s ease;
}
.nav-links a:hover{color:var(--brand);background:rgba(255,255,255,.08)}
.cta{
  margin-left:8px;
  padding:12px 20px;border-radius:14px;font-weight:600;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#041018;border:0;cursor:pointer;
  box-shadow: 0 10px 25px rgba(96,165,250,.4);
  transition: all .25s ease;
}
.cta:hover{transform: translateY(-2px);box-shadow: 0 15px 35px rgba(96,165,250,.5)}
.ghost{
  background:transparent;border:1px solid rgba(255,255,255,.2);color:var(--text);
  box-shadow: none;
}
.ghost:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.3)}
.menu-btn{display:none;background:transparent;border:1px solid rgba(255,255,255,.2);
  color:var(--text);padding:8px 12px;border-radius:10px;cursor:pointer}
.theme-toggle{
  width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.15);
  background:transparent;color:var(--text);cursor:pointer;
  transition: all .25s ease;
}
.theme-toggle:hover{background:rgba(255,255,255,.08)}

.hero{
  width:100%;min-height:100vh;
  display:grid;grid-template-columns:1.2fr 1fr;gap:60px;align-items:center;
  padding:120px 5% 80px;
  background:var(--grad);
  position:relative;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background: radial-gradient(circle at 20% 50%, rgba(94,234,212,.06), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(96,165,250,.08), transparent 50%);
  pointer-events:none;
}
@media (max-width: 1024px){
  .hero{grid-template-columns:1fr;gap:40px;min-height:auto;padding:100px 5% 60px}
}
.hero-content{position:relative;z-index:2}
.h-eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:15px;color:var(--brand);background:rgba(94,234,212,.1);
  padding:10px 16px;border-radius:999px;border:1px solid rgba(94,234,212,.2);
  margin-bottom:24px;font-weight:500;
}
 .pulse-dot{
  width:8px;height:8px;border-radius:999px;background:var(--brand);
  box-shadow: none;
  animation: none;
}
@keyframes pulse{
  0%{box-shadow:none}
  60%{box-shadow:none}
  100%{box-shadow:none}
}
.h-title{
  font-size: clamp(36px, 6vw, 64px);
  line-height:1.1;
  margin:0 0 24px 0;
  font-weight:800;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.h-sub{
  color:var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height:1.6;
  max-width:65ch;
  margin-bottom:32px;
}
.h-actions{display:flex;gap:16px;flex-wrap:wrap}
.cta-large{
  padding:16px 32px;font-size:16px;border-radius:16px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#041018;border:0;cursor:pointer;font-weight:700;
  box-shadow: 0 12px 30px rgba(96,165,250,.4);
  transition: all .3s ease;
}
.cta-large:hover{transform: translateY(-3px);box-shadow: 0 20px 40px rgba(96,165,250,.5)}

.hero-media{
  position:relative;z-index:2;
  border-radius:24px;overflow:hidden;
  background:linear-gradient(160deg, rgba(96,165,250,.15), rgba(20,184,166,.12));
  border:1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg);
  min-height:320px;
  height:40vh;
  max-height:600px;
}
.about-logo-carrusel {
  border-radius: 24px;
  overflow: hidden;
  background: none;
  border: 1.5px solid rgba(96,165,250,0.18);
  box-shadow: 0 8px 32px 0 rgba(96,165,250,0.12), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: box-shadow 0.2s;
  width: auto;
  max-width: 260px;
  margin: 0 auto;
}
.about-logo-img {
  width: clamp(120px, 36vw, 234px);
  height: auto;
  object-fit: contain;
  object-position: center;
  border: none;
  box-shadow: none;
  background: none;
}

@media (max-width: 600px) {
  .about-logo-carrusel {
    width: 90vw;
    max-width: 340px;
    min-width: 180px;
    margin-bottom: 1em;
    box-shadow: none;
    background: none;
    border: none;
  }
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5em;
    padding: 0;
  }
  .about-media {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-body {
    text-align: center;
    width: 100%;
    margin-top: 0;
  }
  .about-heading {
    margin-top: 1.2em;
  }


@media (max-width: 600px) {
  /* Eliminado media query redundante que limitaba el tamaño del logo en móviles */
}
.hero-slides{
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
}
.hero-slide{
  position:absolute;inset:0;
  opacity:0;transform:scale(1.05);transition:opacity 1s ease, transform 1s ease;
  overflow: hidden;
}
.hero-slide.active{opacity:1;transform:scale(1)}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  transform: translateZ(0);
}
.hero-overlay{
  position:absolute;inset:auto 20px 20px 20px;padding:20px;border-radius:16px;
  background: rgba(0,0,0,.4); /* backdrop-filter eliminado para rendimiento */
  border:1px solid rgba(255,255,255,.15);
}
.hero-overlay strong{color:#fff;font-size:18px}
.hero-dots{
  position:absolute;left:50%;bottom:16px;transform:translateX(-50%);
  display:flex;gap:8px;
}
.hero-dot{
  width:10px;height:10px;border-radius:999px;background:#fff4;
  border:1px solid #fff6;cursor:pointer;transition: all .25s ease;
}
.hero-dot.active{background:#fff;transform:scale(1.2)}

.features-section{
  width:100%;padding:100px 5%;
  background:var(--section-alt);
}
.features{
  max-width:1600px;margin:0 auto;
  display:grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:24px;
}
.feature{
  background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:20px;
  padding:24px;min-height:140px;display:flex;gap:16px;align-items:flex-start;
  transition: all .3s ease;cursor:pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
}
.feature:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255,255,255,.2);
}
.icon{
  width:48px;height:48px;border-radius:14px;
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#041018;display:grid;place-items:center;
  font-size:20px;font-weight:900;flex-shrink:0;
}
.f-title{font-weight:700;margin-bottom:8px;font-size:18px}
.f-desc{color:var(--muted);font-size:15px;line-height:1.5}

.stats-section{
  width:100%;padding:80px 5%;
}
.stats{
  max-width:1400px;margin:0 auto;
  display:grid;grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:24px;
}
.stat{
  background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:20px;
  padding:32px 24px;text-align:center;
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  transition: all .3s ease;
}
.stat:hover{transform: translateY(-4px);box-shadow: var(--shadow)}
.stat .num{
  font-size: clamp(32px, 4vw, 42px);
  font-weight:800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom:8px;
}
.stat .cap{color:var(--muted);font-size:14px;font-weight:500}

.services-section{
  width:100%;padding:100px 5%;
  background:var(--section-alt);
}
.sec-head{
  max-width:1600px;margin:0 auto 60px auto;
  text-align:center;
}
.sec-title{
  font-size: clamp(32px, 5vw, 48px);
  font-weight:800;margin-bottom:16px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-section{
  width:100%;
  padding:80px 5%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.about-grid{
  max-width:1200px;margin:0 auto;display:grid;grid-template-columns: 1fr 1fr;gap:36px;align-items:center;
}
.about-media{border-radius:16px;overflow:hidden;box-shadow:none;background:transparent;}
.about-media img{width:100%;height:auto;display:block;object-fit:cover}
.about-body{background:transparent}
.about-heading{font-size:20px;font-weight:700;margin:12px 0}
.about-text{color:var(--muted);font-size:16px;line-height:1.7;margin:0 0 12px 0}

@media (max-width:900px){
  .about-grid{grid-template-columns:1fr;gap:20px;padding:0 0 8px}
  .about-section{padding:48px 5%}
  .about-media{max-height:320px}
}

@media (prefers-reduced-motion: reduce){
  .about-media, .about-body{transition:none}
}
.sec-subtitle{
  color:var(--muted);font-size:18px;max-width:60ch;margin:0 auto;
}
.services-grid{
  max-width:1600px;margin:0 auto;
  display:grid;grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap:32px;
  align-items: start;
}
@media (max-width: 480px){
  .services-grid{grid-template-columns: 1fr}
}

.service-card{
  background:var(--card);border:1px solid rgba(255,255,255,.08);border-radius:24px;
  overflow:hidden;display:flex;flex-direction:column;
  transition: box-shadow .10s ease;
  box-shadow: 0 1px 4px rgba(94,234,212,0.07);
  /* Permitir que la tarjeta se adapte al contenido sin forzar alturas fijas */
  min-height: 0; /* elimina bloqueo de altura para mejorar adaptabilidad */
  contain: paint; /* reducir repaints al cambiar tamaño interno */
}
.service-card:hover{
  transform: none;
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 3px 9px 0 rgba(96,165,250,0.09);
}
.service-carousel{
  position:relative;
  min-height: 180px;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow:hidden;
}
.service-slides{position:relative;height:100%;min-height:0}
.service-slide{
  position:absolute;inset:0;
  opacity:0;transform:scale(1.1);transition:opacity .8s ease, transform .8s ease;
  overflow: hidden;
  backface-visibility: hidden;
}
.service-slide.active{opacity:1;transform:scale(1)}
.service-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  transform: translateZ(0);
}
.service-slide:hover img {
  transform: scale(1.05);
}
.service-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border-radius:50%;
  background:rgba(0,0,0,.6);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;cursor:pointer;
  display:grid;place-items:center;
  transition: all .25s ease;
}
.service-nav:hover{background:rgba(0,0,0,.8);transform:translateY(-50%) scale(1.1)}
.service-nav.prev{left:12px}
.service-nav.next{right:12px}
.service-indicators{
  position:absolute;bottom:12px;left:50%;transform:translateX(-50%);
  display:flex;gap:6px;
}
.service-dot{
  width:8px;height:8px;border-radius:50%;background:#fff4;
  border:1px solid #fff6;cursor:pointer;transition: all .25s ease;
}
.service-dot.active{background:#fff;transform:scale(1.3)}

.service-body{padding:24px}
.service-title{font-weight:800;margin-bottom:12px;font-size:20px}
.service-desc{color:var(--muted);font-size:15px;margin-bottom:16px;line-height:1.6}
.service-pill{
  display:inline-flex;align-items:center;gap:10px;border-radius:999px;
  padding:10px 16px;background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);cursor:pointer;
  font-size:14px;font-weight:500;transition: all .25s ease;
}
.service-pill:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25)}
.service-details{
  display:none;color:var(--muted);font-size:14px;margin-top:16px;
  padding-top:16px;border-top:1px solid rgba(255,255,255,.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1), opacity 0.3s;
  opacity: 0;
}
.service-pill[aria-expanded="true"] + .service-details{
  display: block;
  max-height: 500px;
  opacity: 1;
}

.service-pill .pill-icon {
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
.service-pill[aria-expanded="true"] .pill-icon {
  transform: rotate(180deg);
}

.faq-section{
  width:100%;padding:100px 5%;
}
.faq-head{
  max-width:1600px;margin:0 auto 60px auto;text-align:center;
}
.faq-grid{
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap:24px;
  align-items: start;
}
@media (max-width: 480px){
  .faq-grid{grid-template-columns: 1fr}
}
.qa{
  background:var(--card);border:1px solid rgba(255,255,255,.08);
  border-radius:16px;padding:20px;
  transition: all .3s ease;
}
.qa:hover{border-color:rgba(255,255,255,.15)}
.q{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  cursor:pointer;
}
.q h4{margin:0;font-weight:600;font-size:16px}
.q-icon{
  width:24px;height:24px;border-radius:6px;background:rgba(255,255,255,.1);
  display:grid;place-items:center;transition: all .25s ease;
}
.qa.open .q-icon{transform:rotate(180deg);background:var(--brand);color:#041018}
.a{Color:var(--muted);margin-top:12px;display:none;font-size:14px;line-height:1.6}
.qa.open .a{display:block}

.cta-section{
  width:100%;padding:100px 5%;
  background: linear-gradient(135deg, rgba(96,165,250,.1), rgba(20,184,166,.08));
}
.cta-card{
  max-width:1000px;margin:0 auto;
  background:var(--card);border:1px solid rgba(255,255,255,.1);
  border-radius:24px;padding:48px 32px;text-align:center;
  box-shadow: 0 2px 8px rgba(94,234,212,0.10);
}
.cta-title{
  font-size: clamp(24px, 4vw, 36px);
  font-weight:800;margin-bottom:16px;
}
.cta-desc{
  color:var(--muted);font-size:18px;margin-bottom:32px;max-width:60ch;margin-left:auto;margin-right:auto;
}
.cta-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.contact-info{
  display:flex;flex-direction:column;gap:16px;font-size:18px;color:var(--text);
}
.contact-info a{
  color:var(--brand);text-decoration:none;transition: all .25s ease;
}
.contact-info a:hover{color:var(--brand-2);text-decoration:underline}

.footer{
  width:100%;
  border-top:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.2));
  padding:60px 5% 40px;
}
.footer-inner{max-width:1600px;margin:0 auto}
.foot-grid{
  display:grid;grid-template-columns: 2fr 1fr 1fr;gap:40px;
  margin-bottom:40px;
}
@media (max-width: 768px){
  .foot-grid{grid-template-columns:1fr;gap:24px}
}
.foot-brand{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.foot-muted{color:var(--muted);font-size:14px;line-height:1.6}
.foot-links a{display:block;margin-bottom:8px;color:var(--muted);transition: color .25s ease}
.foot-links a:hover{color:var(--text)}
.foot-bottom{
  padding-top:24px;border-top:1px solid rgba(255,255,255,.08);
  text-align:center;color:var(--muted);font-size:14px;
}

.modal{
  position:fixed;inset:0;
  background:rgba(0,0,0,.7);
  display:none;justify-content:center;align-items:center;
  z-index:9999;
}
.modal[aria-hidden="false"]{display:flex}
.modal-dialog{
  background:var(--card);
  border-radius:20px;
  padding:50px 40px;
  max-width:420px;
  width:90%;
  max-height:90vh;
  overflow-y:auto;
  box-shadow:var(--shadow-lg);
  position:relative;
  animation:fadeIn .3s ease;
  border:1px solid rgba(255,255,255,.1);
}
.modal-title{
  margin:0 0 32px 0;font-size:24px;font-weight:700;
  text-align:center;
  padding-top: 10px;
}
.modal form{display:flex;flex-direction:column;gap:20px;padding-bottom:10px}
.modal label{
  font-size:14px;
  font-weight:500;
  color:var(--text);
  margin-bottom:6px;
}
.modal input, .modal textarea{
  padding:14px;border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.05);
  color:var(--text);font-size:16px;
  transition:all .25s ease;
  font-family: inherit;
}
.modal textarea{
  resize:vertical;
  min-height:80px;
  max-width:100%;
  width:100%;
  box-sizing:border-box;
}
.modal input:focus, .modal textarea:focus{
  outline:none;border-color:var(--brand);
  box-shadow:var(--ring);
}
.modal input::placeholder, .modal textarea::placeholder{color:var(--muted)}
.modal input[type="radio"]{
  width:auto;
  margin-right:8px;
  padding:0;
}
.modal input[type="radio"] + label{
  display:inline;
  margin-right:20px;
  margin-bottom:0;
}
.modal .cta{
  margin:16px 0 0 0;
  padding:14px;
  font-size:16px;
  border-radius:12px;
  background: #0a174e; /* azul sólido muy oscuro */
  color: #fff;
  box-shadow: 0 8px 24px rgba(10,23,78,0.18);
  border: none;
}
.modal-close{
  position:absolute;top:15px;right:15px;
  background:none;border:none;
  font-size:20px;cursor:pointer;color:var(--muted);
  transition:color .25s ease;
}
.modal-close:hover{color:var(--text)}
@keyframes fadeIn{
  from{opacity:0;transform:scale(.95)}
  to{opacity:1;transform:scale(1)}
}

.password-field{
  position:relative;
  display:flex;
  align-items:center;
}
.password-field input{
  width:100%;
  padding-right:48px; /* espacio para el botón */
  box-sizing:border-box;
}
.password-toggle,
.toggle-password {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:10px;
  border:none;
  background:transparent;
  color:var(--muted);
  display:inline-grid;
  place-items:center;
  cursor:pointer;
  transition: all .18s ease;
  padding:0;
}

.password-toggle:focus,
.toggle-password:focus {
  outline:none;
  box-shadow: var(--ring);
  border-radius:8px;
}

.password-toggle:hover,
.toggle-password:hover {
  background: rgba(255,255,255,.04);
  color:var(--text);
}

/* Estructura: se espera que el HTML tenga dos spans: .eye-open y .eye-closed
   si el HTML no los incluye, el JS los insertará. Controlamos visibilidad vía .showing */
.password-toggle .eye-open,
.toggle-password .eye-open { display: block; }
.password-toggle .eye-closed,
.toggle-password .eye-closed { display: none; }

.password-toggle.showing .eye-open,
.toggle-password.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed,
.toggle-password.showing .eye-closed { display: block; }

.password-toggle svg,
.toggle-password svg { width: 18px; height: 18px; display: block; }
.password-toggle svg path,
.password-toggle svg circle,
.toggle-password svg path,
.toggle-password svg circle { stroke: currentColor; fill: none; }

.login-feedback {
  margin: 2px 0 8px 0;
  font-size: 14px;
  padding: 0;
  background: none;
  color: var(--muted);
  display: block;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.login-feedback[role="status"] {
  box-shadow: none;
}
.login-feedback.error {
  color: #ffb4b4;
  background: none;
}
.login-feedback.success {
  color: #b9ffd6;
  background: none;
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


@media (max-width: 768px){
  .menu-btn{display:inline-flex}
  .nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:rgba(11,16,32,.95);backdrop-filter:blur(20px);
    border-top:1px solid rgba(255,255,255,.08);
    flex-direction:column;padding:20px 5%;gap:8px;
  }
  .nav-links.open{display:flex}
  .nav-links a, .cta{margin:0;width:100%;text-align:center}
  .contact-info{font-size:16px}
}

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

html.is-resizing {
  --shadow: none;
  --shadow-lg: none;
}

html.is-resizing * {
  transition: none !important;
  box-shadow: none !important;
  backface-visibility: hidden !important;
}

html.is-resizing .hero, html.is-resizing .hero-media {
  background-attachment: scroll !important;
  backdrop-filter: none !important;
}
.service-card.reveal, .cta-card.reveal {
  opacity: 0;
  transform: scale(0.88) translateY(90px);
  filter: blur(14px);
  transition:
    opacity 1.7s cubic-bezier(.22,1,.36,1),
    transform 1.5s cubic-bezier(.22,1,.36,1),
    filter 1.5s cubic-bezier(.22,1,.36,1);
}
.service-card.reveal.in, .cta-card.reveal.in {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: none;
  box-shadow: 0 8px 32px 0 rgba(94,234,212,0.10), 0 1.5px 8px 0 rgba(96,165,250,0.10);
}

.cta-large.reveal, .cta.reveal {
  opacity: 0;
  transform: scale(0.88) translateY(60px);
  filter: blur(10px);
  transition:
    opacity 1.5s cubic-bezier(.22,1,.36,1),
    transform 1.3s cubic-bezier(.22,1,.36,1),
    filter 1.3s cubic-bezier(.22,1,.36,1);
}
.cta-large.reveal.in, .cta.reveal.in {
  opacity: 1;
  transform: scale(1.04) translateY(0);
  filter: none;
  animation: bounceIn .9s cubic-bezier(.22,1,.36,1) 1;
}
@keyframes bounceIn {
  0% { transform: scale(0.88) translateY(60px); }
  60% { transform: scale(1.10) translateY(-12px); }
  80% { transform: scale(0.98) translateY(4px); }
  100% { transform: scale(1.04) translateY(0); }
}

.service-card:hover, .cta-card:hover {
  transform: scale(1.01) translateY(-2px) !important;
  box-shadow: 0 6px 18px 0 rgba(96,165,250,0.13);
  transition: box-shadow .12s ease;
}
.cta-large:hover, .cta:hover {
  transform: scale(1.01) translateY(-2px) !important;
  box-shadow: 0 6px 18px 0 rgba(96,165,250,0.13);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s cubic-bezier(.22,1,.36,1);
}

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