/* ============================
   ESTILOS PARA PREHEADER COOKIES
   ============================ 
body.preheader-visible {
    transition: margin-top 0.4s ease-in-out;
}

#preheader-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

#preheader-banner.visible {
    transform: translateY(0);
}  */

/* 
============================
HEADER STICKY (FIXED) - Conserva ancho y alto   
============================   
*/ 
.header-negro {  
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  margin: 0;
  padding: 0 20px;
  background-color: #000;
  color: white;
  font-family: Arial, sans-serif;
  z-index: 1000;
  box-sizing: border-box;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid white;
}
.header-negro a {
  display: flex;
  align-items: center;
}
.header-negro .logo {
  max-height: 48px;
}
.header-negro span {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 20px;
  border-bottom: 4px solid #0087ff;
  padding-bottom: 2px;
  text-decoration: none;
}

/* Estilos para el enlace del span - SIN SUBRAYADO */
.header-negro span a {
  color: white;
  text-decoration: none; /* SIN subrayado */
  transition: color 0.3s ease;
}

/* Efecto hover - cambia a azul celeste */
.header-negro span a:hover {
  color: #87CEEB; /* Azul celeste */
}

/* Mantener el estilo en estados activos y visitados
.header-negro span a:visited,
.header-negro span a:active {
  color: white;
}
.header-negro span a:hover:visited,
.header-negro span a:hover:active {
  color: #87CEEB;} */ /* Azul celeste */

@media only screen and (max-width: 767px) {
  .header-negro {
    width: 100%; /* Mejor que 100vw */
    padding: 0 15px; /* Reduce padding si es necesario */
    margin-bottom: 120px;
  }
  .header-negro span {
    font-size: 1.2rem;
    margin-left: 5px;
    margin-right: 5px;
    text-align: right;
    display: inline-block; /* Esto limita el border al ancho del texto */
    border-bottom: 2px solid #0087ff;
    padding-bottom: 1px; /* Opcional: espacio entre texto y línea */
  }
  .header-negro .logo {
    margin-left: 1px !important;
    margin-right: 25px !important;
    max-width: 250px !important; /* Aumenté de 250px a 280px */
    max-height: 45px !important; /* Agregué altura máxima */
    width: auto !important; /* Mantiene proporciones */
    height: auto !important; /* Mantiene proporciones */
  }
}
 /* **** se comenta este css provisionalmente para ver como funciona el anterior header negro span ****
 .header-negro span {
    font-size: 1.2rem; 
    margin-left: 5px;
    margin-right: 0px;
    text-align: right;
    border-bottom: 2px solid #0087ff;
 } */
}
/*
============================
imagen de muestra
============================
*/
.imagen-muestra {
  width: 100vw;
  max-width: 800px;
  margin-left: 20px; 
  border-radius: 8px;
  transition: all 0.3s ease;
}
/* 
============================
Ajuste del margen superior del body
============================
*/
body {
  margin-top: 80px;
  margin-left: 200px;
  margin-bottom: 0px;
  margin-right: 200px;
  font-family: Arial, sans-serif;
  background-color: white;
}
/*.logo {
  width: 100%;
  max-width: 200px;
  display: block;
  margin-left: 20px; 
  border-radius: 5px;
  transition: all 0.3s ease;
} */
.logo-T {
  width: 100%;
  max-width: 200px;
  display: block;
  margin-right: 0px;
  margin-left: 10px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 6px;
}
body.dark-mode .logo-T {
  background-color: white !important;
}
/* @media only screen and (max-width: 767px) {
  .logo {
    margin-left: 1px !important;
    margin-right: 55px !important;
    max-width: 250px !important;
  } /*
}
/*
============================
Boton modo oscuro (estilo actualizado)
============================
*/
.boton-modo-oscuro {
  position: fixed;
  top: 90px;
  left: 10px;
  z-index: 2000;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  font-weight: bold;
}
.boton-modo-oscuro:hover {
  background-color: #1a252f;
  transform: scale(1.01);
}
body.dark-mode .boton-modo-oscuro {
  background-color: #3a4a5f;
}
body.dark-mode .boton-modo-oscuro:hover {
  background-color: #0087d7;
}
@media only screen and (max-width: 767px) {
  .boton-modo-oscuro {
    bottom: 30px;
    top: auto;
    left: 10px;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    border: 1px solid #fff;
    text-indent: -9999px;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .boton-modo-oscuro::before {
    content: "🌙";
    text-indent: 0;
    font-size: 22px;
    position: static;
  }
  body.dark-mode .boton-modo-oscuro::before {
    content: "☀️";
  }
}
/*
============================
BOTONES FLOTANTES
============================
*/

/*
============================
MODO OSCURO
============================
*/
body.dark-mode {
  background-color: #000000;
}
body.dark-mode h1 {
  color: #ffffff; 
}
/* ============================
   Estilos originales del botón y contenedor 
============================ */
.custom-button,
.custom-button-2 {
  display: inline-block;
  border-radius: 8px;
  background-color: #000;
  color: #fff !important;
  font-size: 20px;
  padding: 5px 10px;
  text-decoration: none;
  margin: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 1px solid transparent;
}
.custom-button:link,
.custom-button-2:link {
  color: #fff !important;
}
.custom-button:visited,
.custom-button-2:visited {
  color: #fff !important;
}
.custom-button:hover,
.custom-button-2:hover {
  background: #cc0028;
  border-color: white;
}
.custom-button:active,
.custom-button-2:active {
  background-color: #cc0028;
  color: black;
  box-shadow: none;
  transform: translateY(2px);
  border-color: white;
}
.title-shadow {
  color: black;
  text-shadow: 2px 2px 4px white, -2px -2px 4px white, 2px -2px 4px white, -2px 2px 4px white;
  font-size: 26px;
  font-weight: bold;
}
.custom-container {
  margin-left: 1px;
  margin-right: 1px;
  margin-top: 30px;
  margin-bottom: 0px;
  background: #00aaff;
  border: 2px solid #565f62;
  padding: 5px 5px 10px 5px;
  border-radius: 4px;
  text-align: center;
}
/* 
============================
FOOTER DEL SITIO - Alineado izquierda/derecha
============================
*/
#contador-visitas {
  margin-right: 10px;
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 20px;
  font-weight: light;
  color: #03a9f5;
  background: #000;
  padding: 4px 0px;
  border-radius: 0px;
  border: 1px solid #fff;
  box-shadow: 0 0 0px rgba(0, 0, 0, .0) inset, 0 0 0px rgba(0, 0, 0, .0);
  letter-spacing: 2px;
  text-shadow: 0 0 2px #03a9f5;
  min-width: 100px;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
}
.footer-counter {
  position: static;
  font-size: 1.5rem;
  color: #fff;
  text-align: right;
  padding: 0;
  margin: 0 0px;
  flex: 1;
}
.footer-site {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #000;
  color: white;
  padding: 3px 20px;
  font-size: 1.1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #fff;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 50px;
  position: relative;
  z-index: 1000;
}
@media (max-width: 767px) {
  .footer-site {
    width: 100vw;
    margin-left: calc(-51.33vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0px;
    font-size: 0.95rem;
    padding: 10px 15px;
    align-items: center;
    background-color: #000;
  }
/* body {
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 0px;
    margin-bottom: 0px;
  } */
  .footer-counter {
    padding-left: 10px;
    font-size: 1.6rem;
    align-items: center;
    text-align: center;
  }
  #contador-visitas {
    font-size: 24px;
    padding: 4px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  .footer-left {
    font-size: 1.1rem;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    font-size: 1.5rem;
    align-items: center;
    text-align: center;
  }
}
@keyframes subtlePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.footer-right a {
  animation: subtlePulse 4s infinite ease-in-out;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
  font-weight: bold;
}
.footer-right a:hover {
  transform: scale(1.035);
  color: #87CEEB;
  animation: none;
}

@media only screen and (max-width: 767px) {
  .footer-right {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 0px;
    
  }
}
/*
============================
ENLACE PIE DE PÁGINA
============================
*/
.enlace-blanco {
  font-size: 1.3rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  align-items: center;
  text-align: center;
}
.enlace-blanco:hover {
  color: #b3d9ff;
  text-decoration: underline;
  cursor: url('/formatos-juridicos/utilidades/banners/iconos/Gavel-toogle-button-red-scroll-2.png'), pointer;
}

/*
============================
MARCA REGISTRO
============================
*/
.marca-reg {
  font-size: 0.8em;
  color: #000;
  background-color: #c1e7f7;
  border-radius: 50%;
  padding: 1px 3px;
  margin-left: 2px;
}

@media only screen and (max-width: 767px) {
  .marca-reg {
    font-size: 0.7em;
    padding: 0.3px 2px;
    margin-left: 1px;
    border-radius: 50%;
  }
}
#scrollTopBtn {
  position: fixed;
  bottom: 5px;
  right: 16px;
  width: 54px;
  height: 54px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s ease-out;
}
#scrollTopBtn:hover {
  background-color: #005a89;
}
body.dark-mode #scrollTopBtn {
  background-color: #8d9099;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
body.dark-mode #scrollTopBtn:hover {
  background-color: #00aaff;
  transform: scale(1.01);
}
@media only screen and (max-width: 767px) {
  #scrollTopBtn {
    bottom: 25px;
    width: 53px;
    height: 53px;
    border-radius: 50px;
    border: 1px solid #0087ff;
    font-size: 1.6rem;
    right: 12px;
  }
}
body.dark-mode div[style*="text-align: justify"] {
  color: white;
}
/* ====================================
   AJUSTES RESPONSIVOS PARA MOVIL
==================================== */
@media only screen and (max-width: 767px) {
  body {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .imagen-muestra {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    border-radius: 4px;
  }
  h1 {
    display: block;
    text-align: center;
    font-size: 1.4rem;
  }
  .logo-T {
    display: block;
    margin: 10px auto;
    max-width: 160px;
  }
  .landing-asesoria p,
  .landing-asesoria ul {
    font-size: 1rem;
  }
  .landing-asesoria ul {
    padding-left: 20px;
  }
  .custom-container .title-shadow {
    font-size: 1.4rem;
    font-weight: bold;
  }
  .custom-button,
  .custom-button-2 {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 8px 12px;
    margin-top: 10px;
  }
  .custom-button:link,
  .custom-button-2:link {
    color: #fff !important;
  }
  .custom-button:visited,
  .custom-button-2:visited {
    color: #fff !important;
  }
  .custom-button:hover {
    background: #25a135;
    border-color: white;
    border: 2px solid #fff;
  }
  .custom-button:active {
    background-color: #25a135;
    color: black;
    box-shadow: none;
    transform: translateY(2px);
    border-color: white;
    border: 2px solid #fff;
  }

  .custom-button-2:hover {
    background: #cc0028;
    border-color: white;
    border: 2px solid #fff;
  }
  .custom-button-2:active {
    background-color: #cc0028;
    color: black;
    box-shadow: none;
    transform: translateY(2px);
    border-color: white;
    border: 2px solid #fff;
  }
 
  .fuente-y-boton h3 {
    font-size: 1rem;
    text-align: center;
  }
  body.dark-mode .fuente-y-boton h3 {
    color: white !important;
  }
  body.dark-mode .fuente-y-boton a {
    color: #b3d9ff !important;
    text-decoration: underline;
  }
  body.dark-mode .fuente-y-boton a:hover {
    color: #d4f1ff !important;
  }
  
}
.imagen-muestra {
  display: block;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
}
/* ============================================
   Textos de la sección landing-asesoria
============================================ */
.landing-asesoria p {
  text-align: justify;
  font-size: 1.1rem;
  margin-bottom: 1em;
  margin-left: 2px;
  margin-right: 2px;
  line-height: 1.4;
}
.landing-asesoria ul {
  margin: 20px 0;
  font-size: 1.05rem;
  padding-left: 20px;
  margin-left: 2px;
  margin-right: 2px;
}
.landing-asesoria ul li {
  margin-bottom: 0.5em;
}
body.dark-mode .landing-asesoria p,
body.dark-mode .landing-asesoria ul,
body.dark-mode .landing-asesoria ul li {
  color: #ffffff;
}
/* ============================================
   Textos de la sección landing-asesoria-2
============================================ */
.landing-asesoria-2 p {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1em;
  color: #333;
}
.landing-asesoria-2 a {
  color: #005a89;
  text-decoration: underline;
}

/* Animación de vibración horizontal con expansión para los enlaces de teléfono al hacer hover */
.landing-asesoria-2 a:hover {
  animation: vibrarYExpandir 0.4s ease-in-out infinite;
  display: inline-block;
}

/* Definición de la animación - vibración horizontal con expansión */
@keyframes vibrarYExpandir {
  0% {
    transform: translateX(0) scale(1);
  }
  25% {
    transform: translateX(-3px) scale(1.03);
  }
  50% {
    transform: translateX(3px) scale(1.05);
  }
  75% {
    transform: translateX(-2px) scale(1.02);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

body.dark-mode .landing-asesoria-2 p {
  color: white;
}
body.dark-mode .landing-asesoria-2 a {
  color: #00aaff !important;
  text-decoration: underline;
}
body.dark-mode .landing-asesoria-2 a:hover {
  color: #b3d9ff !important;
}
/* Estilos para documentos convertidos de DOCX a HTML */
.documento-contrato {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
.documento-contrato h2, 
.documento-contrato h3 {
  text-align: center;
  color: #333;
}
.documento-contrato p {
  margin: 10px 0;
}
.descargar-contrato {
  display: block;
  text-align: center;
  margin: 20px 0;
}
.descargar-contrato a {
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.descargar-contrato a:hover {
  background-color: #1a252f;
}
.documento-contrato ul,
.documento-contrato ol {
  margin: 15px 0;
  padding-left: 40px;
}
.documento-contrato table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
.documento-contrato table, 
.documento-contrato th, 
.documento-contrato td {
  border: 1px solid #ddd;
}
.documento-contrato th, 
.documento-contrato td {
  padding: 8px;
  text-align: left;
}
.documento-contrato th {
  background-color: #f2f2f2;
}
@media (prefers-color-scheme: dark) {
  .documento-contrato {
    background: #333;
    color: #fff;
    border-color: #555;
  }
  .documento-contrato th {
    background-color: #444;
  }
}
/* Banners laterales - Versión scroll */
.banner-side {
  position: absolute;
  top: 150px;
  width: 130px;
  z-index: 500;
}
.banner-left {
  left: 30px;
}
.banner-right {
  right: 30px;
}
.banner {
  width: 130px;
  height: 500px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-bottom: 40px;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner a {
  display: block;
  width: 100%;
  height: 100%;
}
.banner:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
body.dark-mode .banner {
  background-color: #333;
  border-color: #555;
}
@media only screen and (max-width: 767px) {
  .banner-side {
    display: none;
  }
}
.main-container {
  position: relative;
  margin-left: 180px;
  margin-right: 180px;
}
/* === BANNER CENTRAL: Imagen diferente en móvil y escritorio === */
.banner-central {
  width: 100%;
  max-width: 800px;
  margin: 100px auto 0px;
  display: flex;
  justify-content: center;
  transition: transform 0.5s ease;
  align-items: center;
  gap: 0;
}
.banner-central:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.imagen-publicidad {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 3px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5); 
  margin: 0;
}
.imagen-publicidad.movil {
  display: none;
}
@media only screen and (max-width: 767px) {
  .banner-central {
    margin-top: 5px
    margin-bottom: 5px;
  }
  .imagen-publicidad.escritorio {
    display: none;
  }
  .imagen-publicidad.movil {
    display: block;
  }
}
.banner-central-inferior {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0px;
  display: flex;
  justify-content: center;
  transition: transform 0.5s ease;
  align-items: center;
  gap: 0;
}
.banner-central-inferior:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.imagen-publicidad-2 {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 3px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}
.imagen-publicidad-2.movil {
  display: none;
}
@media only screen and (max-width: 767px) {
  .banner-central-inferior {
    margin: 20px auto 10px; /* Mantener márgenes consistentes, no display:none */
  }
  .imagen-publicidad-2.escritorio {
    display: none;
  }
  .imagen-publicidad-2.movil {
    display: block;
  }
}
.space-solo-movil {
  display: none;
}
@media only screen and (max-width: 767px) {
  .space-solo-movil {
    display: block;
    height: 50px;
    width: 100%;
    background: transparent;
  }
}
.firma-documento {
  text-align: right;
  margin-top: 40px;
  padding-right: 20px;
  font-style: italic;
}
/* === ICONOS FLOTANTES DE REDES SOCIALES (solo escritorio) === */
.floating-social-icons {
  position: fixed;
  bottom: 50px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 997;
  display: flex;
}
.social-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #000;
  border: 1px solid #d7d2cf;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 12px;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.social-icon i {
  pointer-events: none;
}
.social-icon.youtube:hover { background-color: #ff0000; }
.social-icon.facebook:hover { background-color: #1877f2; }
.social-icon.linkedin:hover { background-color: #0077b5; }
.social-icon.tiktok:hover { background-color: #000000; }
.social-icon.x:hover { background-color: #000000; }
.social-icon.tumblr:hover { background-color: #36465d; }
.social-icon.instagram:hover { background-color: #e4405f; }
.social-icon.threads:hover { background-color: #000000; }
@media only screen and (max-width: 767px) {
  .floating-social-icons {
    display: none !important;
  }
}
/* ============================
   FOOTER SECUNDARIO - Redes y enlaces legales
   ============================ */
.footer-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: white;
  font-size: 0.9rem;
  padding: 2px 20px;
  border-top: 1px solid #333;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 0px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: auto;
  max-width: none;
  z-index: 1000; 
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  color: white;
  font-size: .8rem;
  transition: color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.footer-socials a:hover {
  color: #03a9f5;
  transform: scale(1.1);
}
.footer-legal-links {
  display: flex;
  gap: 18px;
}
.footer-legal-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-legal-links a:hover {
  color: #b3d9ff;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .footer-secondary {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 0.85rem;
    margin-left: calc(-52vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0px;
  }
  .footer-socials {
    gap: 10px;
  }
  .footer-socials a {
    font-size: 1.1rem;
  }
  .footer-legal-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.mb-20 {
  margin-bottom: 30px;
}