/* ===============================================================
   TVM | Servicios SEO México — Personalización visual v1.0
   Cargar DESPUÉS de assets/css/style.css.
   No sustituye el CSS de Histudy ni altera estructura/interacciones.
   =============================================================== */
:root {
  --color-primary: #005a8d;
  --color-secondary: #1392d4;
  --color-primary-100: #071c34;
  --color-heading: #071c34;
  --color-body: #46566a;
  --color-darker: #071c34;
  --color-darkest: #071c34;
  --color-light: #f4f9fc;
  --color-lighter: #eef6fb;
  --color-primary-light: #eaf5fb;
  --primary-opacity: rgba(0, 90, 141, .10);
  --secondary-opacity: rgba(19, 146, 212, .12);
  --heading-opacity: rgba(7, 28, 52, .25);
  --gradient-3: linear-gradient(135deg, #005a8d, #1392d4);
  --gradient-7: linear-gradient(135deg, #071c34, #005a8d);
  --gradient-8: linear-gradient(115deg, #071c34 0%, #005a8d 55%, #1392d4 100%);
  --gradient-9: linear-gradient(145deg, #071c34, #1392d4);
  --gradient-6: linear-gradient(110deg, #f4f9fc, #e6f4fa, #f5fbff);
  --gradient-dark: linear-gradient(100deg, rgba(7,28,52,.9), rgba(0,90,141,.7));
  --gradient-dark-2: linear-gradient(100deg, rgba(7,28,52,.48), rgba(19,146,212,.18));
  --tvm-gold: #c6a96b;
  --tvm-green: #8ab928;
}

/* Gradientes históricos de la plantilla que tienen colores fijos. */
.bg-gradient-3 { background: linear-gradient(130deg,#005a8d,#1392d4) !important; }
.bg-gradient-8 { background: var(--gradient-8) !important; }
.bg-gradient-11 { background: linear-gradient(180deg,#e6f4fa 0%,#fff 100%) !important; }
.bg-gradient-14 { background: linear-gradient(140deg,#071c34,#005a8d) !important; }
.bg-gradient-15 { background: linear-gradient(145deg,#005a8d,#1392d4) !important; }
.bg-gradient-16 { background: linear-gradient(145deg,#071c34,#005a8d) !important; }
.bg-gradient-17 { background: linear-gradient(145deg,#1392d4,#005a8d) !important; }

/* Cabecera: se conserva la lógica sticky y el espacio reservado del tema. */
.rbt-header .rbt-header-wrapper.rbt-sticky {
  background-color:#fff;
  box-shadow:0 9px 28px rgba(7,28,52,.10);
}
.rbt-header .mainmenu-nav .mainmenu > li > a:hover,
.rbt-header .mainmenu-nav .mainmenu > li:hover > a {
  color:#005a8d;
}
.rbt-header .hamberger-button { color:#071c34; }

/* Hero: identidad luminosa, sin modificar alturas ni posicionamiento base. */
.rbt-splash-slider {
  background-color:#f5fafe;
  background-image:linear-gradient(115deg,rgba(244,250,254,.96),rgba(226,242,251,.79)),
                   url('../images/splash/bg/bg-2.png');
}
.rbt-splash-slider .inner .title {
  color:#071c34;
  font-weight:800;
  letter-spacing:-.025em;
}
.rbt-splash-slider .inner .description { color:#43546b; }
.rbt-splash-slider .banner-top .banner-badge-top .subtitle { color:#005a8d; }
.rbt-splash-slider .banner-top .rating i { color:#c6a96b; }
.theme-gradient {
  background:linear-gradient(105deg,#005a8d 5%,#1392d4 75%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
/* No se tocan elementos absolutos ni capas ::after del banner. */
.rbt-splash-slider .service-wrapper {
  background:linear-gradient(125deg,rgba(7,28,52,.94),rgba(0,90,141,.89));
  border:1px solid rgba(198,169,107,.28);
  box-shadow:0 18px 45px rgba(7,28,52,.17);
}
.rbt-splash-slider .service-wrapper .service .title,
.rbt-splash-slider .service-wrapper .service p,
.rbt-splash-slider .service-wrapper .service .content { color:#fff; }
.rbt-splash-slider .service-wrapper .service p { color:rgba(255,255,255,.86); }

/* Tarjetas: mejoras visuales sin tocar grid ni tamaños del framework. */
.top-features-box,
.rbt-splash-feature-box,
.rbt-splash-slider .service-wrapper,
.rbt-advance-tab-area .splash-layout-presentation-box {
  border-radius:16px;
}
.top-features-box,
.rbt-splash-feature-box {
  box-shadow:0 10px 28px rgba(7,28,52,.075);
  transition:transform .25s ease, box-shadow .25s ease;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .top-features-box:hover,
  .rbt-splash-feature-box:hover {
    transform:translateY(-5px);
    box-shadow:0 18px 40px rgba(7,28,52,.14);
  }
}
/* Contraste dentro de tarjetas azul oscuro. */
.rbt-splash-feature-box.bg-gradient-3,
.rbt-splash-feature-box.bg-gradient-14,
.rbt-splash-feature-box.bg-color-black,
.rbt-splash-feature-box.card-bg-6 { color:#fff; }
.rbt-splash-feature-box.bg-gradient-3 .description,
.rbt-splash-feature-box.bg-gradient-14 .description,
.rbt-splash-feature-box.bg-color-black .description,
.rbt-splash-feature-box.card-bg-6 .description { color:rgba(255,255,255,.94); }

/* Secciones: contraste y acentos discretos. */
.section-title .subtitle.bg-primary-opacity,
.section-title .subtitle.bg-secondary-opacity,
.section-title .subtitle.bg-pink-opacity {
  color:#005a8d !important;
  background:rgba(19,146,212,.10) !important;
}
.rbt-buy-now-area .title,
.rbt-buy-now-area .subtitle { color:#fff; }
.rbt-buy-now-area .label-text { color:rgba(255,255,255,.86) !important; }

/* CTAs: se limita el verde a los botones de contacto visibles. */
.rbt-buy-now-area .rbt-btn.btn-white,
.popup-mobile-menu .mobile-menu-bottom .rbt-btn {
  background:#8ab928 !important;
  border-color:#8ab928 !important;
  color:#071c34 !important;
  font-weight:750;
  box-shadow:0 7px 18px rgba(60,100,10,.18);
}
.rbt-buy-now-area .rbt-btn.btn-white:hover,
.popup-mobile-menu .mobile-menu-bottom .rbt-btn:hover {
  background:#a0cc3a !important;
  border-color:#a0cc3a !important;
  color:#071c34 !important;
}
.rbt-buy-now-area .rbt-btn.btn-white span,
.popup-mobile-menu .mobile-menu-bottom .rbt-btn span { color:inherit; }

/* Detalles de lujo: líneas sutiles, no rellenos dorados masivos. */
.rbt-splash-coding-quality-area .section-title .title::after {
  content:"";
  display:block;
  width:54px;
  height:3px;
  margin:20px auto 0;
  border-radius:3px;
  background:#c6a96b;
}

/* Accesibilidad: foco visible para navegación por teclado. */
.rbt-header a:focus-visible,
.rbt-btn:focus-visible,
.popup-mobile-menu a:focus-visible {
  outline:3px solid #8ab928;
  outline-offset:3px;
}
@media (prefers-reduced-motion:reduce) {
  .top-features-box,
  .rbt-splash-feature-box { transition:none; }
}
@media (max-width:767px) {
  .rbt-splash-slider .inner .title { font-size:clamp(30px,7vw,38px); }
  .rbt-splash-slider .service-wrapper { border-radius:12px; }
  .top-features-box,
  .rbt-splash-feature-box { border-radius:12px; }
}



/* =======================================
   TVM - CTA COMERCIAL SERVICIOS SEO
   ======================================= */

.tvm-seo-cta {
  background: #ffffff;
  padding: 65px 0;
}

.tvm-seo-cta__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  padding: 65px 55px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(
    135deg,
    #071c34 0%,
    #005a8d 100%
  );
  box-shadow: 0 18px 45px rgba(7, 28, 52, .20);
}

.tvm-seo-cta__inner::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 146, 212, .25),
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.tvm-seo-cta__eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  color: #e3c994;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
}

.tvm-seo-cta h2 {
  max-width: 950px;
  margin: 0 auto 25px;
  color: #ffffff;
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.5px;
}

.tvm-seo-cta h2 span {
  color: #7ed0fa;
}

.tvm-seo-cta__description {
  max-width: 760px;
  margin: 0 auto 32px;
  color: #e3eaf1;
  font-size: 18px;
  line-height: 1.8;
}

.tvm-seo-cta__actions {
  display: flex;
  justify-content: center;
}

.tvm-seo-cta__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 18px 30px;
  border-radius: 9px;
  background: #8ab928;
  color: #071c34;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.tvm-seo-cta__button:hover {
  background: #a6d53a;
  color: #071c34;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.tvm-seo-cta__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.tvm-seo-cta__button span {
  font-size: 22px;
  line-height: 1;
}

.tvm-seo-cta__note {
  margin: 25px 0 0;
  color: #cad8e5;
  font-size: 14px;
  line-height: 1.7;
}

.tvm-seo-cta__note span {
  margin: 0 8px;
  color: #e3c994;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .tvm-seo-cta {
    padding: 35px 0;
  }

  .tvm-seo-cta__inner {
    padding: 42px 22px;
    border-radius: 15px;
  }

  .tvm-seo-cta__eyebrow {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .tvm-seo-cta h2 {
    font-size: 27px;
  }

  .tvm-seo-cta__description {
    font-size: 16px;
    line-height: 1.65;
  }

  .tvm-seo-cta__button {
    width: 100%;
    padding: 16px 15px;
    font-size: 13px;
  }

  .tvm-seo-cta__note {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvm-seo-cta__button {
    transition: none;
  }

  .tvm-seo-cta__button:hover {
    transform: none;
  }
}


/* ==========================================
   BOTÓN FLOTANTE WHATSAPP TVM
   PC: inferior izquierda
   MÓVIL: inferior derecha
========================================== */

.tvm-whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.tvm-whatsapp-float:hover {
  background: #1ebe5d;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.tvm-whatsapp-float__icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.tvm-whatsapp-float__text {
  white-space: nowrap;
  color: #ffffff;
}

/* Efecto sutil de pulso */
.tvm-whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  z-index: -1;
  background: rgba(37, 211, 102, 0.35);
  animation: tvmWhatsappPulse 2s infinite;
}

@keyframes tvmWhatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

/* MÓVIL: mover a esquina inferior derecha */
@media (max-width: 767px) {
  .tvm-whatsapp-float {
    left: auto;
    right: 15px;
    bottom: 15px;
    padding: 10px 16px 10px 10px;
    font-size: 13px;
    max-width: calc(100% - 30px);
  }

  .tvm-whatsapp-float__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 24px;
  }

  .tvm-whatsapp-float__text {
    font-size: 13px;
  }
}
