:root {
  --azul: #1E3A8A;
  --azul-dark: #152a64;
  --verde: #10B981;
  --verde-dark: #0d9668;
  --gris: #6B7280;
  --gris-light: #F3F4F6;
  --blanco: #FFFFFF;
  --naranja: #F97316;
  --naranja-dark: #e0620d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #374151;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  color: var(--azul);
}

/* ── Navbar ── */
.navbar-huitzi {
  background: var(--blanco);
  box-shadow: 0 2px 20px rgba(30, 58, 138, .08);
  padding: .85rem 0;
  transition: background .3s, box-shadow .3s;
}
.navbar-huitzi.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(30, 58, 138, .12);
}
.navbar-brand-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--azul) !important;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.navbar-brand-logo .logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--azul), var(--verde));
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .25);
}
.navbar-brand-logo span { color: var(--verde); }
.nav-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--azul) !important;
  font-size: .92rem;
  padding: .5rem 1rem !important;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-link:hover { color: var(--naranja) !important; }
.nav-link:hover::after { transform: scaleX(1); }
.btn-nav-cta {
  background: var(--naranja);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.25rem !important;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .2s;
}
.btn-nav-cta:hover {
  background: var(--naranja-dark);
  transform: translateY(-1px);
}
.btn-nav-cta::after { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--azul) 0%, #1e3078 55%, #162860 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 80% 30%, rgba(16,185,129,.15), transparent),
    radial-gradient(ellipse 500px 600px at 20% 80%, rgba(249,115,22,.08), transparent);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  pointer-events: none;
}
.hero-float-shape.s1 { width: 380px; height: 380px; background: var(--verde); top: -80px; right: -60px; }
.hero-float-shape.s2 { width: 220px; height: 220px; background: var(--naranja); bottom: 40px; left: -50px; }
.hero-float-shape.s3 { width: 140px; height: 140px; background: var(--verde); bottom: 160px; right: 15%; }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.25);
  color: #6ee7b7;
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--verde); }
.hero .lead {
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.btn-cta {
  background: var(--naranja);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 2.2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: all .25s ease;
  box-shadow: 0 6px 24px rgba(249,115,22,.35);
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--naranja-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(249,115,22,.4);
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat h3 { font-size: 1.75rem; color: var(--verde); margin-bottom: .15rem; }
.hero-stat p { color: rgba(255,255,255,.55); font-size: .82rem; margin: 0; }
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(16px);
}
.mockup-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1.2rem;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ef4444; }
.mockup-dot.y { background: #f59e0b; }
.mockup-dot.g { background: #10b981; }
.mockup-bar {
  height: 12px;
  border-radius: 6px;
  margin-bottom: .6rem;
}
.mockup-bar.b1 { width: 80%; background: rgba(16,185,129,.25); }
.mockup-bar.b2 { width: 60%; background: rgba(249,115,22,.2); }
.mockup-bar.b3 { width: 90%; background: rgba(255,255,255,.08); }
.mockup-bar.b4 { width: 45%; background: rgba(16,185,129,.15); }
.mockup-card-row { display: flex; gap: .8rem; margin-top: 1rem; }
.mockup-card {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.mockup-card i { font-size: 1.5rem; color: var(--verde); }
.mockup-card p { color: rgba(255,255,255,.5); font-size: .7rem; margin: .4rem 0 0; }

/* ── Sections ── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--azul);
  margin-bottom: .6rem;
  letter-spacing: -.3px;
}
.section-subtitle {
  color: var(--gris);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section-label {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: .75rem;
}

/* ── Services ── */
#servicios { background: var(--gris-light); }
.service-card {
  background: var(--blanco);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all .3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--verde));
  transform: scaleX(0);
  transition: transform .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(30,58,138,.1);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 68px; height: 68px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  transition: transform .3s;
}
.service-card:hover .service-icon { transform: scale(1.08); }
.icon-azul { background: rgba(30,58,138,.08); color: var(--azul); }
.icon-verde { background: rgba(16,185,129,.1); color: var(--verde); }
.icon-naranja { background: rgba(249,115,22,.1); color: var(--naranja); }
.service-card h5 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--gris);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Benefits ── */
#beneficios { background: var(--blanco); }
.benefit-card {
  background: var(--blanco);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all .3s ease;
  height: 100%;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(16,185,129,.1);
  border-color: rgba(16,185,129,.3);
}
.benefit-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  color: var(--verde);
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.benefit-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.benefit-card p {
  color: var(--gris);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Testimonials ── */
#testimonios {
  background: linear-gradient(170deg, var(--azul) 0%, #162860 100%);
  position: relative;
  overflow: hidden;
}
#testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 10% 80%, rgba(16,185,129,.1), transparent),
    radial-gradient(ellipse 400px 400px at 90% 20%, rgba(249,115,22,.06), transparent);
  pointer-events: none;
}
#testimonios .section-label { color: #6ee7b7; }
#testimonios .section-title { color: var(--blanco); }
#testimonios .section-subtitle { color: rgba(255,255,255,.6); }
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  max-width: 680px;
  margin: 0 auto;
}
.testimonial-stars { color: #FBBF24; font-size: 1.1rem; margin-bottom: 1.2rem; }
.testimonial-card blockquote {
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--azul));
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.testimonial-name {
  color: var(--blanco);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: .95rem;
}
.testimonial-role {
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}
.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  margin: 0 5px;
}
.carousel-indicators .active { background: var(--verde); }
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background-size: 40%;
  padding: 10px;
}

/* ── Contact ── */
#contacto { background: var(--gris-light); }
.contact-wrapper {
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(30,58,138,.07);
  overflow: hidden;
}
.contact-info-panel {
  background: linear-gradient(170deg, var(--azul), #162860);
  padding: 3rem 2.5rem;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.contact-info-panel::before {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  bottom: -80px; right: -60px;
  pointer-events: none;
}
.contact-info-panel h3 {
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: .6rem;
}
.contact-info-panel p {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--verde);
  flex-shrink: 0;
}
.contact-detail span {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
}
.contact-detail a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.contact-form-panel { padding: 3rem 2.5rem; }
.contact-form-panel h3 {
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.form-control, .form-select {
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.form-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--azul);
  margin-bottom: .35rem;
}
.btn-submit {
  background: var(--naranja);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .8rem 2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(249,115,22,.25);
}
.btn-submit:hover {
  background: var(--naranja-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}

/* ── Footer ── */
.footer {
  background: #0f1e3d;
  color: rgba(255,255,255,.55);
  padding: 3rem 0 1.5rem;
}
.footer-brand {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--blanco);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.footer-brand span { color: var(--verde); }
.footer p { font-size: .88rem; line-height: 1.65; }
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .88rem;
  display: block;
  padding: .2rem 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--verde); }
.footer h6 {
  color: var(--blanco);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.social-icons { display: flex; gap: .6rem; margin-top: 1rem; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all .25s;
}
.social-icon:hover {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: .82rem;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-visual { margin-top: 3rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .contact-info-panel { padding: 2rem 1.5rem; }
  .contact-form-panel { padding: 2rem 1.5rem; }
}
@media (max-width: 767px) {
  .hero-mockup { max-width: 340px; padding: 1.5rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat h3 { font-size: 1.4rem; }
}
