/* CristSoft 2026 visual refresh */
:root {
  --cs-blue: #0b3970;
  --cs-blue-2: #1261a6;
  --cs-navy: #061b35;
  --cs-orange: #f28623;
  --cs-ink: #14243a;
  --cs-muted: #66758a;
  --cs-soft: #f4f8fc;
  --cs-line: #dce7f2;
}

html { scroll-padding-top: 84px; }
body { color: var(--cs-ink); background: #fff; }

#mainNav {
  min-height: 78px; padding: .65rem 0;
  transition: min-height .3s ease, padding .3s ease, box-shadow .3s ease, background-color .3s ease;
}
#mainNav .container { max-width: 1320px; }
#mainNav .navbar-brand img { height: 48px; width: auto; }
#mainNav .navbar-nav { align-items: center; gap: .18rem; }
#mainNav .navbar-nav .nav-link {
  display: flex; align-items: center; justify-content: center; min-height: 42px;
  font-size: .72rem; letter-spacing: .035em; line-height: 1; white-space: nowrap;
  padding: .72rem .68rem; border-radius: 10px;
}
#mainNav .navbar-nav .nav-link::after { display: none; }
#mainNav .navbar-nav .nav-link:hover { transform: none; }
#mainNav .navbar-nav .nav-link[href="#page-top"] i { color: var(--cs-orange); font-size: .72rem; }
#mainNav .nav-cta { margin-left: .45rem; }
#mainNav .nav-cta .nav-link {
  color: #fff !important; background: linear-gradient(135deg, var(--cs-orange), #ff9d3f);
  min-width: 132px; padding: .72rem 1rem; box-shadow: 0 8px 22px rgba(242, 134, 35, .25);
}
#mainNav .nav-cta .nav-link:hover { color: #fff !important; background: #dc7114; }

/* Escritorio amplio: logo y navegación siempre en una sola fila */
@media (min-width: 1200px) {
  #mainNav { flex-wrap: nowrap !important; }
  #mainNav .container {
    display: flex; flex-flow: row nowrap !important; align-items: center;
    justify-content: space-between; max-width: 1460px;
  }
  #mainNav .navbar-brand { flex: 0 0 auto; margin-right: 1.25rem; }
  #mainNav .navbar-collapse { flex: 1 1 auto; width: auto; }
  #mainNav .navbar-nav { flex-flow: row nowrap; margin-left: auto !important; }
  #mainNav .navbar-nav .nav-item { flex: 0 0 auto; margin-right: 0 !important; }
}

/* Escritorio pequeño: misma navegación horizontal con medidas compactas */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #mainNav { min-height: 70px; padding: .5rem 0; }
  #mainNav .container { max-width: 1320px; padding-left: 1rem; padding-right: 1rem; }
  #mainNav .navbar-brand { margin-right: .55rem; padding: 4px 7px; }
  #mainNav .navbar-brand img { height: 38px; }
  #mainNav .navbar-nav { gap: 0; }
  #mainNav .navbar-nav .nav-link {
    min-height: 38px; padding: .62rem .42rem; font-size: .63rem; letter-spacing: .025em;
  }
  #mainNav .navbar-nav .nav-link[href="#page-top"] i { font-size: .62rem; }
  #mainNav .nav-cta { margin-left: .25rem; }
  #mainNav .nav-cta .nav-link { min-width: 108px; padding-left: .62rem; padding-right: .62rem; }
}

/* En escritorios medianos se usa menú compacto para evitar desbordamientos */
@media (max-width: 1199.98px) {
  #mainNav { min-height: 72px; }
  #mainNav .navbar-brand img { height: 44px; }
  #mainNav .navbar-toggler {
    display: inline-flex; align-items: center; gap: .45rem; color: var(--cs-blue);
    border: 1px solid var(--cs-line); border-radius: 11px; padding: .62rem .8rem;
    font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    background: #fff; box-shadow: 0 8px 22px rgba(6,27,53,.08);
  }
  #mainNav .navbar-collapse {
    max-height: calc(100vh - 92px); overflow-y: auto; margin-top: .75rem; padding: .75rem;
    background: rgba(255,255,255,.98); border: 1px solid var(--cs-line); border-radius: 16px;
    box-shadow: 0 22px 50px rgba(6,27,53,.16); backdrop-filter: blur(16px);
  }
  #mainNav .navbar-nav { align-items: stretch; gap: .12rem; }
  #mainNav .navbar-nav .nav-link {
    justify-content: flex-start; min-height: 44px; padding: .75rem .9rem;
    font-size: .75rem; border-radius: 10px;
  }
  #mainNav .navbar-nav .nav-link:hover { background: #eef6fd; }
  #mainNav .nav-cta { margin: .55rem 0 0; }
  #mainNav .nav-cta .nav-link { justify-content: center; width: 100%; min-width: 0; }
  #mainNav .dropdown-menu {
    display: block; max-height: 0; min-width: 0; margin: 0 .35rem; padding: 0 .45rem;
    overflow: hidden; border: 0; border-radius: 13px; box-shadow: none; backdrop-filter: none;
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(1);
    transition: max-height .32s ease, padding .32s ease, opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  #mainNav .dropdown-menu::before { display: none; }
  #mainNav .dropdown-menu.show {
    max-height: 280px; padding: .45rem; opacity: 1; visibility: visible;
    transform: translateY(0) scale(1); background: #f3f8fd;
  }
  #mainNav .dropdown-item { min-height: 42px; }
}

/* Modern dropdown: glass surface + fade/slide transition */
#mainNav .dropdown-toggle::before {
  content: ""; width: 6px; height: 6px; margin-right: .5rem; border-radius: 50%;
  background: var(--cs-orange); box-shadow: 0 0 0 4px rgba(242,134,35,.12);
}
#mainNav .dropdown-toggle::after {
  width: 7px; height: 7px; margin: -4px 0 0 .55rem; border: 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
#mainNav .dropdown-toggle.show::after { margin-top: 3px; transform: rotate(225deg); }
#mainNav .dropdown-menu {
  display: block; min-width: 260px; margin-top: 14px; padding: .65rem;
  background: rgba(255,255,255,.96); border: 1px solid rgba(11,57,112,.11);
  border-radius: 18px; box-shadow: 0 22px 55px rgba(6,27,53,.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px) scale(.97); transform-origin: top center;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
#mainNav .dropdown-menu::before {
  content: ""; position: absolute; top: -6px; left: 34px; width: 12px; height: 12px;
  background: rgba(255,255,255,.96); border-left: 1px solid rgba(11,57,112,.11);
  border-top: 1px solid rgba(11,57,112,.11); transform: rotate(45deg);
}
#mainNav .dropdown-menu.show {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
}
#mainNav .dropdown-item {
  position: relative; display: flex; align-items: center; min-height: 44px;
  color: var(--cs-blue); font-size: .82rem; font-weight: 700; border-radius: 11px;
  padding: .7rem 2.25rem .7rem 1rem; transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
#mainNav .dropdown-item::after {
  content: "\2192"; position: absolute; right: .9rem; color: var(--cs-orange);
  opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease;
}
#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus { color: var(--cs-blue); background: #eef6fd; transform: translateX(3px); }
#mainNav .dropdown-item:hover::after,
#mainNav .dropdown-item:focus::after { opacity: 1; transform: translateX(0); }

/* Fade suave de contenido al entrar en pantalla */
.cs-motion-ready .page-section.cs-fade-section {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.cs-motion-ready .page-section.cs-fade-section.is-visible { opacity: 1; transform: translateY(0); }

header.masthead.banner {
  position: relative; min-height: 760px; padding: 160px 0 90px; overflow: hidden;
  isolation: isolate; background: #06182d;
}
header.masthead.banner::before {
  content: ""; position: absolute; inset: 0; z-index: 3; opacity: .24; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 78%, transparent);
}
header.masthead.banner::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(44,139,212,.24), transparent 28%),
    radial-gradient(circle at 16% 82%, rgba(242,134,35,.16), transparent 26%);
}
.banner-ripples {
  opacity: 1 !important; background-image: url("../assets/img/banner-cristsoft-modern.png") !important;
  background-position: center 48% !important; background-size: cover !important;
  filter: saturate(.72) contrast(1.06);
}
.banner-ripples::before {
  content: ""; display: block !important; position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,17,35,.92) 0%, rgba(5,29,56,.82) 44%, rgba(5,28,54,.61) 72%, rgba(3,17,35,.78) 100%),
    linear-gradient(180deg, rgba(4,20,39,.48) 0%, rgba(4,22,43,.22) 52%, rgba(3,17,34,.72) 100%);
}
.banner-ripples canvas {
  z-index: 1 !important; opacity: .92; filter: saturate(.82) contrast(1.04);
}
.hero-shell { position: relative; z-index: 4 !important; }
.hero-copy { text-align: left; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .85rem; margin-bottom: 1.4rem;
  color: #bfe3ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(10px);
}
.hero-kicker i { color: var(--cs-orange); }
.hero-title { color: #fff; font-size: clamp(2.75rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 800; max-width: 820px; margin: 0 0 1.35rem; text-shadow: 0 12px 34px rgba(0,0,0,.32); }
.hero-title span { color: #ffad5f; }
.hero-lead { color: rgba(255,255,255,.82); font-size: 1.15rem; line-height: 1.75; max-width: 680px; margin: 0 0 2rem; text-shadow: 0 4px 18px rgba(0,0,0,.26); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-actions .btn { border-radius: 12px; font-size: .9rem; font-weight: 750; letter-spacing: 0; text-transform: none; padding: 1rem 1.25rem; }
.hero-actions .btn-primary { border-color: var(--cs-orange); background: var(--cs-orange); box-shadow: 0 12px 30px rgba(242,134,35,.28); }
.hero-actions .btn-primary:hover { border-color: #ff9e42; background: #ff9e42; transform: translateY(-2px); }
.btn-hero-ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.btn-hero-ghost:hover { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.13); }
.hero-trust { display: flex; gap: 2rem; margin-top: 2.45rem; }
.hero-trust div { display: flex; flex-direction: column; border-left: 2px solid rgba(255,255,255,.16); padding-left: .85rem; }
.hero-trust strong { color: #fff; font-size: 1.35rem; line-height: 1.1; }
.hero-trust span { color: rgba(255,255,255,.58); font-size: .72rem; margin-top: .3rem; }
.hero-visual { position: relative; max-width: 440px; margin-left: auto; border-radius: 28px; overflow: visible; }
.hero-visual::before { content: ""; position: absolute; inset: 5% -5% -4%; border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); transform: rotate(3deg); }
.hero-visual img { position: relative; display: block; width: 100%; max-height: 530px; object-fit: cover; object-position: center 30%; border-radius: 24px; box-shadow: 0 35px 80px rgba(0,0,0,.34); }
.hero-status { position: absolute; z-index: 3; top: 1rem; right: -1rem; color: #0e6849; background: rgba(255,255,255,.94); padding: .65rem .9rem; border-radius: 12px; font-weight: 750; font-size: .76rem; box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.hero-status i { color: #25a56f; margin-right: .35rem; }
.hero-float-card { position: absolute; z-index: 3; left: -2.3rem; bottom: 2rem; display: flex; align-items: center; gap: .75rem; color: var(--cs-ink); background: rgba(255,255,255,.95); padding: .85rem 1rem; border-radius: 14px; box-shadow: 0 18px 42px rgba(0,0,0,.24); }
.hero-float-card > i { color: #fff; background: var(--cs-orange); padding: .7rem; border-radius: 10px; }
.hero-float-card div { display: flex; flex-direction: column; }
.hero-float-card strong { font-size: .8rem; }
.hero-float-card span { color: var(--cs-muted); font-size: .7rem; margin-top: .15rem; }

.page-section { padding: 6.5rem 0; }
.page-section.bg-light { background: var(--cs-soft) !important; }
.section-heading, .aspectos-title { color: var(--cs-blue) !important; font-size: clamp(2rem, 3vw, 2.75rem) !important; letter-spacing: -.035em; text-transform: none !important; }
.section-subheading { max-width: 820px; margin-left: auto !important; margin-right: auto !important; line-height: 1.8; }
.p-4.border.rounded-3, .plan-card, .firma-card, .aspecto-card, .client-card {
  border: 1px solid var(--cs-line) !important; border-radius: 18px !important; box-shadow: 0 10px 32px rgba(12,55,98,.07) !important;
}
.p-4.border.rounded-3 { background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.p-4.border.rounded-3:hover, .plan-card:hover, .firma-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(12,55,98,.12) !important; }
#nosotros .row.g-4 > [class*="col-"] { display: flex; }
#nosotros .p-4.border.rounded-3 { display: flex; flex-direction: column; width: 100%; }
#nosotros .p-4.border.rounded-3 > p { flex: 1 1 auto; }
#nosotros .p-4.border.rounded-3 > .btn { align-self: flex-start; margin-top: auto; }
.service-icon { color: #fff !important; background: linear-gradient(135deg, var(--cs-blue-2), var(--cs-blue)); box-shadow: 0 12px 28px rgba(18,97,166,.22); }
.btn-primary { background: var(--cs-blue-2); border-color: var(--cs-blue-2); border-radius: 10px; }
.btn-primary:hover { background: var(--cs-blue); border-color: var(--cs-blue); }
.plan-card.featured { border: 2px solid var(--cs-orange) !important; }
.featured-badge, .aspecto-badge { background: var(--cs-orange) !important; color: #fff; text-decoration: none; }
.aspecto-badge:hover { color: #fff; background: #ff9a3c !important; transform: translateY(-1px); }
.cs-map { border-radius: 22px !important; overflow: hidden; box-shadow: 0 18px 44px rgba(12,55,98,.12); }

@media (max-width: 1199.98px) {
  #mainNav .navbar-nav { gap: 0; }
  #mainNav .navbar-nav .nav-link { font-size: .66rem; padding: .68rem .46rem; }
  #mainNav .nav-cta .nav-link { min-width: 116px; padding-left: .7rem; padding-right: .7rem; }
}
@media (max-width: 991.98px) {
  #mainNav { min-height: 70px; }
  #mainNav .navbar-brand img { height: 42px; }
  #mainNav .navbar-collapse { margin-top: .75rem; padding: .7rem; background: #fff; border: 1px solid var(--cs-line); border-radius: 16px; box-shadow: 0 20px 45px rgba(6,27,53,.12); }
  #mainNav .navbar-nav { align-items: stretch; }
  #mainNav .navbar-nav .nav-link { justify-content: flex-start; font-size: .75rem; padding: .75rem .85rem; }
  #mainNav .nav-cta { margin: .5rem 0 0; text-align: center; }
  #mainNav .nav-cta .nav-link { justify-content: center; }
  #mainNav .dropdown-menu {
    display: block; max-height: 0; min-width: 0; margin: 0 .35rem; padding: 0 .45rem;
    overflow: hidden; border: 0; border-radius: 13px; box-shadow: none; backdrop-filter: none;
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(1);
    transition: max-height .32s ease, padding .32s ease, opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  #mainNav .dropdown-menu::before { display: none; }
  #mainNav .dropdown-menu.show {
    max-height: 280px; padding: .45rem; opacity: 1; visibility: visible; transform: translateY(0) scale(1);
    background: #f3f8fd;
  }
  #mainNav .dropdown-item { min-height: 42px; }
  header.masthead.banner { min-height: 720px; padding: 145px 0 80px; }
  .hero-copy { text-align: center; }
  .hero-title, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
}
@media (max-width: 575.98px) {
  header.masthead.banner { min-height: 690px; padding-top: 125px; }
  .hero-kicker { font-size: .65rem; }
  .hero-title { font-size: 2.55rem; }
  .hero-lead { font-size: 1rem; line-height: 1.65; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: .75rem; justify-content: space-between; }
  .hero-trust div { flex: 1; padding-left: .55rem; text-align: left; }
  .hero-trust strong { font-size: 1.05rem; }
  .hero-trust span { font-size: .62rem; }
  .page-section { padding: 4.75rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cs-motion-ready .page-section.cs-fade-section { opacity: 1; transform: none; }
}

/* =========================================================
   Section system inspired by strong Ecuadorian SaaS layouts
   ========================================================= */
.page-section { position: relative; overflow: hidden; }
.page-section > .container { position: relative; z-index: 2; }
.section-heading, .aspectos-title, .modulos-title { font-weight: 800 !important; }
.section-heading::after, .aspectos-title::after, .modulos-title::after {
  content: ""; display: block; width: 52px; height: 4px; margin: .9rem auto 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--cs-orange), #ffb469);
}
.section-subheading { color: var(--cs-muted) !important; font-size: 1rem; }

/* Company / values band */
#nosotros {
  color: #fff; background:
    radial-gradient(circle at 12% 18%, rgba(242,134,35,.16), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(30,113,183,.22), transparent 28%),
    var(--cs-navy);
}
#nosotros .section-heading { color: #fff !important; }
#nosotros .section-subheading { color: rgba(255,255,255,.62) !important; }
#nosotros .p-4.border.rounded-3 {
  position: relative; padding: 2rem !important; color: #fff; overflow: hidden;
  background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.2) !important; backdrop-filter: blur(12px);
}
#nosotros .p-4.border.rounded-3::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cs-orange);
}
#nosotros h4 { font-size: 1.35rem; }
#nosotros p { color: rgba(255,255,255,.68) !important; line-height: 1.75; }
#nosotros .btn-outline-primary { color: #fff; border-color: rgba(255,255,255,.35); }
#nosotros .btn-outline-primary:hover { color: var(--cs-navy); background: #fff; border-color: #fff; }

/* Presence */
#ubicacion { background: #fff !important; }
#ubicacion::before {
  content: ""; position: absolute; width: 420px; height: 420px; top: -220px; right: -160px;
  border-radius: 50%; border: 70px solid rgba(18,97,166,.045);
}
#ubicacion .cs-map { border: 10px solid #fff; outline: 1px solid var(--cs-line); }

/* Core solution */
#solucion { background: linear-gradient(180deg, #f4f8fc 0%, #edf5fb 100%) !important; }
#solucion .row .p-4 {
  padding: 2rem !important; text-align: left; border: 0 !important;
  box-shadow: 0 16px 38px rgba(12,55,98,.085) !important;
}
#solucion .service-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
  border-radius: 16px; font-size: 1.45rem;
}
#solucion h4 { color: var(--cs-blue); font-size: 1.2rem; }
#solucion p { line-height: 1.7; }

/* Benefits + CTA band */
.cs-why { padding: 6rem 0; color: #fff; background: #403d43; position: relative; overflow: hidden; }
.cs-why::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(45deg, transparent 47%, rgba(255,255,255,.22) 48%, rgba(255,255,255,.22) 49%, transparent 50%);
  background-size: 44px 44px;
}
.cs-why .container { position: relative; }
.cs-why-heading { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.cs-section-kicker { color: #ffad5f; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cs-why h2 { margin: .8rem 0 0; font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; }
.cs-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cs-why-item { text-align: center; padding: 1.4rem 1rem; }
.cs-why-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px;
  margin-bottom: 1.1rem; border-radius: 22px; color: #fff; font-size: 1.65rem;
  background: linear-gradient(145deg, var(--cs-orange), #ffab55); box-shadow: 0 14px 30px rgba(242,134,35,.22);
}
.cs-why-item h3 { font-size: 1rem; font-weight: 750; }
.cs-why-item p { color: rgba(255,255,255,.62); font-size: .84rem; line-height: 1.6; }
.cs-why-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 3rem; padding: 1.4rem 1.6rem; border-radius: 18px;
  background: linear-gradient(100deg, var(--cs-orange), #ff9c3c); box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
.cs-why-cta div { display: flex; flex-direction: column; }
.cs-why-cta strong { font-size: 1.15rem; }
.cs-why-cta span { color: rgba(255,255,255,.82); font-size: .86rem; }
.cs-why-cta .btn { color: var(--cs-blue); white-space: nowrap; border-radius: 11px; font-weight: 750; padding: .8rem 1rem; }

/* Billing plans */
#planes { background: #fff !important; }
#planes .plan-card { padding: 2rem; border-top: 4px solid var(--cs-blue-2) !important; background: #fff; }
#planes .plan-card.featured { border-top-color: var(--cs-orange) !important; background: linear-gradient(180deg, #fffaf5, #fff); }
#planes .plan-title { color: var(--cs-blue); font-size: 1rem; letter-spacing: .02em; }
#planes .plan-price { color: var(--cs-blue); font-weight: 850; }
#planes .plan-features li { position: relative; padding-left: 1.4rem; }
#planes .plan-features li::before { content: "\2713"; position: absolute; left: 0; color: #24a46d; font-weight: 800; }

/* Digital signature */
#firma { background: linear-gradient(135deg, #edf5fb, #f8fbfe); }
#firma .firma-card { padding: 2rem; background: #fff; text-align: center; }
#firma .firma-card::before {
  content: "\2713"; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: .8rem; border-radius: 50%; color: #fff;
  background: var(--cs-blue); font-weight: 900;
}
#firma .firma-price { color: var(--cs-orange); font-size: 2.45rem; font-weight: 850; }

/* Functional videos */
#aspectos { color: #fff; background: linear-gradient(135deg, #071b35, #0c447a); }
#aspectos .aspectos-title { color: #fff !important; }
#aspectos .aspectos-subtitle { color: rgba(255,255,255,.64); }
#aspectos .aspecto-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.13) !important; box-shadow: 0 22px 48px rgba(0,0,0,.24) !important; }
#aspectos .aspecto-content h4 { color: #fff; }
#aspectos .aspecto-content p { color: rgba(255,255,255,.65); }

/* Clients */
#clientes { background: #fff !important; }
#clientes .client-card { filter: grayscale(1); opacity: .72; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
#clientes .client-card:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); }

/* Products */
#productos { background: var(--cs-soft) !important; }
#productos .card { overflow: hidden; border: 1px solid var(--cs-line) !important; border-radius: 20px; box-shadow: 0 16px 38px rgba(12,55,98,.08) !important; transition: transform .3s ease, box-shadow .3s ease; }
#productos .row.g-4 > [class*="col-"] { display: flex; }
#productos .card { display: flex; flex-direction: column; width: 100%; }
#productos .card-body { display: flex !important; flex: 1 1 auto; flex-direction: column; }
#productos .card-text { flex: 1 1 auto; }
#productos .card-body > .btn { align-self: flex-start; margin-top: auto !important; }
#productos .card:hover { transform: translateY(-8px); box-shadow: 0 25px 55px rgba(12,55,98,.14) !important; }
#productos .card-img-top {
  display: block; width: calc(100% - 28px);
  margin: 14px 14px 0; padding: 10px;
  object-fit: contain; object-position: center;
  background: linear-gradient(145deg, #fff, #f5f9fd);
  border: 1px solid rgba(11,57,112,.07); border-radius: 15px;
}
#productos .card-body { padding: 1.65rem; }
#productos .card-title { color: var(--cs-blue); font-weight: 800; }

/* Modules */
#modulos { color: #fff; background: #403d43 !important; }
#modulos .modulos-title { color: #fff; }
#modulos .modulos-title span { color: #ff9a3c; }
#modulos .modulo-pill {
  color: #fff; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1);
  box-shadow: none; backdrop-filter: blur(8px); transition: transform .2s ease, background .2s ease;
}
#modulos .modulo-pill:hover { transform: translateX(5px); background: rgba(255,255,255,.13); }
#modulos .modulo-text { color: #fff; }
#modulos .modulos-hero { filter: drop-shadow(0 24px 42px rgba(0,0,0,.35)); }

/* News */
#noticias { background: #fff; }
#noticias .p-4 { position: relative; padding-top: 2.2rem !important; }
#noticias .p-4::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--cs-blue), var(--cs-orange)); }
#noticias h5 { color: var(--cs-blue); font-weight: 800; }
.news-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cs-line); border-radius: 18px; box-shadow: 0 14px 34px rgba(12,55,98,.08); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(12,55,98,.14); }
.news-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg,#061b35,#0b4f8a); }
.news-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease, filter .45s ease; }
.news-card:hover .news-card-media img { transform: scale(1.045); filter: saturate(1.08); }
.news-card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none; background: linear-gradient(transparent,rgba(3,19,38,.58)); }
.news-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: .6rem; color: rgba(255,255,255,.88); background: radial-gradient(circle at 75% 20%,rgba(242,134,35,.38),transparent 28%),linear-gradient(135deg,#061b35,#0b4f8a); }
.news-card-placeholder i { font-size: 2.6rem; }
.news-card-placeholder small { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-card-category { position: absolute; z-index: 2; left: 1rem; bottom: .85rem; padding: .38rem .7rem; color: #fff; background: rgba(242,134,35,.94); border-radius: 999px; font-size: .72rem; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.news-card-body p { line-height: 1.7; }
.news-card-body .btn { align-self: flex-start; margin-top: auto; }
.news-empty { max-width: 680px; margin: 0 auto; padding: 2.5rem; text-align: center; background: var(--cs-soft); border: 1px dashed #b9cde0; border-radius: 18px; }
.news-empty > i { color: var(--cs-orange); font-size: 2rem; margin-bottom: .8rem; }

/* Support */
#soporte { background: linear-gradient(135deg, #eef5fb, #fff7ef) !important; }
#soporte .p-4 { border: 0 !important; padding: 2rem !important; }
#soporte h5 { color: var(--cs-blue); }
#soporte h5 i { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--cs-orange); }

/* Contact panel */
#contacto { color: #fff; background: linear-gradient(135deg, #061b35 0%, #0b3970 72%, #0f548d 100%); }
#contacto .section-heading { color: #fff !important; }
#contacto .section-subheading { color: rgba(255,255,255,.62) !important; }
#contacto form { max-width: 980px; margin: 0 auto; padding: 2rem; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
#contacto .form-control { color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; }
#contacto .form-control::placeholder { color: rgba(255,255,255,.55); }
#contacto .form-control:focus { background: rgba(255,255,255,.13); border-color: #ffab5b; box-shadow: 0 0 0 .25rem rgba(242,134,35,.16); }
#contacto #contactForm .row.align-items-stretch > [class*="col-"] { display: flex; flex-direction: column; }
#contacto #contactForm .form-group-textarea { display: flex; flex: 1 1 auto; height: 100%; }
#contacto #contactForm .form-group-textarea textarea { flex: 1 1 auto; width: 100%; height: 100%; min-height: 146px; resize: vertical; }
#contacto .row.mt-5 .p-4 { color: var(--cs-ink); background: #fff !important; border: 0 !important; text-align: center; }
#contacto .row.mt-5 h6 { color: var(--cs-orange); font-weight: 800; }

.footer { color: rgba(255,255,255,.62); background: #031326; }
.footer a { color: rgba(255,255,255,.78); }

/* WhatsApp floating contact */
.cs-whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 1080;
  display: flex; align-items: center; gap: .75rem;
}
.cs-whatsapp-message {
  position: relative; display: flex; align-items: center; gap: .65rem; min-width: 190px;
  padding: .72rem .9rem; color: var(--cs-ink); background: rgba(255,255,255,.96);
  border: 1px solid rgba(11,57,112,.1); border-radius: 14px;
  box-shadow: 0 14px 38px rgba(6,27,53,.18); backdrop-filter: blur(12px);
  animation: csWhatsAppIn .55s cubic-bezier(.2,.8,.2,1) .7s both;
}
.cs-whatsapp-message::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  background: #fff; transform: rotate(45deg); border-right: 1px solid rgba(11,57,112,.1); border-top: 1px solid rgba(11,57,112,.1);
}
.cs-whatsapp-message div { display: flex; flex-direction: column; line-height: 1.25; }
.cs-whatsapp-message strong { color: var(--cs-blue); font-size: .82rem; }
.cs-whatsapp-message span { color: var(--cs-muted); font-size: .72rem; margin-top: .18rem; }
.cs-whatsapp-status { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 5px rgba(37,211,102,.13); }
.cs-whatsapp-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; color: #fff !important; background: #25d366;
  border: 3px solid #fff; border-radius: 50%; font-size: 2rem; text-decoration: none;
  box-shadow: 0 15px 35px rgba(20,130,70,.32); transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.cs-whatsapp-button::before {
  content: ""; position: absolute; inset: -8px; border: 2px solid rgba(37,211,102,.35); border-radius: 50%;
  animation: csWhatsAppPulse 2.2s ease-out infinite;
}
.cs-whatsapp-button:hover { color: #fff; background: #1fbd5a; transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 42px rgba(20,130,70,.4); }
.cs-whatsapp-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cs-whatsapp-unread {
  position: absolute; top: -3px; right: -3px; display: flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; color: #fff; background: #f04444; border: 2px solid #fff; border-radius: 50%;
  font-size: .65rem; font-weight: 800;
}
@keyframes csWhatsAppIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes csWhatsAppPulse {
  0% { opacity: .8; transform: scale(.9); }
  75%, 100% { opacity: 0; transform: scale(1.28); }
}

@media (max-width: 991.98px) {
  .cs-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .cs-why { padding: 4.75rem 0; }
  .cs-why-grid { grid-template-columns: 1fr; }
  .cs-why-cta { align-items: stretch; flex-direction: column; text-align: center; }
  #contacto form { padding: 1.25rem; }
  .cs-whatsapp { right: 16px; bottom: 16px; }
  .cs-whatsapp-message { display: none; }
  .cs-whatsapp-button { width: 56px; height: 56px; font-size: 1.8rem; }
  #productos .card-img-top { margin: 10px 10px 0; width: calc(100% - 20px); }
  .portfolio-modal .modal-dialog {
    width: 100%; max-width: 100vw; margin: 0 !important;
  }
  .portfolio-modal .modal-content {
    width: 100%; min-height: 100vh; padding: 4.25rem 0 2rem; overflow-x: hidden;
  }
  .portfolio-modal .modal-content > .container {
    width: 100%; max-width: 100%; padding-right: 12px; padding-left: 12px;
  }
  .portfolio-modal .modal-content .row {
    --bs-gutter-x: 0; width: 100%; margin-right: 0; margin-left: 0;
  }
  .portfolio-modal .modal-content .col-lg-8,
  .portfolio-modal .modal-body {
    width: 100%; max-width: 100%; padding-right: 0; padding-left: 0;
  }
  .portfolio-modal .modal-body h2 {
    max-width: 100%; margin-right: auto; margin-left: auto;
    font-size: clamp(1.55rem, 9vw, 2.15rem); line-height: 1.08;
    overflow-wrap: anywhere; word-break: normal;
  }
  .portfolio-modal .modal-body > img.img-fluid {
    display: block; width: 100% !important; max-width: 100% !important;
    height: auto !important; max-height: none !important; margin-right: auto !important; margin-left: auto !important;
    object-fit: contain !important; object-position: center !important;
  }
  .portfolio-modal .close-modal { top: 1rem; right: 1rem; }
  body.modal-open .cs-whatsapp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-whatsapp-message, .cs-whatsapp-button::before { animation: none; }
}

/* Override final del dropdown para navbar colapsado hasta 1199 px */
@media (max-width: 1199.98px) {
  #mainNav .dropdown-menu {
    position: static; display: block; max-height: 0; min-width: 0;
    margin: 0 .35rem; padding: 0 .45rem; overflow: hidden;
    border: 0; border-radius: 13px; box-shadow: none; backdrop-filter: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-6px) scale(1);
    transition: max-height .32s ease, padding .32s ease, opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  #mainNav .dropdown-menu::before { display: none; }
  #mainNav .dropdown-menu.show {
    max-height: 280px; padding: .45rem; opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0) scale(1); background: #f3f8fd;
  }
}

/* Corrección final: ilustraciones de productos completas, sin ningún recorte */
#productos .card > img.card-img-top {
  display: block !important;
  width: calc(100% - 28px) !important;
  height: auto !important;
  margin: 14px 14px 0 !important;
  padding: 8px !important;
  object-fit: contain !important;
  object-position: center center !important;
  max-height: none !important;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  #productos .card > img.card-img-top {
    width: calc(100% - 20px) !important;
    margin: 10px 10px 0 !important;
  }
}
