/* =========================================
   FORTERA SOLUTIONS — style.css
   ========================================= */

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

:root {
  --navy:   #1A2C5B;
  --navy-d: #0F1E3D;
  --teal:   #2BBFAD;
  --teal-d: #1F9E8E;
  --white:  #FFFFFF;
  --light:  #F4F7FB;
  --muted:  #6B7FA3;
  --border: #E2E8F0;
  --text:   #1A2C5B;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(26,44,91,.10);
  --shadow-lg: 0 16px 48px rgba(26,44,91,.16);
  --transition: .22s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal); color: var(--white);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 50px; border: 2px solid var(--teal);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,191,173,.35); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--white); font-weight: 600; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 50px; border: 2px solid rgba(255,255,255,.4);
  cursor: pointer; text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-nav {
  background: var(--teal); color: var(--white) !important;
  padding: .5rem 1.4rem; border-radius: 50px; font-weight: 700; font-size: .875rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; padding: 1.25rem 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(15,30,61,.96); backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.2); padding: .75rem 0;
}
.nav-container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; }
.logo-full { height: 38px; width: auto; }
.logo-icon { height: 38px; width: auto; display: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .9rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--teal); }

.lang-switcher { display: flex; align-items: center; gap: .3rem; margin-left: .5rem; }
.lang-sep { color: rgba(255,255,255,.3); font-size: .8rem; }
.lang-btn {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  cursor: pointer; padding: .2rem .3rem; letter-spacing: .06em;
  transition: color var(--transition);
}
.lang-btn:hover { color: var(--teal); }
.lang-btn.active { color: var(--teal); }

.nav-right-mobile { display: none; align-items: center; gap: .75rem; }
.lang-switcher-mobile { display: flex; align-items: center; gap: .3rem; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===================== SECTION COMMONS ===================== */
.section-container { max-width: var(--max-w); margin: 0 auto; padding: 6rem 2rem; }
.section-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--navy-d); margin-bottom: 2.5rem; }
.accent { color: var(--teal); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh; width: 100%;
  background: linear-gradient(145deg, var(--navy-d) 0%, var(--navy) 60%, #1a3a6b 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(43,191,173,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(43,191,173,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 4rem 2rem 2rem; text-align: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(43,191,173,.15); border: 1px solid rgba(43,191,173,.3);
  color: var(--teal); font-size: .8rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 50px; margin-bottom: 2rem;
  letter-spacing: .04em; max-width: 100%; white-space: normal; text-align: center;
}
.badge-dot { width: 7px; height: 7px; min-width: 7px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.3); } }

.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 800; line-height: 1.0; color: var(--white);
  margin-bottom: 1.5rem; letter-spacing: -.02em; word-break: break-word;
}
.hero-accent { color: var(--teal); }
.hero-sub { font-size: clamp(.95rem, 2vw, 1.2rem); color: rgba(255,255,255,.7); margin-bottom: 2.5rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

/* Stats — sin separadores, solo gap entre bloques */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: .5rem;
  backdrop-filter: blur(10px);
  width: 100%;
  gap: .5rem;
}
.stat {
  flex: 1 1 140px;
  max-width: 220px;
  text-align: center;
  padding: 1rem .75rem;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
}
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 800; color: var(--teal); }
.stat-label { display: block; font-size: .7rem; color: rgba(255,255,255,.6); font-weight: 500; margin-top: .2rem; }

.hero-logos-strip {
  width: 100%; background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; padding: 1.2rem 2rem; flex-wrap: wrap; position: relative; z-index: 1;
}
.hero-logos-strip span { color: rgba(255,255,255,.45); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ===================== SERVICES ===================== */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.service-icon { width: 48px; height: 48px; color: var(--teal); margin-bottom: 1rem; }
.service-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); background: rgba(43,191,173,.1);
  padding: .25rem .75rem; border-radius: 50px; margin-bottom: .75rem;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy-d); margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

.services-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; background: var(--navy-d); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%;
}
.metric { text-align: center; }
.metric span { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; color: var(--teal); }
.metric p { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: .25rem; }

/* ===================== PLATFORM ===================== */
.platform { background: var(--white); }
.steps-grid { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.step-card {
  flex: 1; min-width: 180px; max-width: 260px;
  background: var(--light); border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  border: 2px solid var(--border); text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.step-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--teal); opacity: .5; line-height: 1; margin-bottom: .75rem; }
.step-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy-d); margin-bottom: .5rem; }
.step-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.step-arrow { font-size: 2rem; color: var(--teal); opacity: .5; flex-shrink: 0; }

/* ===================== ABOUT ===================== */
.about { background: var(--light); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-lead { font-size: 1.05rem; color: var(--muted); line-height: 1.75; margin-bottom: 2rem; margin-top: -.5rem; }
.about-pillars { display: flex; flex-direction: column; gap: 1.25rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.pillar strong { display: block; color: var(--navy-d); font-weight: 700; margin-bottom: .2rem; }
.pillar p { color: var(--muted); font-size: .875rem; line-height: 1.6; margin: 0; }
.about-quote-block { background: var(--navy-d); border-radius: var(--radius-lg); padding: 2.5rem; color: var(--white); width: 100%; overflow: hidden; }
.about-stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.about-stats-mini span { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--teal); }
.about-stats-mini p { color: rgba(255,255,255,.55); font-size: .8rem; margin-top: .2rem; }
blockquote { font-size: 1rem; font-style: italic; color: rgba(255,255,255,.8); line-height: 1.7; border-left: 3px solid var(--teal); padding-left: 1.25rem; word-break: break-word; }

/* ===================== CONTACT ===================== */
.contact { background: var(--white); }
.contact-sub { color: var(--muted); font-size: 1rem; max-width: 600px; margin-bottom: 3.5rem; line-height: 1.7; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; min-width: 44px; background: rgba(43,191,173,.12); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-item strong { display: block; font-weight: 700; color: var(--navy-d); margin-bottom: .2rem; }
.contact-item a, .contact-item span { color: var(--muted); font-size: .9rem; word-break: break-word; }
.contact-item a:hover { color: var(--teal); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; background: var(--light); border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .8rem; font-weight: 700; color: var(--navy-d); text-transform: uppercase; letter-spacing: .05em; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; font-family: var(--font-body); font-size: .9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,191,173,.15); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.5rem; background: rgba(43,191,173,.08); border-radius: var(--radius); border: 1px solid rgba(43,191,173,.3); }
.form-success.visible { display: flex; }
.form-success span { font-size: 2rem; }
.form-success strong { color: var(--navy-d); }
.form-success p { color: var(--muted); font-size: .875rem; margin: 0; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-d); color: var(--white); padding-top: 4rem; width: 100%; overflow: hidden; }
.footer-container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 3rem; display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .875rem; line-height: 1.65; max-width: 300px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col strong { color: var(--white); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.5); font-size: .875rem; transition: color var(--transition); word-break: break-word; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom span { color: rgba(255,255,255,.35); font-size: .8rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.35); font-size: .8rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--teal); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-d); padding: 1.5rem 2rem; gap: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links .lang-switcher { display: none; }
  .nav-right-mobile { display: flex; }
  .nav-hamburger { display: flex; }
  .logo-full { display: none; }
  .logo-icon { display: block; filter: none; }

  .hero-content { padding: 2rem 1.25rem 1.5rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-logos-strip { gap: 1rem; padding: 1rem; }

  .section-container { padding: 4rem 1.25rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .services-metrics { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; }

  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-card { max-width: 100%; min-width: unset; }
  .step-arrow { transform: rotate(90deg); text-align: center; }

  .about-quote-block { padding: 1.75rem; }
  .about-stats-mini { gap: 1rem; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .services-metrics { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .about-stats-mini { grid-template-columns: 1fr 1fr; }
  .stat { flex: 1 1 120px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}