/* =============================================
   MULTILATERAL LABS — Stylesheet
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-deep:    #001f3f;
  --blue-mid:     #003366;
  --blue-light:   #0056a3;
  --blue-glow:    #1a4a7a;
  --accent:       #2e86de;
  --accent-hover: #1a6fc4;
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #64748b;
  --gray-800:     #1e293b;
  --text-dark:    #0f172a;
  --text-mid:     #334155;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,31,63,.10);
  --shadow-lg:    0 12px 40px rgba(0,31,63,.16);
  --font-head:    'Montserrat', sans-serif;
  --font-body:    'Lato', sans-serif;
  --nav-h:        72px;
  --transition:   0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-tag--light { color: rgba(255,255,255,.65); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
}

.section-subtitle--light { color: rgba(255,255,255,.75); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(46,134,222,.35);
}

.btn--outline {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--outline:hover {
  background: var(--blue-deep);
  color: var(--white);
}

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

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

.btn--lg  { padding: 16px 36px; font-size: 15px; }
.btn--full { width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--blue-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  vertical-align: middle;
}

.navbar__logo-img--footer {
  filter: brightness(0) invert(1);
  height: 36px;
}

.navbar__logo-text {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1;
}

.navbar__logo-text strong { font-weight: 800; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.navbar__nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
  text-transform: uppercase;
}

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

/* Navbar CTA — standalone white outline button */
.navbar__cta {
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
}
.navbar__cta:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
  box-shadow: none;
}

/* ---- LANGUAGE TOGGLE ---- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 40px;
  padding: 2px 7px;
}

.lang-sep {
  color: rgba(255,255,255,.2);
  font-size: 10px;
  line-height: 1;
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  color: rgba(255,255,255,.4);
  padding: 2px 5px;
  border-radius: 40px;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover { color: rgba(255,255,255,.8); }

.lang-btn.active {
  background: var(--accent);
  color: var(--white);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--nav-h) 0 80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,86,163,.35) 0%, transparent 65%),
    linear-gradient(160deg, var(--blue-deep) 0%, #00294f 55%, #001529 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero__content {
  /* left column — inherits grid cell width */
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  display: block;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}

.hero__title .accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  max-width: 580px;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__logos {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 32px;
}

.hero__logos-label {
  font-size: 12px;
  font-family: var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.hero__logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.org-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 40px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.04);
  transition: border-color var(--transition), color var(--transition);
}

.org-badge:hover {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  margin: 0 auto;
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%, 100% { opacity: 0; transform: translateY(-12px); }
  50% { opacity: 1; transform: translateY(12px); }
}

/* ---- VISUAL BANNER ---- */
.visual-banner {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.visual-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.visual-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,31,63,.88) 0%, rgba(0,31,63,.5) 60%, rgba(0,31,63,.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-banner__text {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

/* ---- PROPUESTA (CARDS) ---- */
.propuesta {
  background: var(--off-white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(46,134,222,.2);
}

.card--featured {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}

.card--featured .card__body { color: rgba(255,255,255,.75); }
.card--featured .card__icon { color: var(--accent); }

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}

.card__body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- VENTAJAS ---- */
.ventajas {
  background: var(--blue-deep);
}

.ventajas__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ventajas__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.ventajas__item {
  display: flex;
  gap: 16px;
}

.ventajas__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(46,134,222,.2);
  border: 1px solid rgba(46,134,222,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.ventajas__check svg { width: 14px; height: 14px; }

.ventajas__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.ventajas__item p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

.ventajas__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--transition), border-color var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.2);
}

.stat-card--accent {
  background: rgba(46,134,222,.15);
  border-color: rgba(46,134,222,.35);
}

.stat-card__number {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---- NOSOTROS ---- */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros__text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 18px;
}

.nosotros__text p strong { color: var(--blue-deep); }

.nosotros__values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: 40px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nosotros__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros__figure {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.nosotros__figure-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---- CONTACTO ---- */
.contacto {
  background: var(--gray-100);
}

.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contacto__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.contacto__email:hover { color: var(--accent-hover); }
.contacto__email svg { width: 20px; height: 20px; }

.contacto__note {
  font-size: 13px;
  color: var(--gray-600);
  font-style: italic;
}

/* ---- FORM ---- */
.contacto__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: .03em;
}

.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,134,222,.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.field-error {
  font-size: 12px;
  color: #e74c3c;
  font-family: var(--font-head);
  font-weight: 600;
  min-height: 16px;
  display: block;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}

.form-success[hidden] { display: none; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; color: #059669; }

/* ---- FOOTER ---- */
.footer {
  background: var(--blue-deep);
  color: var(--white);
  padding-top: 56px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 28px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  font-style: italic;
}

.footer__brand a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  transition: color var(--transition);
}

.footer__brand a:hover { color: rgba(46,134,222,.75); }

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .ventajas__inner,
  .nosotros__grid,
  .contacto__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ventajas__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .nosotros__visual { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .section { padding: 72px 0; }

  .navbar__nav,
  .navbar__cta { display: none; }

  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--blue-deep);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    z-index: 99;
  }

  .navbar__nav.open a { font-size: 16px; }

  .navbar__hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { display: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .ventajas__stats {
    grid-template-columns: 1fr 1fr;
  }

  .contacto__form {
    padding: 32px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .ventajas__stats { grid-template-columns: 1fr 1fr; }
  .hero__logos-row { gap: 8px; }
}
