/*
Theme Name: jinko Child
Theme URI: http://www.3forty.media/jinko
Template: jinko
Author: 3FortyMedia
Author URI: http://www.3forty.media
Description: jinko - Personal WordPress Blog Theme
Tags: one-column,two-columns,three-columns,left-sidebar,grid-layout,custom-logo,custom-menu,featured-image-header,featured-images,footer-widgets,full-width-template,post-formats,theme-options,blog,portfolio,photography
Version: 1.1.7.1756389176
Updated: 2025-08-28 13:52:56

*/

/* ==========================================================================
   ALINEACIÓN DEL MENÚ
   ========================================================================== */

/* Reorganizar el header para alinear el menú a la derecha */
.header-section.header-right {
  flex: 0 0 auto !important;
  max-width: none !important;
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

/* Asegurar que el logo esté separado a la izquierda */
.header-section.header-left {
  flex: 0 0 auto !important;
  margin-right: auto !important;
  max-width: 150px !important;
  min-width: 150px !important;
}

/* Mover el menú principal al header-right */
.primary-menu-section {
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Estilos para el menú principal */
.primary-menu-section ul.primary-menu {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Estilos condicionales para el menú movido */
/* En la home - color blanco */
body.home .header-section.header-right #primary-menu a,
.home .header-section.header-right #primary-menu a {
  color: #ffffff !important;
}

/* En el blog - color negro específico solo para entradas de blog */
body.blog .header-section.header-right #primary-menu a,
body.single .header-section.header-right #primary-menu a,
body.archive .header-section.header-right #primary-menu a,
.blog .header-section.header-right #primary-menu a,
.single .header-section.header-right #primary-menu a,
.archive .header-section.header-right #primary-menu a {
  color: #000000 !important;
}

/* En páginas normales - mantener color blanco */
body.page:not(.home) .header-section.header-right #primary-menu a,
.page:not(.home) .header-section.header-right #primary-menu a {
  color: #ffffff !important;
}

/* Aplicar tipografía Inter a las etiquetas del menú */
.menu-label,
span.menu-label,
#primary-menu .menu-label,
.header-section.header-right #primary-menu .menu-label,
body .menu-label,
#primary-menu[style*="display: flex"] .menu-label,
#primary-menu.primary-menu .menu-label,
#primary-menu.parent-items-4 .menu-label {
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
}

/* Forzar tipografía Inter en elementos específicos del menú */
#primary-menu li a span.menu-label,
#primary-menu .menu-item a .menu-label,
.header-section.header-right #primary-menu li a span.menu-label {
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
}

.primary-menu-section ul.primary-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

.primary-menu-section ul.primary-menu a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

.primary-menu-section ul.primary-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Asegurar que el botón de búsqueda y teléfono estén a la derecha */
.toggle-search,
.header-phone-text {
  order: 2 !important;
}

/* Forzar alineación a la derecha del menú */
.header-section.header-right {
  justify-content: flex-end !important;
}

/* Hacer que el menú ocupe el espacio disponible */
.header-section.header-right #primary-menu {
  flex: 1 !important;
  justify-content: flex-end !important;
}

/* Mover físicamente el menú al header-right usando CSS más agresivo */
.header-layout-wrapper {
  position: relative !important;
}

/* Ocultar el menú de su posición original */
.header-layout-wrapper > #primary-menu {
  display: none !important;
}

/* Mover el menú principal al header-right usando CSS */
.header-layout-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Mostrar el menú dentro del header-right */
.header-section.header-right #primary-menu {
  display: flex !important;
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 20px !important;
  flex-direction: row !important;
  align-items: center !important;
  margin-left: auto !important;
}

/* Asegurar que el menú sea visible en el header-right */
.header-section.header-right {
  position: relative !important;
}

/* Hacer que el menú sea visible por defecto */
#primary-menu {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Forzar visibilidad del menú en cualquier ubicación */
.header-layout-wrapper #primary-menu,
.header-section #primary-menu,
#primary-menu {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  z-index: 100 !important;
}

/* Estilos para el menú principal dentro del header-right */
.header-section.header-right #primary-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Color blanco solo en la home */
body.home .header-section.header-right #primary-menu a,
.home .header-section.header-right #primary-menu a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* Color negro solo en el blog */
body.blog .header-section.header-right #primary-menu a,
body.single .header-section.header-right #primary-menu a,
body.archive .header-section.header-right #primary-menu a,
.blog .header-section.header-right #primary-menu a,
.single .header-section.header-right #primary-menu a,
.archive .header-section.header-right #primary-menu a {
  color: #000000 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* Color blanco en páginas normales (no home, no blog) */
body.page:not(.home) .header-section.header-right #primary-menu a,
.page:not(.home) .header-section.header-right #primary-menu a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* Efecto hover para la home (fondo blanco transparente) */
body.home .header-section.header-right #primary-menu a:hover,
.home .header-section.header-right #primary-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Efecto hover para el blog (fondo gris claro) */
body.blog .header-section.header-right #primary-menu a:hover,
body.single .header-section.header-right #primary-menu a:hover,
body.archive .header-section.header-right #primary-menu a:hover,
.blog .header-section.header-right #primary-menu a:hover,
.single .header-section.header-right #primary-menu a:hover,
.archive .header-section.header-right #primary-menu a:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Efecto hover para páginas normales (fondo blanco transparente) */
body.page:not(.home) .header-section.header-right #primary-menu a:hover,
.page:not(.home) .header-section.header-right #primary-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  /* Ocultar SOLO el menú principal del header en móvil */
  .header-section.header-right #primary-menu,
  .header-layout-wrapper > #primary-menu {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* NO ocultar el menú del sidebar móvil del blog */
  #toggle-sidebar #primary-nav-sidebar,
  .mobile-navigation #primary-nav-sidebar,
  .toggle-sidebar #primary-nav-sidebar {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ajustar el header-right para móvil */
  .header-section.header-right {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-end !important;
  }
  
  /* Mantener solo búsqueda y teléfono visibles */
  .toggle-search,
  .header-phone-text {
    order: 1 !important;
    display: flex !important;
  }
  
  /* Ocultar el menú principal del header completamente */
  .primary-menu-section {
    display: none !important;
  }
  
  /* Asegurar que el menú móvil (hamburger) esté visible */
  .toggle-menu {
    display: flex !important;
    visibility: visible !important;
  }
}

/* ==========================================================================
   HEADER SIMPLIFICADO PARA BLOG Y ENTRADAS
   ========================================================================== */

/* En páginas del blog y entradas, ocultar SOLO el menú del header, NO el menú hamburger */
body.blog .mobile-header .header-section.header-right #primary-menu,
body.single .mobile-header .header-section.header-right #primary-menu,
body.archive .mobile-header .header-section.header-right #primary-menu,
body.page:not(.home) .mobile-header .header-section.header-right #primary-menu,
.blog .mobile-header .header-section.header-right #primary-menu,
.single .mobile-header .header-section.header-right #primary-menu,
.archive .mobile-header .header-section.header-right #primary-menu,
.page:not(.home) .mobile-header .header-section.header-right #primary-menu {
  display: none !important;
  visibility: hidden !important;
}

/* Ocultar botón de búsqueda en blog y entradas */
body.blog .mobile-header .toggle-search,
body.single .mobile-header .toggle-search,
body.archive .mobile-header .toggle-search,
body.page:not(.home) .mobile-header .toggle-search,
.blog .mobile-header .toggle-search,
.single .mobile-header .toggle-search,
.archive .mobile-header .toggle-search,
.page:not(.home) .mobile-header .toggle-search {
  display: none !important;
  visibility: hidden !important;
}

/* Mantener solo logo y teléfono visibles en blog y entradas */
body.blog .mobile-header .header-section.header-right,
body.single .mobile-header .header-section.header-right,
body.archive .mobile-header .header-section.header-right,
body.page:not(.home) .mobile-header .header-section.header-right,
.blog .mobile-header .header-section.header-right,
.single .mobile-header .header-section.header-right,
.archive .mobile-header .header-section.header-right,
.page:not(.home) .mobile-header .header-section.header-right {
  justify-content: flex-end !important;
  gap: 20px !important;
}

/* ==========================================================================
   HEADER SIMPLIFICADO PARA LA HOME
   ========================================================================== */

/* En la home, ocultar SOLO el menú del header, NO el menú hamburger */
body.home .mobile-header .header-section.header-right #primary-menu,
.home .mobile-header .header-section.header-right #primary-menu,
body.front-page .mobile-header .header-section.header-right #primary-menu,
.front-page .mobile-header .header-section.header-right #primary-menu {
  display: none !important;
  visibility: hidden !important;
}

/* Ocultar botón de búsqueda en la home */
body.home .mobile-header .toggle-search,
.home .mobile-header .toggle-search,
body.front-page .mobile-header .toggle-search,
.front-page .mobile-header .toggle-search {
  display: none !important;
  visibility: hidden !important;
}

/* Mantener solo logo y teléfono visibles en la home */
body.home .mobile-header .header-section.header-right,
.home .mobile-header .header-section.header-right,
body.front-page .mobile-header .header-section.header-right,
.front-page .mobile-header .header-section.header-right {
  justify-content: flex-end !important;
  gap: 20px !important;
}

/* Asegurar que el menú hamburger esté visible y funcional en la home */
body.home .mobile-header .toggle-menu,
.home .mobile-header .toggle-menu,
body.front-page .mobile-header .toggle-menu,
.front-page .mobile-header .toggle-menu {
  display: flex !important;
  visibility: visible !important;
}

/* Asegurar que el menú móvil lateral esté disponible en la home */
body.home .mobile-navigation,
.home .mobile-navigation,
body.front-page .mobile-navigation,
.front-page .mobile-navigation {
  display: block !important;
  visibility: visible !important;
}

/* Asegurar que el sidebar móvil esté disponible en la home */
body.home #toggle-sidebar,
.home #toggle-sidebar,
body.front-page #toggle-sidebar,
.front-page #toggle-sidebar {
  display: block !important;
  visibility: visible !important;
}

/* Asegurar que el menú del sidebar esté disponible en la home */
body.home #primary-nav-sidebar,
.home #primary-nav-sidebar,
body.front-page #primary-nav-sidebar,
.front-page #primary-nav-sidebar {
  display: block !important;
  visibility: visible !important;
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
  /* Ocultar SOLO el menú principal del header */
  .header-section.header-right #primary-menu,
  .header-layout-wrapper > #primary-menu,
  .primary-menu-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* NO ocultar el menú del sidebar móvil del blog */
  #toggle-sidebar #primary-nav-sidebar,
  .mobile-navigation #primary-nav-sidebar,
  .toggle-sidebar #primary-nav-sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ajustar el logo para pantallas pequeñas */
  .header-section.header-left {
    max-width: 120px !important;
    min-width: 120px !important;
  }
  
  /* Asegurar que el menú hamburger esté visible */
  .toggle-menu.hidden {
    display: flex !important;
    visibility: visible !important;
  }
}

/* ==========================================================================
   MODAL DE VIDEO NISSAN - ESTILO APPLE
   ========================================================================== */

/* Modal principal estilo Apple - 100% pantalla completa */
.modal-full-bleed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
}

.modal-backdrop {
  opacity: 1!important;
  background-color: rgba(255, 255, 255)!important;
}

/* Cambiar el ancho del modal de Bootstrap */
.modal {
  --bs-modal-width: 90vw !important;
}

.modal-lg {
  --bs-modal-width: 90vw !important;
}

/* Para modal específico */
#video_inicial {
  --bs-modal-width: 100vw !important;
  --bs-modal-max-width: 100vw !important;
}

/* Para modal específico de ediciones */
#video_ediciones {
  --bs-modal-width: 100vw !important;
  --bs-modal-max-width: 100vw !important;
}

/* Para modal específico de impe */
#video_impe {
  --bs-modal-width: 100vw !important;
  --bs-modal-max-width: 100vw !important;
}

.modal-full-bleed.modal-open {
  display: block;
}

.modal-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-overlay {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

.ac-player-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.ac-video-player {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-video-player.large {
  width: 100vw;
  height: 100vh;
}

.ac-video-media-controller {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  cursor: pointer;
}

.ac-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.ac-video-poster-hide {
  display: none;
}

.blend-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
  pointer-events: none;
}

.ac-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px;
}

.controls-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.center-button-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.controls-play-pause-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.controls-play-pause-button:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.controls-play-pause-button::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #000;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.controls-play-pause-button.playing::before {
  content: '';
  width: 6px;
  height: 24px;
  background-color: #000;
  border: none;
  margin: 0 3px;
}

.main-controls-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.main-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.main-controls-item {
  display: flex;
  align-items: center;
}

.controls-volume button,
.controls-full-screen-button {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.controls-volume button:hover,
.controls-full-screen-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.controls-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
}

.controls-progress-time {
  font-size: 12px;
  color: white;
  min-width: 60px;
  text-align: center;
}

.controls-progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.controls-progress-indicator {
  position: relative;
  width: 100%;
  height: 100%;
}

.ac-slider-runnable-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ac-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ac-slider-thumb:hover {
  transform: translateY(-50%) scale(1.2);
}

.ac-slider-scrubbed {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: white;
  border-radius: 2px;
}

.ac-slider-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.modal-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background-color 0.2s ease;
}

.modal-close-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-close-icon {
  width: 20px;
  height: 20px;
}

.modal-close-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* SVG en botón de cerrar */
#close_video_unificado svg {
  width: 20px;
  height: 20px;
  fill: white;
}

#close_video, #close_video_ediciones, #close_video_impe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-body .fs-6 {
  font-size: 0.7rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .controls-play-pause-button {
    width: 60px;
    height: 60px;
  }
  
  .controls-play-pause-button::before {
    border-left: 15px solid #000;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
  
  .main-controls {
    gap: 10px;
  }
  
  .controls-progress {
    margin: 0 10px;
  }
  
  .modal-close-button {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }
}

/* ==========================================================================
   FUENTES DEL TEMA
   ========================================================================== */

/* Importar fuente Arial */
@font-face {
  font-family: 'Arial';
  src: local('Arial'),
       local('ArialMT'),
       url('https://fonts.gstatic.com/s/arial/v1/arial.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Aplicar Arial como fuente principal */
body,
html {
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* ==========================================================================
   TIPOGRAFÍA DEL MENÚ
   ========================================================================== */

/* Aplicar Arial a todos los elementos del menú */
.site-header,
.site-header *,
#site-header,
#site-header *,
.main-navigation,
.main-navigation *,
.primary-menu,
.primary-menu *,
.menu,
.menu *,
.nav-menu,
.nav-menu *,
.header-navigation,
.header-navigation * {
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

/* Elementos específicos del menú */
.site-header a,
#site-header a,
.main-navigation a,
.primary-menu a,
.menu a,
.nav-menu a,
.header-navigation a,
.toggle-search,
.header-phone-text a {
  font-family: 'Arial', Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
  font-weight: 500 !important;
}
/* ==========================================================================
   Estilos Finales para el Formulario de Contacto (con Posicionamiento)
   ========================================================================== */

/* 1. El contenedor principal necesita ser el punto de referencia */
.modern-saas-sub {
    position: relative;
}

/* 2. El campo de texto (input) necesita espacio a la derecha para el botón */
.modern-saas-sub input[type="email"] {
    font-size: 16px;
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* La clave está aquí: mucho relleno a la derecha */
    padding: 18px 170px 18px 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    width: 100%;
    box-sizing: border-box;
}

/* 3. El botón se posiciona de forma absoluta DENTRO del contenedor */
.modern-saas-sub .wpcf7-submit {
    position: absolute;
    top: 50%;
    right: 7px; /* Pequeño espacio desde el borde derecho */
    transform: translateY(-50%); /* Truco para centrarlo verticalmente */

    /* Estilos visuales (he ajustado el color al de tu captura) */
    background-color: #667eea;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    margin-right:6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

/* 4. Efecto al pasar el ratón por encima del botón */
.modern-saas-sub .wpcf7-submit:hover {
    background-color: #5a6edc; /* Un tono un poco más oscuro */
}


/* ==========================================================================
   Estilos Finales para el Formulario y Título (Ajuste Fino)
   ========================================================================== */

/* --- ESTILOS PARA EL FORMULARIO DE CONTACTO --- */

.modern-saas-sub {
    position: relative;
}

.modern-saas-sub input[type="email"] {
    font-size: 16px;
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 18px 170px 18px 30px; 
    box-shadow: 0px 4px 10px rgba(2, 7, 21, 0.1);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.modern-saas-sub .wpcf7-submit {
    position: absolute;
    top: 50%;
    right: 7px; 
    transform: translateY(-50%);
    background-color: #6366f1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.modern-saas-sub .wpcf7-submit:hover {
    background-color: #4f46e5;
}

/* --- ESTILO PARA EL RESALTADO DEL TITULO --- */
.before-bg-indigo {
  position: relative !important;
  display: inline-block !important;
  isolation: isolate; /* Crea un nuevo stacking context para contener el z-index */
}

.before-bg-indigo::before {
  content: "" !important;
  background-color: #d7c2a2 !important; /* indigo personalizado */
  position: absolute !important;
  inset: 0 !important;
  border-radius: 4px !important;
  z-index: -1 !important;
  display: block !important;
  transform: none !important; /* Anula el skewY del tema padre */
}

.before-bg-indigo span,
.before-bg-indigo .text-white {
  position: relative !important;
  z-index: 1 !important;
  color: #fff !important;
}

.elementor-button-icon svg {
    width: auto !important;
    height: auto !important;
}

.elementor-button-icon {
    display: flex;
    align-items: center;        /* centra verticalmente el ícono y la línea */
    border-right: 1px solid white;
}

/* ==========================================================================
   ARREGLO PARA ÍCONO BOOKMARK SVG
   ========================================================================== */

/* Estilo específico para el ícono bookmark SVG */
.elementor-button-icon .e-far-bookmark {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    display: block !important;
}

/* Asegurar que el SVG se vea correctamente */
.elementor-button-icon svg.e-far-bookmark {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
    display: block !important;
    vertical-align: middle !important;
}

/* Ajustar el contenedor del ícono */
.elementor-button-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    min-height: 20px !important;
    padding-right: 20px;        /* espacio entre línea y texto */
    margin-right: 1px;
}

/* ==========================================================================
   ALINEACIÓN HORIZONTAL DEL BOTÓN COMPLETO
   ========================================================================== */

/* Asegurar que el botón completo esté alineado horizontalmente */
.elementor-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Asegurar que el wrapper del contenido esté alineado */
.elementor-button-content-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Asegurar que el texto esté alineado */
.elementor-button-text {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* ===== Wrapper del carrusel S3 ===== */
.tcar .ot-testimonial-slider.ot-testimonial-s3 .owl-carousel { padding: 10px 0; }
.tcar .testimonial-list__item { padding: 10px; }

/* Card interna: imagen a la izquierda, contenido a la derecha */
.tcar .testimonial-list__item-inner{
  display: grid;
  grid-template-columns: 96px 16px 1fr;   /* avatar | divisor | texto */
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(60,72,88,.10);
  padding: 18px 20px;
}

/* Meta (avatar + nombre + cargo) */
.tcar .testimonial-list__item .tmeta{
  text-align: center;
}
.tcar .testimonial-list__item .tmeta img{
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  display:block; margin: 0 auto 8px;
}
.tcar .testimonial-list__item .tmeta .tinfo h6{
  margin: 0 0 4px; font-weight: 700; color: #243447; font-size: 16px;
}
.tcar .testimonial-list__item .tmeta .tinfo span{
  font-size: 13px; color: #7a8aa0;
}

/* Divisor vertical central */
.tcar .testimonial-list__item .testi-divider{
  width: 1px; height: 64px; background: rgba(0,0,0,.08);
  margin: 0 10px;
}

/* Contenido (cita + estrellas) */
.tcar .testimonial-list__item .tcontent{
  color:#4b5a6b; line-height:1.6;
}
.tcar .testimonial-list__item .tcontent .tdesc{
  font-size: 16px; margin: 0 0 10px 0;
}

/* Estrellas (Material Design Icons) */
.tcar .testimonial-list__item .tcontent .testi-rating{
  display:flex; gap:6px; align-items:center;
  margin: 6px 0 0 0; padding:0; list-style:none;
}
.tcar .testimonial-list__item .tcontent .testi-rating li{ list-style:none; }
.tcar .testimonial-list__item .tcontent .testi-rating i{
  font-size: 16px; color:#FFC93D;
}

/* Responsivo */
@media (max-width: 767px){
  .tcar .testimonial-list__item-inner{
    grid-template-columns: 1fr; gap: 12px;
    text-align: center; padding:16px;
  }
  .tcar .testimonial-list__item .testi-divider{ display:none; }
  .tcar .testimonial-list__item .tcontent{ order: 3; }
  .tcar .testimonial-list__item .tmeta{ order: 1; }
}

/* (opcional) Dots, si los activas (ahora están "dots:false" en data-opts) */
.tcar .owl-dots .owl-dot span{
  width:8px; height:8px; border-radius:50%; background:#d7d9e0; opacity:1;
}
.tcar .owl-dots .owl-dot.active span{ background:#7f5af0; }
/* ===== Testimoniales S1 (estilo card centrado + avatar abajo) ===== */
/* Los estilos específicos para S1 se pueden agregar aquí cuando sea necesario */

/* ===== Template Elementor Canvas con Header y Footer ===== */
.elementor-canvas-full-width {
  /* Eliminar todos los contenedores y márgenes del tema */
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

/* Eliminar el contenedor principal del tema */
.elementor-canvas-full-width .wrap,
.elementor-canvas-full-width .wrap-inner,
.elementor-canvas-full-width .container,
.elementor-canvas-full-width .content-area,
.elementor-canvas-full-width .site-main,
.elementor-canvas-full-width .entry-content,
.elementor-canvas-full-width .hentry {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ocultar títulos automáticos del tema si aparecen */
.elementor-canvas-full-width .entry-header,
.elementor-canvas-full-width .page-header {
  display: none !important;
}

/* Asegurar que las secciones de Elementor funcionen correctamente */
.elementor-canvas-full-width .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max, 1140px);
  margin: 0 auto;
}

/* Asegurar que las secciones full-width de Elementor funcionen correctamente */
.elementor-canvas-full-width .elementor-section.elementor-section-stretched {
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Eliminar breadcrumbs si aparecen */
.elementor-canvas-full-width .breadcrumbs,
.elementor-canvas-full-width .tfm-breadcrumbs {
  display: none !important;
}

/* Asegurar que el body y html no tengan márgenes que afecten el diseño */
body.elementor-canvas-with-header-footer {
  margin: 0 !important;
  padding: 0 !important;
}

/* Eliminar cualquier padding o margin del contenedor principal */
.elementor-canvas-full-width * {
  box-sizing: border-box;
}

/* Asegurar que las secciones de Elementor ocupen todo el ancho disponible */
.elementor-canvas-full-width .elementor-section {
  width: 100% !important;
}

/* Eliminar cualquier espacio entre el header y el contenido */
.elementor-canvas-full-width {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Asegurar que el primer elemento de Elementor no tenga margen superior */
.elementor-canvas-full-width .elementor-section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Eliminar cualquier espacio del contenedor principal del tema */
body.elementor-canvas-with-header-footer .wrap {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Asegurar que el contenido de Elementor ocupe todo el ancho de la pantalla */
.elementor-canvas-full-width .elementor-section.elementor-section-full_width {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* ===== HEADER TRANSPARENTE Y STICKY ===== */
/* Hacer el header completamente transparente */
body.elementor-canvas-with-header-footer .site-header,
body.elementor-canvas-with-header-footer #site-header {
  background: transparent !important;
  background-color: transparent !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

/* Eliminar cualquier fondo del header en todos los elementos */
body.elementor-canvas-with-header-footer .site-header *,
body.elementor-canvas-with-header-footer #site-header * {
  background: transparent !important;
  background-color: transparent !important;
}

/* Asegurar que el header no tenga bordes ni sombras */
body.elementor-canvas-with-header-footer .site-header::before,
body.elementor-canvas-with-header-footer .site-header::after,
body.elementor-canvas-with-header-footer #site-header::before,
body.elementor-canvas-with-header-footer #site-header::after {
  display: none !important;
}

/* Eliminar el padding superior - el contenido debe empezar desde arriba */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Hacer que el primer elemento de Elementor ocupe toda la pantalla desde arriba */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width .elementor-section:first-child {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  /* Asegurar que empiece desde la parte superior */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Asegurar que el primer elemento tenga el fondo desde el inicio del header */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width .elementor-section:first-child .elementor-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hacer que el contenido del primer elemento se centre verticalmente */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width .elementor-section:first-child .elementor-row {
  align-items: center !important;
  min-height: 100vh !important;
}

/* Hacer el header semi-transparente al hacer scroll */
body.elementor-canvas-with-header-footer .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Asegurar que los elementos del header sean visibles */
body.elementor-canvas-with-header-footer .site-header * {
  color: inherit !important;
}

/* Hacer el logo y navegación más visibles sobre el fondo */
body.elementor-canvas-with-header-footer .site-header .site-logo,
body.elementor-canvas-with-header-footer .site-header .primary-menu a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Mejorar la visibilidad de los elementos del header */
body.elementor-canvas-with-header-footer .site-header .site-logo a,
body.elementor-canvas-with-header-footer .site-header .primary-menu a,
body.elementor-canvas-with-header-footer .site-header .header-secondary a {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Hacer el header más visible en móviles */
@media (max-width: 768px) {
  body.elementor-canvas-with-header-footer .site-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  body.elementor-canvas-with-header-footer .site-header .site-logo a,
  body.elementor-canvas-with-header-footer .site-header .primary-menu a {
    color: #333333 !important;
    text-shadow: none !important;
  }
}

/* Asegurar que el contenido no se superponga con el header */
body.elementor-canvas-with-header-footer .elementor-section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Asegurar que el contenido de Elementor ocupe todo el ancho desde el inicio */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width {
  position: relative !important;
  z-index: 1 !important;
}

/* Solo el primer elemento debe ocupar el ancho completo */

/* Solo modificar el contenedor del primer elemento */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width .elementor-section:first-child .elementor-container {
  max-width: none !important;
  width: 100% !important;
}

/* Solo modificar el primer elemento para que tenga el fondo desde arriba */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width .elementor-section:first-child {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Mantener el diseño original de Elementor para el resto de elementos */
/* Los elementos que no sean el primero mantienen su diseño original */

/* Forzar que el primer elemento de Elementor empiece desde la parte superior de la pantalla */
body.elementor-canvas-with-header-footer .elementor-canvas-full-width {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Asegurar que el body no tenga márgenes que afecten el diseño */
body.elementor-canvas-with-header-footer {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA HOME ===== */
/* Aplicar los mismos estilos a la página home */
body.home.elementor-canvas-with-header-footer .site-header,
body.home.elementor-canvas-with-header-footer #site-header {
  background: transparent !important;
  background-color: transparent !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

/* Eliminar cualquier fondo del header en la home */
body.home.elementor-canvas-with-header-footer .site-header *,
body.home.elementor-canvas-with-header-footer #site-header * {
  background: transparent !important;
  background-color: transparent !important;
}

/* Hacer que el primer elemento de la home ocupe el ancho completo */
body.home.elementor-canvas-with-header-footer .elementor-section:first-child {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Asegurar que el contenido de la home empiece desde arriba */
body.home.elementor-canvas-with-header-footer .elementor-canvas-full-width {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Eliminar contenedores del tema en la home */
body.home.elementor-canvas-with-header-footer .wrap,
body.home.elementor-canvas-with-header-footer .wrap-inner,
body.home.elementor-canvas-with-header-footer .container,
body.home.elementor-canvas-with-header-footer .content-area,
body.home.elementor-canvas-with-header-footer .site-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Asegurar que el primer elemento de la home tenga el fondo desde arriba */
body.home.elementor-canvas-with-header-footer .elementor-section:first-child {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  min-height: 100vh !important;
}

/* Eliminar cualquier margen o padding del body y html */
body.elementor-canvas-with-header-footer,
html.elementor-canvas-with-header-footer {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* --- ESTILOS PARA LA BÚSQUEDA EN LA HOME --- */
/* Aplicar estilos más directamente para asegurar que funcionen */
body.home .search-form,
.home .search-form,
.search-form,
form.search-form,
form[class*="search-form"] {
  display: flex !important;
  align-items: center !important;
  background: white !important;
  border: 2px dotted #ccc !important;
  border-radius: 25px !important;
  padding: 20px 25px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  width: 500px !important;
  max-width: 500px !important;
  min-width: 500px !important;
  margin: 0 auto !important;
}

body.home .search-field,
.home .search-field,
.search-field,
input.search-field,
input[class*="search-field"] {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 18px !important;
  color: #333 !important;
  padding: 0 !important;
  margin-right: 20px !important;
  min-width: 400px !important;
  width: 400px !important;
}

body.home .search-field::placeholder,
.home .search-field::placeholder,
.search-field::placeholder {
  color: #999 !important;
}

body.home .search-submit,
.home .search-submit,
.search-submit {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  color: #333 !important;
}

body.home .search-submit i,
.home .search-submit i,
.search-submit i {
  font-size: 18px !important;
}

/* --- ESTILOS PARA EL ICONO DE BÚSQUEDA --- */
/* Icono de lupa en la home - color blanco */
body.home .toggle-search,
.home .toggle-search {
  color: #ffffff !important;
}

body.home .toggle-search *,
.home .toggle-search * {
  color: #ffffff !important;
}

/* Icono de lupa en el blog - color negro específico */
body.blog .toggle-search,
body.single .toggle-search,
body.archive .toggle-search,
.blog .toggle-search,
.single .toggle-search,
.archive .toggle-search {
  color: #000000 !important;
}

body.blog .toggle-search *,
body.single .toggle-search *,
body.archive .toggle-search *,
.blog .toggle-search *,
.single .toggle-search *,
.archive .toggle-search * {
  color: #000000 !important;
}

/* Icono de lupa en páginas normales - color blanco */
body.page:not(.home) .toggle-search,
.page:not(.home) .toggle-search {
  color: #ffffff !important;
}

body.page:not(.home) .toggle-search *,
.page:not(.home) .toggle-search * {
  color: #ffffff !important;
}

/* --- ESTILOS PARA EL TELÉFONO EN EL HEADER (SOLO TEXTO) --- */
.header-phone-text {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 20px !important;
}

/* Teléfono en la home - color blanco */
body.home .header-phone-text a,
.home .header-phone-text a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  gap: 4px !important;
}

body.home .header-phone-text i,
body.home .header-phone-text .icon-phone-ringing,
.home .header-phone-text i,
.home .header-phone-text .icon-phone-ringing {
  margin-right: 0px !important;
  font-size: 16px !important;
  color: #ffffff !important;
}

/* Teléfono en el blog - color negro específico */
body.blog .header-phone-text a,
body.single .header-phone-text a,
body.archive .header-phone-text a,
.blog .header-phone-text a,
.single .header-phone-text a,
.archive .header-phone-text a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #000000 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  gap: 4px !important;
}

body.blog .header-phone-text i,
body.blog .header-phone-text .icon-phone-ringing,
body.single .header-phone-text i,
body.single .header-phone-text .icon-phone-ringing,
body.archive .header-phone-text i,
body.archive .header-phone-text .icon-phone-ringing,
.blog .header-phone-text i,
.blog .header-phone-text .icon-phone-ringing,
.single .header-phone-text i,
.single .header-phone-text .icon-phone-ringing,
.archive .header-phone-text i,
.archive .header-phone-text .icon-phone-ringing {
  margin-right: 0px !important;
  font-size: 16px !important;
  color: #000000 !important;
}

/* Teléfono en páginas normales - mantener color blanco */
body.page:not(.home) .header-phone-text a,
.page:not(.home) .header-phone-text a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  gap: 4px !important;
}

body.page:not(.home) .header-phone-text i,
body.page:not(.home) .header-phone-text .icon-phone-ringing,
.page:not(.home) .header-phone-text i,
.page:not(.home) .header-phone-text .icon-phone-ringing {
  margin-right: 0px !important;
  font-size: 16px !important;
  color: #ffffff !important;
}

/* Estilos específicos para el icono de teléfono con ondas */
.icon-phone-ringing {
  margin-right: 0px !important;
  margin: 0 !important;
}

/* Ícono del teléfono para la home y páginas normales (blanco) */
body.home .icon-phone-ringing::before,
.home .icon-phone-ringing::before,
body.page:not(.home) .icon-phone-ringing::before,
.page:not(.home) .icon-phone-ringing::before {
  content: "" !important;
  background-image: url('/wp-content/uploads/2025/09/elearning-phone.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 25px !important;
  height: 25px !important;
  display: inline-block !important;
  margin-right: 0px !important;
  vertical-align: middle !important;
  position: relative !important;
  top: -1px !important;
  filter: brightness(0) invert(1) !important; /* Convierte a blanco */
}

/* Ícono del teléfono para el blog (negro) */
body.blog .icon-phone-ringing::before,
body.single .icon-phone-ringing::before,
body.archive .icon-phone-ringing::before,
.blog .icon-phone-ringing::before,
.single .icon-phone-ringing::before,
.archive .icon-phone-ringing::before {
  content: "" !important;
  background-image: url('/wp-content/uploads/2025/09/elearning-phone.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 25px !important;
  height: 25px !important;
  display: inline-block !important;
  margin-right: 0px !important;
  vertical-align: middle !important;
  position: relative !important;
  top: -1px !important;
  filter: brightness(0) !important; /* Convierte a negro */
}

/* El teléfono ahora es texto simple sin efectos */
/* === Canvas con Header del Tema === */
.page-template-page-canvas-header #primary,
.page-template-page-canvas-header .site-main,
.page-template-page-canvas-header .entry-content,
.page-template-page-canvas-header .hentry,
.page-template-page-canvas-header .container,
.page-template-page-canvas-header .content-area {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Oculta título automático del tema, si aparece */
.page-template-page-canvas-header .entry-header,
.page-template-page-canvas-header .page-header {
  display: none !important;
}

/* Respeta el ancho que definas en Elementor (secciones boxed) */
:root { --container-max: 1140px; } /* cámbialo si querés otro ancho */
.page-template-page-canvas-header
  .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Evita que el contenido tape el header del tema */
.canvas-header-main { position: relative; z-index: 1; }

/* === Front Page tipo Canvas, manteniendo el header del tema === */
.home #primary,
.home .site-main,
.home .entry-content,
.home .hentry,
.home .container,
.home .content-area {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Oculta título automático del tema en la home, si lo inyecta */
.home .entry-header,
.home .page-header { display: none !important; }

/* Respeta el ancho de secciones "boxed" de Elementor */
:root { --container-max: 1140px; } /* ajustá a gusto */
.home .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Asegura que el contenido no tape el header */
.canvas-header-main { position: relative; z-index: 1; }

/* Front page tipo canvas pero con el header del tema */
.front-page #primary,
.front-page .site-main,
.front-page .content-area,
.front-page .entry-content,
.front-page .hentry {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Oculta el título auto si el tema lo inserta */
.front-page .entry-header,
.front-page .page-header { display: none !important; }

/* Respeta el ancho que definas dentro de Elementor (secciones boxed) */
:root { --container-max: 1140px; }
.front-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ==========================================================================
   BOTÓN ELEARNING SEND BUTTON
   ========================================================================== */

/* Estilo más específico para sobrescribir wpforms-submit */
.wpforms-submit.elearning-send-button,
button.wpforms-submit.elearning-send-button,
input.wpforms-submit.elearning-send-button {
  /* Layout Properties */
  position: relative !important;
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  height: 30px !important;
  width: 144px !important;
  margin-top: 15px !important;
  margin-bottom: 0px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
  padding-top: 20px !important;
  padding-bottom: 0px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  visibility: visible !important;
  
  /* Text Properties */
  text-size-adjust: 100% !important;
  font-family: 'Roboto', sans-serif !important;
  font-feature-settings: normal !important;
  font-kerning: auto !important;
  font-optical-sizing: auto !important;
  font-size: 13px !important;
  font-size-adjust: none !important;
  font-stretch: 100% !important;
  font-style: normal !important;
  font-variant-alternates: normal !important;
  font-variant-caps: normal !important;
  font-variant-east-asian: normal !important;
  font-variant-emoji: normal !important;
  font-variant-ligatures: normal !important;
  font-variant-numeric: normal !important;
  font-variant-position: normal !important;
  font-variation-settings: normal !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  line-height: 13px !important;
  text-align: center !important;
  text-decoration-color: rgb(255, 255, 255) !important;
  text-decoration-line: none !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: auto !important;
  text-indent: 0px !important;
  text-shadow: none !important;
  text-transform: none !important;
  vertical-align: middle !important;
  word-break: break-word !important;
  word-spacing: 0px !important;
  
  /* Appearance/Background Properties */
  color: rgb(255, 255, 255) !important;
  background-attachment: scroll !important;
  background-clip: border-box !important;
  background-color: rgba(0, 0, 0, 0) !important;
  background-image: none !important;
  background-origin: padding-box !important;
  background-position-x: 0% !important;
  background-position-y: 0% !important;
  background-repeat: repeat !important;
  background-size: auto !important;
  
  /* Border Properties */
  border-bottom-color: rgb(255, 255, 255) !important;
  border-bottom-style: solid !important;
  border-bottom-width: 1px !important;
  border-left-color: rgb(255, 255, 255) !important;
  border-left-style: solid !important;
  border-left-width: 1px !important;
  border-right-color: rgb(255, 255, 255) !important;
  border-right-style: solid !important;
  border-right-width: 1px !important;
  border-top-color: rgb(255, 255, 255) !important;
  border-top-style: solid !important;
  border-top-width: 1px !important;
  border-image-outset: 0 !important;
  border-image-repeat: stretch !important;
  border-image-slice: 100% !important;
  border-image-source: none !important;
  border-image-width: 1 !important;
  -webkit-border-image: none !important;
  
  /* Border Radius */
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  
  /* Other Properties */
  box-shadow: none !important;
  cursor: pointer !important;
  outline-color: rgb(255, 255, 255) !important;
  outline-style: none !important;
  outline-width: 0px !important;
  appearance: button !important;
  text-rendering: auto !important;
  padding-block-end: 0px !important;
  padding-block-start: 1px !important;
  padding-inline-end: 15px !important;
  padding-inline-start: 15px !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  
  /* Animation Properties */
  transition-behavior: normal !important;
  transition-delay: 0s !important;
  transition-duration: 0.15s !important;
  transition-property: all !important;
  transition-timing-function: ease-in-out !important;
}

.wpforms-submit.elearning-send-button:hover,
button.wpforms-submit.elearning-send-button:hover,
input.wpforms-submit.elearning-send-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.02) !important;
}

.wpforms-submit.elearning-send-button:active,
button.wpforms-submit.elearning-send-button:active,
input.wpforms-submit.elearning-send-button:active {
  transform: scale(0.98) !important;
}

/* También agregar el estilo original por si se usa solo la clase elearning-send-button */
.elearning-send-button {
  /* Layout Properties */
  position: relative;
  box-sizing: border-box;
  display: block;
  float: none;
  height: 30px;
  width: 144px;
  margin-top: 5px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 1px;
  padding-bottom: 0px;
  padding-left: 15px;
  padding-right: 15px;
  overflow-x: visible;
  overflow-y: visible;
  visibility: visible;
  
  /* Text Properties */
  text-size-adjust: 100%;
  font-family: 'Roboto', sans-serif;
  font-feature-settings: normal;
  font-kerning: auto;
  font-optical-sizing: auto;
  font-size: 13px;
  font-size-adjust: none;
  font-stretch: 100%;
  font-style: normal;
  font-variant-alternates: normal;
  font-variant-caps: normal;
  font-variant-east-asian: normal;
  font-variant-emoji: normal;
  font-variant-ligatures: normal;
  font-variant-numeric: normal;
  font-variant-position: normal;
  font-variation-settings: normal;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 13px;
  text-align: center;
  text-decoration-color: rgb(255, 255, 255);
  text-decoration-line: none;
  text-decoration-style: solid;
  text-decoration-thickness: auto;
  text-indent: 0px;
  text-shadow: none;
  text-transform: none;
  vertical-align: middle;
  word-break: break-word;
  word-spacing: 0px;
  
  /* Appearance/Background Properties */
  color: rgb(255, 255, 255);
  background-attachment: scroll;
  background-clip: border-box;
  background-color: rgba(0, 0, 0, 0);
  background-image: none;
  background-origin: padding-box;
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-size: auto;
  
  /* Border Properties */
  border-bottom-color: rgb(255, 255, 255);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-left-color: rgb(255, 255, 255);
  border-left-style: solid;
  border-left-width: 1px;
  border-right-color: rgb(255, 255, 255);
  border-right-style: solid;
  border-right-width: 1px;
  border-top-color: rgb(255, 255, 255);
  border-top-style: solid;
  border-top-width: 1px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-slice: 100%;
  border-image-source: none;
  border-image-width: 1;
  -webkit-border-image: none;
  
  /* Border Radius */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  
  /* Other Properties */
  box-shadow: none;
  cursor: pointer;
  outline-color: rgb(255, 255, 255);
  outline-style: none;
  outline-width: 0px;
  appearance: button;
  text-rendering: auto;
  padding-block-end: 0px;
  padding-block-start: 1px;
  padding-inline-end: 15px;
  padding-inline-start: 15px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  
  /* Animation Properties */
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0.15s;
  transition-property: all;
  transition-timing-function: ease-in-out;
}

.elearning-send-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.elearning-send-button:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CAMPOS DEL FORMULARIO ELEARNING - ESTILOS EXACTOS
   ========================================================================== */

/* Aplicar estilos exactos solo a campos dentro de elearning-form-fields */
.elearning-form-fields input,
.elearning-form-fields textarea,
.elearning-form-fields select,
.elearning-form-fields input[type="text"],
.elearning-form-fields input[type="email"],
.elearning-form-fields input[type="tel"],
.elearning-form-fields input[type="url"],
.elearning-form-fields input[type="number"],
.elearning-form-fields input[type="password"],
.elearning-form-fields input[type="search"],
.elearning-form-fields .wpforms-form input,
.elearning-form-fields .wpforms-form textarea,
.elearning-form-fields .wpforms-form select,
.elearning-form-fields .wpforms-field input,
.elearning-form-fields .wpforms-field textarea,
.elearning-form-fields .wpforms-field select,
.elearning-form-fields .sp-form-elearning input,
.elearning-form-fields .sp-form-elearning textarea,
.elearning-form-fields .sp-form-elearning select,
.elearning-form-fields input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]) {
  /* Layout Properties */
  position: static !important;
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  height: 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0px !important;
  margin-bottom: 2px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  padding-block-start: 2px !important;
  padding-block-end: 2px !important;
  padding-inline-start: 14px !important;
  padding-inline-end: 14px !important;
  overflow-x: clip !important;
  overflow-y: clip !important;
  overflow-clip-margin: 0px !important;
  visibility: visible !important;
  
  /* Text Properties */
  text-size-adjust: 100% !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  font-feature-settings: normal !important;
  font-kerning: auto !important;
  font-optical-sizing: auto !important;
  font-size: 16px !important;
  font-size-adjust: none !important;
  font-stretch: 100% !important;
  font-style: normal !important;
  font-variant-alternates: normal !important;
  font-variant-caps: normal !important;
  font-variant-east-asian: normal !important;
  font-variant-emoji: normal !important;
  font-variant-ligatures: normal !important;
  font-variant-numeric: normal !important;
  font-variant-position: normal !important;
  font-variation-settings: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 16px !important;
  text-align: start !important;
  text-indent: 0px !important;
  text-shadow: none !important;
  text-transform: none !important;
  vertical-align: middle !important;
  word-break: break-word !important;
  word-spacing: 0px !important;
  
  /* Appearance Properties */
  color: rgba(0, 0, 0, 0.7) !important;
  background-attachment: scroll !important;
  background-clip: padding-box !important;
  background-color: rgb(255, 255, 255) !important;
  background-image: none !important;
  background-origin: padding-box !important;
  background-position-x: 0% !important;
  background-position-y: 0% !important;
  background-repeat: repeat !important;
  background-size: auto !important;
  
  /* Border Properties */
  border-bottom-color: rgba(0, 0, 0, 0.25) !important;
  border-bottom-style: solid !important;
  border-bottom-width: 1px !important;
  border-left-color: rgba(0, 0, 0, 0.25) !important;
  border-left-style: solid !important;
  border-left-width: 1px !important;
  border-right-color: rgba(0, 0, 0, 0.25) !important;
  border-right-style: solid !important;
  border-right-width: 1px !important;
  border-top-color: rgba(0, 0, 0, 0.25) !important;
  border-top-style: solid !important;
  border-top-width: 1px !important;
  border-image-outset: 0 !important;
  border-image-repeat: stretch !important;
  border-image-slice: 100% !important;
  border-image-source: none !important;
  border-image-width: 1 !important;
  -webkit-border-image: none !important;
  
  /* Border Radius */
  
  border-radius: 20px !important;
  
  /* Other Properties */
  box-shadow: none !important;
  cursor: text !important;
  outline-color: rgba(0, 0, 0, 0.7) !important;
  outline-style: none !important;
  outline-width: 0px !important;
  appearance: auto !important;
  text-rendering: auto !important;
  -webkit-rtl-ordering: logical !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  
  /* Animation Properties */
  transition-behavior: normal, normal !important;
  transition-delay: 0s, 0s !important;
  transition-duration: 0.15s, 0.15s !important;
  transition-property: border, box-shadow !important;
  transition-timing-function: ease, ease !important;
}

/* Estados de focus solo para campos dentro de elearning-form-fields */
.elearning-form-fields input:focus,
.elearning-form-fields textarea:focus,
.elearning-form-fields select:focus,
.elearning-form-fields .wpforms-form input:focus,
.elearning-form-fields .wpforms-form textarea:focus,
.elearning-form-fields .wpforms-form select:focus,
.elearning-form-fields .wpforms-field input:focus,
.elearning-form-fields .wpforms-field textarea:focus,
.elearning-form-fields .wpforms-field select:focus,
.elearning-form-fields .sp-form-elearning input:focus,
.elearning-form-fields .sp-form-elearning textarea:focus,
.elearning-form-fields .sp-form-elearning select:focus {
  outline: 2px solid rgba(0, 0, 0, 0.7) !important;
  outline-offset: 2px !important;
  border-color: rgba(0, 0, 0, 0.5) !important;
}

/* Placeholder solo para campos dentro de elearning-form-fields */
.elearning-form-fields input::placeholder,
.elearning-form-fields textarea::placeholder,
.elearning-form-fields .wpforms-form input::placeholder,
.elearning-form-fields .wpforms-form textarea::placeholder,
.elearning-form-fields .wpforms-field input::placeholder,
.elearning-form-fields .wpforms-field textarea::placeholder,
.elearning-form-fields .sp-form-elearning input::placeholder,
.elearning-form-fields .sp-form-elearning textarea::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   ESTILOS PARA CHOICES.JS (SELECT PERSONALIZADO)
   ========================================================================== */

/* Contenedor principal de Choices.js - Solo dentro de elearning-form-fields */
.elearning-form-fields .choices__inner,
.elearning-form-fields .wpforms-field-large .choices__inner,
.elearning-form-fields .wpforms-field-medium .choices__inner {
  height: 40px !important;
  min-height: 40px !important;
  padding: 2px 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 20px !important;
  background-color: rgb(255, 255, 255) !important;
  font-size: 16px !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
  color: rgba(0, 0, 0, 0.7) !important;
  line-height: 16px !important;
  transition: border-color 0.15s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Forzar el mismo tamaño para todos los contenedores de Choices - Solo dentro de elearning-form-fields */
.elearning-form-fields .choices,
.elearning-form-fields .wpforms-field-large,
.elearning-form-fields .wpforms-field-medium {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 2px !important;
  margin-top: 0px !important;
}

.elearning-form-fields div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices.is-open:before {
  height: 0px !important;
}


/* Reducir espaciado entre campos de WPForms - Solo dentro de elearning-form-fields */
.elearning-form-fields .wpforms-field {
  margin-bottom: 2px !important;
  padding-top: 5px !important;
  padding-bottom: 7px !important;
}

.elearning-form-fields .wpforms-field-row {
  margin-bottom: 2px !important;
}

/* Estados de focus para Choices.js - Solo dentro de elearning-form-fields */
.elearning-form-fields .choices.is-focused .choices__inner,
.elearning-form-fields .wpforms-field-large .choices.is-focused .choices__inner,
.elearning-form-fields .wpforms-field-medium .choices.is-focused .choices__inner {
  border-color: rgba(0, 0, 0, 0.5) !important;
  outline: 2px solid rgba(0, 0, 0, 0.7) !important;
  outline-offset: 2px !important;
}

/* Dropdown de Choices.js - Solo dentro de elearning-form-fields */
.elearning-form-fields .choices__list--dropdown {
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 20px !important;
  background-color: rgb(255, 255, 255) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
  max-width: 100% !important;
}

.elearning-form-fields .choices__item--choice {
  padding: 8px 14px !important;
  font-size: 16px !important;
  color: rgba(0, 0, 0, 0.7) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.elearning-form-fields .choices__item--choice:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Ocultar el botón de eliminar del placeholder - Solo dentro de elearning-form-fields */
.elearning-form-fields .choices__item--placeholder .choices__button {
  display: none !important;
}

/* Asegurar que el placeholder se vea igual que los otros campos - Solo dentro de elearning-form-fields */
.elearning-form-fields .choices__item--placeholder {
  color: rgba(0, 0, 0, 0.7) !important;
  font-size: 16px !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

/* ==========================================================================
   FOOTER ANCHO COMPLETO - SOLUCIÓN PARA PLUGIN HEADER FOOTER ELEMENTOR
   ========================================================================== */

/* Eliminar padding lateral y margen superior del footer principal */
.home .site-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0px !important;
  border-top: 0px !important;
  width: 100% !important;
  max-width: none !important;
}

/* Para otras páginas, mantener el footer de ancho completo pero con padding normal */
.single .site-footer,
.blog .site-footer,
.archive .site-footer,
.page:not(.home) .site-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0px !important;
  border-top: 0px !important;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Eliminar limitación de ancho del contenedor interno del footer */
.home .site-footer-inner {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.single .site-footer-inner,
.blog .site-footer-inner,
.archive .site-footer-inner,
.page:not(.home) .site-footer-inner {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Asegurar que el footer-width-fixer funcione correctamente */
.home .footer-width-fixer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single .footer-width-fixer,
.blog .footer-width-fixer,
.archive .footer-width-fixer,
.page:not(.home) .footer-width-fixer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Eliminar cualquier limitación de ancho en contenedores de Elementor dentro del footer */
.home .site-footer .elementor,
.home .site-footer .elementor-section,
.home .site-footer .elementor-container,
.home .site-footer .elementor-row,
.home .site-footer .elementor-column {
  max-width: none !important;
  width: 100% !important;
}

.single .site-footer .elementor,
.single .site-footer .elementor-section,
.single .site-footer .elementor-container,
.single .site-footer .elementor-row,
.single .site-footer .elementor-column,
.blog .site-footer .elementor,
.blog .site-footer .elementor-section,
.blog .site-footer .elementor-container,
.blog .site-footer .elementor-row,
.blog .site-footer .elementor-column,
.archive .site-footer .elementor,
.archive .site-footer .elementor-section,
.archive .site-footer .elementor-container,
.archive .site-footer .elementor-row,
.archive .site-footer .elementor-column,
.page:not(.home) .site-footer .elementor,
.page:not(.home) .site-footer .elementor-section,
.page:not(.home) .site-footer .elementor-container,
.page:not(.home) .site-footer .elementor-row,
.page:not(.home) .site-footer .elementor-column {
  max-width: none !important;
  width: 100% !important;
}

/* Asegurar que las secciones de Elementor en el footer ocupen todo el ancho */
.home .site-footer .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: none !important;
  width: 100% !important;
}

.single .site-footer .elementor-section.elementor-section-boxed > .elementor-container,
.blog .site-footer .elementor-section.elementor-section-boxed > .elementor-container,
.archive .site-footer .elementor-section.elementor-section-boxed > .elementor-container,
.page:not(.home) .site-footer .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: none !important;
  width: 100% !important;
}

/* Para secciones stretched de Elementor en el footer */
.home .site-footer .elementor-section.elementor-section-stretched {
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.single .site-footer .elementor-section.elementor-section-stretched,
.blog .site-footer .elementor-section.elementor-section-stretched,
.archive .site-footer .elementor-section.elementor-section-stretched,
.page:not(.home) .site-footer .elementor-section.elementor-section-stretched {
  width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Eliminar cualquier padding o margin que pueda estar limitando el ancho */
.home .site-footer * {
  box-sizing: border-box;
}

.single .site-footer *,
.blog .site-footer *,
.archive .site-footer *,
.page:not(.home) .site-footer * {
  box-sizing: border-box;
}

/* Asegurar que el footer ocupe todo el ancho de la ventana */
#colophon.site-footer {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
}

/* ==========================================================================
   FOOTER ANCHO COMPLETO PARA TODAS LAS PÁGINAS
   ========================================================================== */

/* Forzar ancho completo en todas las páginas */
.site-footer,
#colophon {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
}

/* Asegurar que los contenedores padre no limiten el ancho */
.wrap,
.wrap-inner,
.container,
.content-area {
  overflow: visible !important;
}

/* Para pantallas grandes, forzar ancho completo */
@media (min-width: 1947px) {
  .wrap,
  .wrap-inner {
    max-width: none !important;
    overflow: visible !important;
  }
  
  #colophon.site-footer {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }
}

/* Eliminar cualquier contenedor que pueda estar limitando el ancho */
.home .site-footer .wrap,
.home .site-footer .container,
.home .site-footer .content-area {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home .site-footer .container,
.home .site-footer .content-area {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single .site-footer .wrap,
.single .site-footer .container,
.single .site-footer .content-area,
.blog .site-footer .wrap,
.blog .site-footer .container,
.blog .site-footer .content-area,
.archive .site-footer .wrap,
.archive .site-footer .container,
.archive .site-footer .content-area,
.page:not(.home) .site-footer .wrap,
.page:not(.home) .site-footer .container,
.page:not(.home) .site-footer .content-area {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Eliminar gap del contenedor wrap-inner */
/*TODO: Revisar que se vea bien en el blog*/
.wp-singular .wrap-inner {
  gap: 0px !important;
  display: block !important;
}


/* ==========================================================================
   RESTAURAR DISEÑO CORRECTO PARA BLOGS Y OTRAS PÁGINAS
   ========================================================================== */

/* Restaurar el diseño normal para blogs y otras páginas */
.single .wrap,
.blog .wrap,
.archive .wrap,
.page:not(.home) .wrap {
  max-width: var(--site-max-width) !important;
  margin: 0 auto !important;
  padding-left: var(--wrapper-side-gutter) !important;
  padding-right: var(--wrapper-side-gutter) !important;
}

.single .wrap-inner,
.blog .wrap-inner,
.archive .wrap-inner,
.page:not(.home) .wrap-inner {
  gap: var(--wrap-inner-flex-gap) !important;
  max-width: none !important;
}

.single .content-area,
.blog .content-area,
.archive .content-area,
.page:not(.home) .content-area {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Asegurar que el contenido de los blogs mantenga su diseño */
.single .site-main,
.blog .site-main,
.archive .site-main,
.page:not(.home) .site-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   SOLUCIONAR FOOTER ANIDADO INCORRECTO EN ENTRADAS
   ========================================================================== */

/* Ocultar completamente el footer anidado incorrecto en entradas individuales */
.single .site-footer footer {
  display: none !important;
  visibility: hidden !important;
}

/* Ocultar el hentry-footer cuando está anidado incorrectamente en el site-footer */
.single .site-footer .hentry-footer,
.single .site-footer .single-hentry-footer {
  display: none !important;
  visibility: hidden !important;
}

/* Ocultar todos los elementos de compartir social cuando están en el lugar incorrecto */
.single .site-footer .tfm-share-wrapper,
.single .site-footer .tfm-share,
.single .site-footer .tfm-social-icons{
  display: none !important;
  visibility: hidden !important;
}

/* Asegurar que el footer principal se muestre correctamente en entradas */
.single .site-footer{
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}


.sp-form-elearning {
  backdrop-filter: blur(10px) !important;
}

/* Forzar que la variable --footer-color use revert y no el valor por defecto */
:root {
  --footer-color: revert !important;
}

.home .custom-logo.hidden-dark-theme{
  display: none !important;
}



.home .custom-logo.hidden-light-theme{
  display: inline-block !important;
}

/* ==========================================================================
   OCULTAR TOGGLE DE MODO DE COLOR EN PÁGINAS
   ========================================================================== */

/* Ocultar el botón de cambio de modo de color en todas las páginas excepto la home */
body:not(.home) .toggle-color-mode {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   ASEGURAR QUE EL TELÉFONO SE MUESTRE EN TODAS LAS PÁGINAS
   ========================================================================== */

/* Asegurar que el teléfono se muestre en todas las páginas */
.header-phone-text {
  display: block !important;
  visibility: visible !important;
}

/* Asegurar que el enlace del teléfono se muestre correctamente */
.header-phone-text a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  gap: 4px !important;
  visibility: visible !important;
}

/* Asegurar que el icono del teléfono se muestre */
.header-phone-text i,
.header-phone-text .icon-phone-ringing {
  display: inline-block !important;
  visibility: visible !important;
  margin-right: 0px !important;
  font-size: 16px !important;
}

/* ==========================================================================
   FORZAR VISIBILIDAD DEL TELÉFONO EN TODAS LAS PÁGINAS
   ========================================================================== */

/* Forzar que el teléfono se muestre en todas las páginas, incluso si está oculto por otros estilos */
body.blog .header-phone-text,
body.single .header-phone-text,
body.archive .header-phone-text,
body.page:not(.home) .header-phone-text,
.blog .header-phone-text,
.single .header-phone-text,
.archive .header-phone-text,
.page:not(.home) .header-phone-text {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Específicamente para el enlace del teléfono */
body.blog .header-phone-text a,
body.single .header-phone-text a,
body.archive .header-phone-text a,
body.page:not(.home) .header-phone-text a,
.blog .header-phone-text a,
.single .header-phone-text a,
.archive .header-phone-text a,
.page:not(.home) .header-phone-text a {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Específicamente para el icono */
body.blog .header-phone-text i,
body.blog .header-phone-text .icon-phone-ringing,
body.single .header-phone-text i,
body.single .header-phone-text .icon-phone-ringing,
body.archive .header-phone-text i,
body.archive .header-phone-text .icon-phone-ringing,
body.page:not(.home) .header-phone-text i,
body.page:not(.home) .header-phone-text .icon-phone-ringing,
.blog .header-phone-text i,
.blog .header-phone-text .icon-phone-ringing,
.single .header-phone-text i,
.single .header-phone-text .icon-phone-ringing,
.archive .header-phone-text i,
.archive .header-phone-text .icon-phone-ringing,
.page:not(.home) .header-phone-text i,
.page:not(.home) .header-phone-text .icon-phone-ringing {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================================================
   ESTILO PARA ÍCONOS EN ACORDEONES - AGREGADO VÍA JAVASCRIPT
   ========================================================================== */

/* Estilo para el span que contiene el ícono agregado por JavaScript */
#acordion01 .accordion-icon,
#acordion02 .accordion-icon,
#acordion03 .accordion-icon,
#acordion04 .accordion-icon {
  width: 50px !important;
  height: 50px !important;
  display: inline-block !important;
  margin-right: 12px !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Asegurar que la imagen dentro del span sea de 50x50px */
#acordion01 .accordion-icon img,
#acordion02 .accordion-icon img,
#acordion03 .accordion-icon img,
#acordion04 .accordion-icon img {
  width: 50px !important;
  height: 50px !important;
  display: block !important;
  object-fit: contain !important;
}

/* Ajustar el layout del summary para alineación perfecta */
#acordion01 summary.e-n-accordion-item-title,
#acordion02 summary.e-n-accordion-item-title,
#acordion03 summary.e-n-accordion-item-title,
#acordion04 summary.e-n-accordion-item-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Asegurar que el texto se alinee correctamente */
#acordion01 .e-n-accordion-item-title-header,
#acordion02 .e-n-accordion-item-title-header,
#acordion03 .e-n-accordion-item-title-header,
#acordion04 .e-n-accordion-item-title-header {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
}

/* Mantener el ícono de la flecha en el lado derecho */
#acordion01 .e-n-accordion-item-title-icon,
#acordion02 .e-n-accordion-item-title-icon,
#acordion03 .e-n-accordion-item-title-icon,
#acordion04 .e-n-accordion-item-title-icon {
  margin-left: auto !important;
  flex-shrink: 0 !important;
} 

* Seleccionamos la lista DENTRO de nuestro widget personalizado */
.mi-lista-personalizada ul {
  /* Reduce la indentación propia de la lista */
  padding-inline-start: 10px; 
  
  /* TRUCO EXTRA: Esto mete las viñetas "dentro" del texto, 
     ayudando a reducir visualmente el espacio. ¡Pruébalo! */
  list-style-position: inside; 
}

/* Margen inferior para after-content */
.after-content {
  margin-bottom: 30px;
}

/* Forzar listas ol y ul sin indentación cuando contienen h3 */
.elementor-widget-text-editor ol,
.entry-content ol,
article ol {
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
  margin-left: 0 !important;
  list-style-position: inside !important;
}

.elementor-widget-text-editor ol li,
.entry-content ol li,
article ol li {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.elementor-widget-text-editor ol li h3,
.entry-content ol li h3,
article ol li h3,
ol li h3,
li h3 {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}
