/* ==============================
   COMPONENTES GLOBALES CENTURY
   Navbar | Mega menú | CTA | Footer
============================== */

/* ==============================
   NAVBAR GLOBAL
============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(24px, 4vw, 70px);
  background: rgba(5, 8, 12, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

/* Para productos.html, que usa header-container */
.site-header .header-container {
  width: min(1320px, calc(100% - 80px));
  height: auto;
  margin: 0 auto;
  padding: 0;
  display: contents;
}

/* Compatibilidad para index.html y nosotros.html */
.brand,
.brand-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img,
.brand-logo img {
  width: 190px;
  max-width: 190px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.5vw, 26px);
}

.main-nav > a,
.main-nav .nav-link-mega {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.25s ease;
}

.main-nav > a:hover,
.main-nav .nav-link-mega:hover,
.main-nav > a.active,
.main-nav .nav-link-mega.active {
  color: var(--red);
}

.main-nav > a::after,
.main-nav .nav-link-mega::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  content: "";
  transition: transform 0.25s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.main-nav .nav-link-mega:hover::after,
.main-nav .nav-link-mega.active::after {
  transform: scaleX(1);
}

.nav-link-mega i {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.nav-mega-item:hover .nav-link-mega i {
  transform: rotate(180deg);
}

/* Compatibilidad para index/productos y nosotros */
.header-cta,
.quote-btn {
  flex: 0 0 auto;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border-radius: 6px;
  background: var(--red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(215, 38, 30, 0.32);
  transition: 0.25s ease;
}

.header-cta:hover,
.quote-btn:hover {
  background: var(--red-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==============================
   MEGA MENÚ PRODUCTOS
============================== */

.nav-mega-item {
  position: relative;
  display: flex;
  align-items: center;
}

.mega-menu {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 999;
  width: min(1180px, calc(100% - 48px));
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: 0.25s ease;
}

.nav-mega-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(215, 38, 30, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(13, 18, 24, 0.98), rgba(5, 8, 12, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.mega-menu-complete {
  max-height: 70vh;
  overflow-y: auto;
}

.mega-menu-complete::-webkit-scrollbar {
  width: 8px;
}

.mega-menu-complete::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.mega-menu-complete::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 20px;
}

.mega-column {
  min-height: auto;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-column h4 {
  position: relative;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.mega-column h4::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  background: var(--red);
  content: "";
}

.mega-column a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  transition: 0.25s ease;
}

.mega-column a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.mega-highlight {
  background:
    radial-gradient(circle at top right, rgba(215, 38, 30, 0.22), transparent 45%),
    rgba(215, 38, 30, 0.08);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(215, 38, 30, 0.22);
}

.mega-cta {
  margin-top: 18px;
  padding: 14px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.06);
}

.mega-cta span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.mega-cta strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
}

/* ==============================
   CTA ROJO GLOBAL
============================== */

.solution-cta {
  display: grid;
  grid-template-columns: 1.35fr 1.4fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 70px;
  background: linear-gradient(90deg, #8e0f0c, #bf1d18 45%, #9f1511);
  color: #ffffff;
}

.solution-text h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.solution-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.solution-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.solution-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.solution-benefits i {
  font-size: 30px;
}

.solution-whatsapp {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border-radius: 6px;
  background: #ff2d27;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.solution-whatsapp:hover {
  background: #ffffff;
  color: var(--red);
  transform: translateY(-3px);
}

/* ==============================
   FOOTER GLOBAL
============================== */

.site-footer {
  display: block;
  width: 100%;
  background: #05080c;
  color: #ffffff;
  padding: 54px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-grid {
  width: min(1320px, calc(100% - 80px));
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.25fr 1.55fr 0.9fr 1fr 1.25fr;
  gap: 52px;
  align-items: start;
}

.site-footer .footer-brand,
.site-footer .footer-col {
  min-width: 0;
}

.site-footer .footer-brand img {
  width: 220px;
  max-width: 220px;
  height: auto;
  display: block;
  margin-bottom: 26px;
}

.site-footer .footer-brand p,
.site-footer .footer-col p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer .footer-col h4 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer .footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: 0.25s ease;
}

.site-footer .footer-col a:hover {
  color: var(--red);
  transform: translateX(4px);
}

.site-footer .footer-col p i {
  margin-right: 8px;
  color: var(--red);
  font-size: 17px;
}

.site-footer .footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.site-footer .footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  text-decoration: none;
  transition: 0.25s ease;
}

.site-footer .footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  transform: translateY(-3px);
}

.site-footer .footer-form {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

.site-footer .footer-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px 0 0 5px;
  background: #111821;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.site-footer .footer-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.site-footer .footer-form button {
  width: 54px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 5px 5px 0;
  background: var(--red);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  transition: 0.25s ease;
}

.site-footer .footer-form button:hover {
  background: var(--red-dark);
}

.site-footer .footer-bottom {
  display: block;
  width: min(1320px, calc(100% - 80px));
  max-width: 1320px;
  margin: 42px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  clear: both;
}

.site-footer .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.5;
}

/* ==============================
   RESPONSIVE GLOBAL
============================== */

@media (max-width: 1180px) {
  .header-container {
    width: min(100% - 44px, 1320px);
    gap: 18px;
  }

  .main-nav {
    gap: 18px;
  }

  .header-cta {
    padding: 0 18px;
  }

  .mega-menu-content {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .solution-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .solution-benefits {
    flex-wrap: wrap;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
}

/* =========================================================
   PROTECTOR DE PANTALLA PARA EXPO
========================================================= */

.expo-screensaver[hidden] {
  display: none !important;
}

body.expo-screensaver-active {
  overflow: hidden;
}

.expo-screensaver {
  position: fixed;
  z-index: 99999;
  inset: 0;
  overflow: hidden;
  background: #05080c;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
  cursor: pointer;
  isolation: isolate;
}

.expo-screensaver.is-visible {
  opacity: 1;
  visibility: visible;
}

.expo-screensaver-slides,
.expo-screensaver-slide {
  position: absolute;
  inset: 0;
}

.expo-screensaver-slide {
  background-color: #05080c;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 850ms ease, transform 7s linear;
}

.expo-screensaver-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.expo-screensaver-slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 9, 0.98) 0%, rgba(3, 6, 9, 0.88) 40%, rgba(3, 6, 9, 0.18) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.55));
  content: "";
}

.expo-screensaver-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.expo-screensaver-slide-contain {
  background-color: #05080c;
}

.expo-screensaver-slide-contain .expo-screensaver-slide-image {
  object-fit: contain;
  object-position: 82% center;
}

.expo-screensaver-slide-contain::after {
  background:
    linear-gradient(90deg, #05080c 0%, rgba(5, 8, 12, 0.97) 38%, rgba(5, 8, 12, 0.42) 72%, rgba(5, 8, 12, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
}

.expo-screensaver-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(28px, 8vw, 150px);
  width: min(760px, calc(100% - 56px));
  transform: translateY(-52%);
}

.expo-screensaver-logo {
  display: block;
  width: clamp(180px, 18vw, 285px);
  height: auto;
  margin-bottom: clamp(22px, 3.5vh, 42px);
}

.expo-screensaver-line {
  width: clamp(58px, 6vw, 104px);
  height: 6px;
  margin-bottom: 22px;
  background: #e32620;
}

.expo-screensaver-eyebrow {
  margin: 0 0 12px;
  color: #ef2b23;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.expo-screensaver-title {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6.2vw, 96px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.expo-screensaver-description {
  max-width: 680px;
  margin: clamp(20px, 3vh, 34px) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.45;
}

.expo-screensaver-counter {
  position: absolute;
  z-index: 4;
  top: clamp(28px, 5vh, 58px);
  right: clamp(28px, 5vw, 82px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.expo-screensaver-dots {
  position: absolute;
  z-index: 4;
  right: clamp(28px, 5vw, 82px);
  bottom: clamp(78px, 9vh, 112px);
  display: flex;
  gap: 9px;
}

.expo-screensaver-dot {
  width: 34px;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.expo-screensaver-dot::after {
  display: block;
  width: 100%;
  height: 100%;
  background: #e32620;
  transform: scaleX(0);
  transform-origin: left;
  content: "";
}

.expo-screensaver-dot.is-active::after {
  animation: century-screensaver-progress 7s linear forwards;
}

.expo-screensaver-touch {
  position: absolute;
  z-index: 4;
  right: clamp(28px, 5vw, 82px);
  bottom: clamp(28px, 4vh, 48px);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.expo-screensaver-touch i {
  color: #ef2b23;
  font-size: 28px;
  animation: century-screensaver-touch 1.8s ease-in-out infinite;
}

@keyframes century-screensaver-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes century-screensaver-touch {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 760px) {
  .expo-screensaver-slide::after,
  .expo-screensaver-slide-contain::after {
    background:
      linear-gradient(180deg, rgba(3, 6, 9, 0.35) 0%, rgba(3, 6, 9, 0.9) 55%, #05080c 100%);
  }

  .expo-screensaver-slide-contain {
    background-color: #05080c;
  }

  .expo-screensaver-slide-contain .expo-screensaver-slide-image {
    object-fit: contain;
    object-position: center top;
    opacity: 0.78;
  }

  .expo-screensaver-content {
    top: auto;
    bottom: 126px;
    left: 24px;
    width: calc(100% - 48px);
    transform: none;
  }

  .expo-screensaver-logo {
    width: min(180px, 52vw);
    margin-bottom: 22px;
  }

  .expo-screensaver-line {
    height: 4px;
    margin-bottom: 16px;
  }

  .expo-screensaver-title {
    font-size: clamp(38px, 11vw, 58px);
  }

  .expo-screensaver-description {
    margin-top: 16px;
    font-size: 16px;
  }

  .expo-screensaver-counter {
    top: 24px;
    right: 22px;
  }

  .expo-screensaver-dots {
    right: auto;
    bottom: 82px;
    left: 24px;
  }

  .expo-screensaver-dot {
    width: 26px;
  }

  .expo-screensaver-touch {
    right: auto;
    bottom: 24px;
    left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expo-screensaver,
  .expo-screensaver-slide {
    transition: none;
  }

  .expo-screensaver-touch i,
  .expo-screensaver-dot.is-active::after {
    animation: none;
  }

  .expo-screensaver-dot.is-active::after {
    transform: scaleX(1);
  }
}

/* =========================================================
   INDICADOR DEL RECORRIDO AUTOMATICO PARA EXPO
========================================================= */

.century-auto-tour-status[hidden] {
  display: none !important;
}

.century-auto-tour-shield[hidden] {
  display: none !important;
}

.century-auto-tour-shield {
  position: fixed;
  z-index: 1890;
  inset: 0;
  background: transparent;
  cursor: pointer;
}

.century-auto-tour-status {
  position: fixed;
  z-index: 1900;
  bottom: 24px;
  left: 24px;
  display: flex;
  width: min(430px, calc(100vw - 48px));
  min-height: 92px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(5, 8, 12, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 280ms ease, transform 280ms ease;
  backdrop-filter: blur(14px);
}

body.century-auto-tour-active .century-auto-tour-status {
  opacity: 1;
  transform: translateY(0);
}

.century-auto-tour-status-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 50%;
  background: #e32620;
  box-shadow: 0 10px 24px rgba(227, 38, 32, 0.28);
}

.century-auto-tour-status-icon i {
  font-size: 28px;
}

.century-auto-tour-status-copy {
  min-width: 0;
  flex: 1;
}

.century-auto-tour-status-copy > span,
.century-auto-tour-status-copy > strong,
.century-auto-tour-status-copy > small {
  display: block;
}

.century-auto-tour-status-copy > span {
  margin-bottom: 2px;
  color: #ef2b23;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.century-auto-tour-status-copy > strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.century-auto-tour-status-copy > small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.century-auto-tour-progress {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.century-auto-tour-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e32620;
  transition: width 420ms ease;
}

body.century-auto-tour-active .century-chat {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  .century-auto-tour-status {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    min-height: 82px;
    padding: 13px 14px;
    border-radius: 15px;
  }

  .century-auto-tour-status-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .century-auto-tour-status-icon i {
    font-size: 24px;
  }

  .century-auto-tour-status-copy > strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .century-auto-tour-status,
  .century-auto-tour-progress span {
    transition: none;
  }
}

/* ==============================
   ASISTENTE VIRTUAL CENTURY
============================== */

.century-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1800;
  font-family: Arial, Helvetica, sans-serif;
}

.century-chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #e1261c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(225, 38, 28, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}

.century-chat-toggle:hover,
.century-chat-toggle:focus-visible {
  transform: translateY(-2px);
  background: #bd1c15;
}

.century-chat-toggle i {
  font-size: 25px;
}

.century-chat.is-open .century-chat-toggle span {
  display: none;
}

.century-chat.is-open .century-chat-toggle {
  width: 56px;
  padding: 0;
}

.century-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 32px));
  height: min(610px, calc(100vh - 120px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #f4f5f7;
  color: #101318;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.century-chat-panel[hidden] {
  display: none;
}

.century-chat-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  background: linear-gradient(135deg, #090c10, #211012);
  color: #ffffff;
}

.century-chat-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e1261c;
  font-size: 24px;
}

.century-chat-header strong,
.century-chat-header span {
  display: block;
}

.century-chat-header strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.century-chat-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.century-chat-header span i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #25d366;
}

.century-chat-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
}

.century-chat-close:hover,
.century-chat-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.century-chat-messages {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(245, 246, 248, 0.96)),
    radial-gradient(circle at top right, rgba(225, 38, 28, 0.14), transparent 38%);
}

.century-chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 15px 15px 15px 4px;
  background: #ffffff;
  color: #242932;
  font-size: 14px;
  line-height: 1.48;
  box-shadow: 0 4px 16px rgba(14, 18, 24, 0.08);
}

.century-chat-message-user {
  align-self: flex-end;
  border-radius: 15px 15px 4px 15px;
  background: #e1261c;
  color: #ffffff;
}

.century-chat-controls {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid #dfe2e7;
  background: #ffffff;
}

.century-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.century-chat-form input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9ced6;
  border-radius: 12px;
  background: #f7f8fa;
  color: #11151a;
  outline: none;
}

.century-chat-form input:focus {
  border-color: #e1261c;
  box-shadow: 0 0 0 3px rgba(225, 38, 28, 0.12);
}

.century-chat-form button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #e1261c;
  color: #ffffff;
  font-size: 22px;
}

.century-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.century-chat-options button {
  padding: 8px 11px;
  border: 1px solid #cfd3da;
  border-radius: 999px;
  background: #ffffff;
  color: #20252d;
  font-size: 12px;
  font-weight: 700;
}

.century-chat-options button:hover,
.century-chat-options button:focus-visible {
  border-color: #e1261c;
  background: #fff2f1;
  color: #b61d16;
}

.century-chat-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.century-chat-summary {
  padding: 12px 13px;
  border: 1px solid #e1e4e9;
  border-radius: 13px;
  background: #f7f8fa;
}

.century-chat-summary strong {
  display: block;
  margin-bottom: 7px;
  color: #11151a;
  font-size: 13px;
}

.century-chat-summary p {
  margin: 3px 0;
  color: #505761;
  font-size: 12px;
  line-height: 1.4;
}

.century-chat-summary p span {
  color: #20252d;
  font-weight: 700;
}

.century-chat-whatsapp {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: #1faf55;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.century-chat-whatsapp:hover,
.century-chat-whatsapp:focus-visible {
  background: #168c43;
  color: #ffffff;
}

.century-chat-whatsapp i {
  font-size: 20px;
}

.century-chat-controls small {
  color: #69717c;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.century-chat-restart {
  padding: 2px;
  border: 0;
  background: transparent;
  color: #b61d16;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .century-chat {
    right: 12px;
    bottom: 12px;
  }

  .century-chat-toggle {
    width: 58px;
    padding: 0;
  }

  .century-chat-toggle span {
    display: none;
  }

  .century-chat-panel {
    right: 0;
    bottom: 70px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100vh - 96px));
    border-radius: 18px;
  }
}
@media (max-width: 860px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr auto;
    padding: 18px 22px;
  }

  .site-header .header-container {
    display: contents;
  }
  .header-container {
    height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo img {
    width: 130px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }

  .main-nav > a.active::after,
  .main-nav .nav-link-mega.active::after {
    bottom: -8px;
  }

  .header-cta {
    width: 100%;
  }

  .mega-menu {
    position: static;
    width: 100%;
    padding-top: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .nav-mega-item:hover .mega-menu {
    display: block;
    transform: none;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .solution-cta {
    padding: 34px 22px;
  }

  .site-footer {
    padding: 42px 0 22px;
  }

  .site-footer .footer-grid,
  .site-footer .footer-bottom {
    width: min(100% - 36px, 1320px);
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer .footer-brand img {
    width: 175px;
    max-width: 175px;
  }
}

/* Evita que el navbar cambie de altura entre páginas */
.site-header {
  min-height: 92px;
}

.site-header .brand,
.site-header .brand-logo {
  width: 240px;
}

.site-header .brand img,
.site-header .brand-logo img {
  width: 240px;
  max-width: 240px;
  height: auto;
}

.main-nav {
  min-height: 64px;
}

.header-cta,
.quote-btn {
  min-width: 220px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 18px;
  }

  .site-header .brand,
  .site-header .brand-logo {
    width: min(200px, calc(100vw - 92px));
  }

  .site-header .brand img,
  .site-header .brand-logo img {
    width: 100%;
    max-width: 100%;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .main-nav,
  .header-cta,
  .quote-btn {
    display: none;
  }

  .site-header.nav-open .main-nav {
    grid-column: 1 / -1;
    display: grid;
    min-height: auto;
  }

  .site-header.nav-open .header-cta,
  .site-header.nav-open .quote-btn {
    grid-column: 1 / -1;
    display: inline-flex;
    width: 100%;
    min-width: 0;
  }
}
