/* ===============================
   GLOBAL RESET & BASE
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ===============================
   CONTAINER SYSTEM (CRÍTICO)
================================ */
.container {
  max-width: 1200px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  overflow-x: hidden;
}

/* ===============================
   HERO (GLOBAL)
================================ */
.hero {
  background: linear-gradient(135deg, #0b4393 0%, #1565c0 100%);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p,
.hero .lead {
  font-size: 1.2rem;
  max-width: 760px;
  margin: 0 auto;
  opacity: .95;
  color: #ffffff;
}

.hero-kicker {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-kicker i {
  margin-right: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.trustbar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* ===============================
   SECTION SPACING
================================ */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0b4393;
  margin-bottom: 3rem;
  text-align: center;
}

.section-note {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.bg-light {
  background-color: #f9f9f9;
}

/* ===============================
   SERVICE CARDS
================================ */
.service-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eee;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: #0b4393;
  margin-bottom: 1rem;
}

.service-link {
  color: #f7941d;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #e67e0d;
  text-decoration: underline;
}

/* ===============================
   PROJECT CARDS
================================ */
.project-card {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: scale(1.02);
}

/* ===============================
   TESTIMONIAL CARDS
================================ */
.testimonial-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.testimonial-stars {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-stars i {
  color: #fbbf24;
}

/* ===============================
   CTA BANNER (ANTES DEL FOOTER)
================================ */
.cta-banner {
  background: linear-gradient(135deg, #0b4393 0%, #1565c0 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.2rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   BUTTONS
================================ */
.btn-primary-custom,
.cta-btn {
  background: #f7941d;
  color: #ffffff;
  padding: 0.9rem 2.4rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all .25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-custom:hover,
.cta-btn:hover {
  background: #e67e0d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.btn-secondary-pro {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all .25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-pro:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ===============================
   FOOTER
================================ */
footer {
  background: #0a0a0a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

footer .container {
  max-width: 1200px;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
}

footer a:hover {
  color: #f7941d;
}

/* ===================================
   NAVBAR – GLOBAL
=================================== */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow-x: hidden;
  width: 100%;
}

.navbar-brand img {
  height: 46px;
  width: auto;
}

.nav-link {
  font-weight: 600;
  color: #333 !important;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0b4393 !important;
}

.nav-cta {
  background: #f7941d;
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #e67e0d;
}

.top-bar {
  background: #0b4393;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  width: 100%;
  overflow-x: hidden;
}

/* TOGGLER BUTTON */
.navbar-toggler {
  border: none;
  padding: 0.4rem 0.6rem;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* TOGGLER ICON (CRÍTICO) */
.navbar-toggler-icon {
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ===================================
   MOBILE GLOBAL ADJUSTMENTS
=================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 1rem 0;
    border-top: 1px solid #eee;
  }

  .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero {
    padding: 3rem 1.25rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    color: #ffffff;
  }

  .hero p,
  .hero .lead {
    font-size: 1rem;
    color: #ffffff;
    max-width: 100%;
  }

  .hero-kicker {
    color: #ffffff;
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions a,
  .trustbar {
    width: 100%;
  }

  .hero-actions a {
    max-width: 100%;
  }

  .btn-primary-custom,
  .btn-secondary-pro,
  .cta-btn {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    text-align: center;
  }

  .trustbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-pill {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .section-note {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .project-card {
    height: 250px;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .cta-banner {
    padding: 3rem 1.25rem;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p,
  .hero .lead {
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  /* FIX HORIZONTAL OVERFLOW */
  body {
    overflow-x: hidden;
  }

  .row {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  iframe {
    max-width: 100%;
  }

  table {
    width: 100%;
    overflow-x: auto;
  }

  pre, code {
    max-width: 100%;
    overflow-x: auto;
  }
}