/* ── VARIABLES Y CONFIGURACIÓN INICIAL ── */
/* Definimos la variante Regular */
@font-face {
    font-family: 'Mundial';
    src: url('fonts/Mundial-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Hace que el texto sea visible mientras carga la fuente */
}

/* Definimos la variante Bold (Negrita) */
@font-face {
    font-family: 'Mundial';
    src: url('fonts/Mundial-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --navy: #163b7a;
  --navy-dark: #0d2550;
  --navy-light: #1e4d9e;
  --slate: #cbd5e1;
  --slate-mid: #94a3b8;
  --slate-dark: #64748b;
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-bg: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Mundial', sans-serif;
  font-weight: 400; /* Mundial Normal */
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── JERARQUÍA TIPOGRÁFICA (Mundial Bold) ── */
h1, h2, h3, h4, .nav-logo, .btn-primary, .btn-white, .hero-stat-num {
  font-family: 'Mundial', sans-serif;
  font-weight: 700; /* Mundial Bold */
  letter-spacing: -0.01em;
}

/* ── NAVEGACIÓN (Efecto Cristal) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .3s ease;

}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.1rem;
}

.nav-logo svg {
  height: 76px;   /* más grande al cargar */
  width: auto;
  transition: all .3s ease;
}

nav.scrolled .nav-logo svg {
  height: 38px;   /* tamaño actual */
}

nav.scrolled {
  height: 64px;
}


.nav-logo span span {
  font-weight: 400;
  color: var(--slate-dark);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { 
  color: var(--navy); 
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { 
  background: var(--navy-dark) !important; 
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 0; /* cancela los 8rem del rule general de section */
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(203,213,225,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,213,225,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(22, 59, 122, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem; /* top compensa los 64px del nav */
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 850px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--slate-mid);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-since {
  font-size: 0.85rem;
  color: var(--slate-dark);
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}



/* Ponemos un círculo de luz difusa detrás del texto */
.hero-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 59, 122, 0.4) 0%, rgba(15, 23, 42, 0) 70%);
  filter: blur(60px);
  pointer-events: none; /* Para que no interfiera con los clics */
  z-index: 1;
}

/* Forzamos a que el título brille en blanco absoluto */
#hero h1 {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.5); /* Le da relieve */
}

/* Destacamos la palabra central dándole el color gris claro de tu logo */
#hero h1 span.highlight {
  color: #cbd5e1;
}

.btn-primary {
  background: var(--white);
  color: var(--navy-dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(203,213,225,0.25);
  transition: all 0.2s;
  display: inline-block;
}

.btn-ghost:hover { 
  border-color: var(--white); 
  color: var(--white); 
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex;
  gap: 4rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(203,213,225,0.08);
  flex-wrap: wrap;
}

.hero-stat-num {
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--slate-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── SECTIONS COMUNES ── */
section { 
  padding: 8rem 2rem; /* Más espaciado elegante */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ── SOLUCIONES ── */
#soluciones { 
  background: var(--off-white); 
}

.solutions-header {
  margin-bottom: 4rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; /* Separadas con espacio en lugar de línea rígida */
}

.sol-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.sol-card:hover {
  transform: translateY(-4px);
  border-color: var(--slate);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.04);
}

.sol-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sol-icon svg {
  width: 22px; height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sol-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.5rem;
}

.sol-tag {
  background: var(--light-bg);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── TRAYECTORIA ── */
#trayectoria { 
  background: var(--white); 
}

.tray-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.tray-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(0,0,0,.12);
}

.tray-left{
  display:flex;
  flex-direction:column;
  gap:2rem;
}

.tray-content{
  margin-top:0;
}

@media (max-width: 768px) {
  .tray-layout { grid-template-columns: 1fr; gap: 3rem; }
}

.tray-quote {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--navy);
  padding-left: 1.5rem;
  margin-top: 2rem;
  font-weight: 400;
}


/* ── CLIENTES (Logos en Gris con Hover) ── */
#clientes { 
  background: var(--navy-dark); 
}

#clientes .section-tag { color: var(--slate); }
#clientes .section-title { color: var(--white); }
#clientes .section-desc { color: var(--slate-mid); }


.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.client-cell {
  width: calc(20% - 12px);
}

.client-cell {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.client-cell img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all .3s ease;
}

.client-cell:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-dark); /* Color gris apagado por defecto */
  text-align: center;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

/* El efecto elegante que querías: se ilumina al pasar el mouse */
.client-cell:hover { 
  background: rgba(255,255,255,0.05); 
  border-color: rgba(255, 255, 255, 0.15);
}

.client-cell:hover .client-name {
  color: var(--white); /* Pasa a blanco brillante */
}

.clients-note {
  text-align: center;
  color: var(--slate-dark);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* ── PARTNERS ── */
#partners { background: var(--off-white); }

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all 0.2s;
  flex: 0 0 180px;

}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}


.partner-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
}

.partner-name {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.partner-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.partner-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 1rem;
  text-transform: uppercase;
}

/* ── ECOSISTEMA ── */
#ecosistema { background: var(--white); }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.eco-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--navy);
}

.eco-name {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.eco-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CONTACTO ── */
#contacto { background: var(--navy-dark); }
#contacto .section-tag { color: var(--slate); }
#contacto .section-title { color: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 16px; height: 16px;
  stroke: var(--slate);
  fill: none;
  stroke-width: 1.5;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--slate-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.5;
}

.contact-value a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--white); }

.contact-form-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-form-note h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-form-note p {
  font-size: 0.9rem;
  color: var(--slate-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-white {
  background: var(--white);
  color: var(--navy-dark);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── FOOTER ── */
footer {
  background: #080f1e;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-since {
  font-size: 0.8rem;
  color: var(--slate-dark);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--slate-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-dark);
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag { animation: fadeUp 0.6s ease both; }
.hero h1 { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.6s 0.2s ease both; }
.hero-since { animation: fadeUp 0.6s 0.25s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
.hero-stats { animation: fadeUp 0.6s 0.4s ease both; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  section { padding: 5rem 1.5rem; }
}

.footer-svg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-logo-wrap {
  filter: grayscale(100%);
  opacity: .75;
  transition: all .3s ease;
  max-width: 210px; /* Lo subimos de 180px a 210px para compensar el ancho extra */
  margin-bottom: 0.5rem;
}

.footer-logo-wrap:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* ── WHATSAPP ── */

a{
  text-decoration:none;
}
.floating_btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  z-index: 1000;
}

.contact_icon {
  background-color: #42db87;
  color: #fff;
  width: 60px;
  height: 60px;
  font-size:30px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translatey(0px);
  box-shadow: 0 0 0 0 #42db87;
  font-weight: normal;
  font-family: sans-serif;
  text-decoration: none !important;
}

.text_icon {
  margin-top: 8px;
  color: #707070;
  font-size: 13px;
}