/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/* =========================================================
   1) VARIABLES UI (Base Light + Dark) + TOKENS
   ========================================================= */

/* Base (Light) */
:root{
  /* Core surfaces */
  --ui-surface: #ffffff;
  --ui-surface-2: #f9fafb;
  --ui-page-bg: #ffffff; /* light page background */
--ui-elements-alt-bg:#F7FAFD;
--ui-elements-border:#e8eef8;
--ui-elements-bg: #ffffff;
    --ul-liborder:#e5eff7;


  


  /* Core text */
  --ui-text: #111827;
  --ui-a-text: #0A47A5;
  --ui-muted: #6b7280;
  --ui-red:#F61937;

  /* Core borders */
  --ui-border: rgba(17, 24, 39, 0.12);
  --border-soft: 1px solid var(--ui-border);

  /* Base colors */
  --ui-white: #ffffff;
  --ui-black: #000000;
  --ui-hover-dark: #333333;

  /* Brand */
  --brand-blue: #0A47A5; /* headings + links */
  --brand-blue-2: #005aa9; /* botones */
  --brand-red: #ec1c24;
  --brand-red-2: #f61834; /* back-to-top */

  /* Semantic */
  --success: #01da5d;
  --neutral: #767676;

  /* Typography */
  --font-sans: "Inter", "Montserrat", sans-serif;
  --font-heading: "Montserrat", Sans-serif;

  /* Radius */
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Sizing */
  --size-toggle: 44px;
  --login-max: 420px;
  --modal-card-max: 460px;

  /* Shadows */
  --shadow-sm: 0 10px 18px rgba(0,0,0,0.08);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 25px 60px rgba(0,0,0,0.12);
  --shadow-btn: 0 10px 25px rgba(38, 141, 249, 0.35);
  --shadow-btn-2: 0 5px 15px rgba(38, 141, 249, 0.2);
  --shadow-modal: 0 18px 60px rgba(0,0,0,0.25), 0 2px 12px rgba(0,0,0,0.10);

  /* Focus ring */
  --focus-ring: 0 0 0 4px rgba(10, 71, 165, 0.25);

  /* Overlay */
  --overlay-scrim: rgba(10, 12, 16, 0.55);
  --overlay-scrim-dark: rgba(0, 0, 0, 0.68);

  /* Motion */
  --dur-fast: 160ms;
  --dur-med: 220ms;
  --dur-slow: 260ms;
  --ease-standard: ease;
  --ease-spring: cubic-bezier(.2,.8,.2,1);
}

/* Dark (solo afecta elementos que usen var()) */
:root[data-theme="dark"]{
  --ui-page-bg: #00102A; /* your dark body background */
  --ui-surface: #0b1220;
  --ui-surface-2: #0f172a;
  --ui-text: #fff;
  --ui-a-text: #fff;
  --ui-muted: #9ca3af;
  --ui-border: rgba(229, 231, 235, 0.14);
  --ui-elements-bg:#013179;
  --ui-elements-alt-bg:#013179;
  --ui-elements-border:#0A47A5;
  --ui-imgconvert: brightness(0) invert(1);
  --ul-liborder:#0e1a3f;
  --ui-red:#F61937;
  

  /* overlay más fuerte en dark */
  --overlay-scrim: var(--overlay-scrim-dark);
}



body{
  background-color: var(--ui-page-bg);
  color: var(--ui-text);
}

.elementor-widget-text-editor {
    color: var(--ui-text);
}

.elementor-widget-image-box {
    background-color: var(--ui-elements-bg);
}

.elementor-image-box-title {
    color: var(--ui-a-text)!important;
}

.elementor-image-box-description {
    color: var(--ui-text)!important;
}

.elementor-widget-image-box{
    border-color: var(--ui-elements-border)!important;
}

.head-master{
    background-color: var(--ui-elements-bg)!important;
}

.elementor-widget-button {
    background-color: var(--ui-elements-alt-bg)!important;
}

.head-master img{
  filter: var(--ui-imgconvert) !important;
}

#metodos img, .page-juega-con-responsabilidad .boxed img{
  filter: var(--ui-imgconvert) !important;
}

.elementor-nav-menu--main .elementor-item {
    color: var(--ui-a-text)!important; 
  }

  .elementor-widget-n-accordion .e-n-accordion-item-title, .elementor-widget-n-toggle .e-n-toggle-item-title {
    color: var(--ui-a-text)!important; 
  }
  .elementor-widget-n-accordion .e-n-accordion-item .e-n-accordion-item-title-icon span>svg {
    fill: var(--ui-a-text);
}

.elementor-widget-n-accordion .e-n-accordion-item[open]>.e-n-accordion-item-title .e-n-accordion-item-title-icon span>svg {
     fill: var(--ui-a-text);
}

.e-n-accordion-item .elementor-element {
    border: 0px!important;
}
  

  #boxed .elementor-icon-list-text,#boxed h3{color: var(--ui-a-text);}
  #boxed svg{fill: var(--ui-a-text);}

  #medotos .btn-login a{
    color: var(--ui-white)!important;
}


  .ingreso a{
    color: var(--ui-a-text)!important;
    border-color: var(--ui-a-text)!important;
}

#metodos p {
    margin: 0;
}




.page-promociones .elementor-widget-button {
    border-bottom-left-radius: 12px!important;
    border-bottom-right-radius: 12px!important;
}

.juancito-card {
background-color: var(--ui-elements-alt-bg)!important;
border: 1px solid var(--ui-elements-border)!important;
}

.juancito-tab:hover { border: (--ui-elements-border)!important;
}

.juancito-name ,.juancito-text ,.juancito-ico {
    color: var(--ui-a-text)!important; 
  }

  .juancito-featured-toggle { color: var(--brand-blue);}

    #jsform{ background-color: var(--ui-elements-alt-bg);}

    #jsform h3{
    color: var(--ui-a-text)!important; 
  }

  h1.elementor-heading-title, h2.elementor-heading-title, h3.elementor-heading-title {color: var(--ui-a-text)!important; 
}

.head-master .elementor-icon, .the-icon {
    color: var(--ui-a-text)!important; 
    border-color: var(--ui-a-text)!important; 
}

.head-master .elementor-icon svg, .out-wrapper svg, .elementor-menu-toggle svg{
    fill: var(--ui-a-text)!important; 
}


#boxed .e-child, .boxed .e-child {background-color: var(--ui-elements-alt-bg)!important;}

#boxed .elementor-icon-box-title, #boxed .elementor-icon-box-description, .boxed .elementor-icon-box-title, .boxed .elementor-icon-box-description { color:var(--ui-a-text)!important;}

.elementor-toc__body .elementor-toc__list-item-text, .elementor-toc__header-title  {
    color:var(--ui-a-text)!important;
} 

.elementor-widget-table-of-contents {border-color: var(--ui-elements-alt-bg)!important;}

.elementor-toc__header {
    border-bottom: var(--separator-width, 1px) solid var(--ui-elements-alt-bg)!important;}


    .elementor-nav-menu--dropdown {
    background-color: var(--ui-page-bg);
}

.mob .elementor-nav-menu--dropdown a{
   color:var(--ui-a-text)!important;
}


.mob .current-menu-item .elementor-item-active{
    color: var(--ui-white)!important; 
}

.mob .elementor-nav-menu--dropdown a:focus, .mob .elementor-nav-menu--dropdown a:hover {
    color: var(--ui-white)!important;
}



.elementor-nav-menu--dropdown li:not(:last-child) {
    border-color: var(--ul-liborder)!important;
}

/* =========================================================
   2) ELEMENTOR – N MENU
   ========================================================= */

.elementor-widget-n-menu .e-n-menu-heading{
  display: block;
}

.elementor-widget-n-menu .e-n-menu-item{
  display: block;
  margin: 5px;
  cursor: pointer;
}


/* =========================================================
   3) REGLAS (tipografía y contenido)
   ========================================================= */

.reglas h3{
  font-family: var(--font-heading);
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--brand-blue);
  text-transform: uppercase;
  display: table;
}

.reglas h4{
  font-family: var(--font-heading);
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ui-black);
  text-transform: uppercase;
  display: table;
}

.reglas ul{
  padding-bottom: 20px;
}

.reglas li{
  margin-bottom: 8px;
}

.reglas img{
  margin: 1rem 0;
}


/* =========================================================
   4) TABLAS CON SCROLL HORIZONTAL
   ========================================================= */

.table-scroll{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table-scroll table{
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}


/* =========================================================
   5) BOTÓN BACK TO TOP
   ========================================================= */

.back-to-top{
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--brand-red-2);
  color: var(--ui-white);
  width: 75px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-standard), visibility 0.3s var(--ease-standard), transform 0.3s var(--ease-standard);
  z-index: 9999;
}

.back-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover{
  background: var(--ui-hover-dark);
}


/* =========================================================
   6) LOGIN – TÍTULO + FORM
   ========================================================= */

.login-title{
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 24px;
  color: var(--ui-text);
  letter-spacing: -0.5px;
}

.custom-login-form{
  max-width: var(--login-max);
  margin: 0px auto 80px;
  padding: 40px 36px;
  background: var(--ui-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-sans);
  transition: all 0.3s var(--ease-standard);
}

.custom-login-form:hover{
  box-shadow: var(--shadow-lg);
}

.custom-login-form input[type="text"],
.custom-login-form input[type="password"]{
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e4e7ec; /* lo dejo hardcoded porque está “bonito” y no se repite fuera */
  font-size: 15px;
  transition: all 0.25s var(--ease-standard);
  outline: none;
}

.custom-login-form input:focus{
  background: var(--ui-white);
  border-color: var(--brand-blue-2);
  box-shadow: 0 0 0 3px rgba(0, 90, 169, 0.12); /* específico del focus */
}

.custom-login-form input::placeholder{
  font-weight: 400;
}

.custom-login-form button{
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 25px;
  border: none;
  background: var(--brand-blue-2);
  color: var(--ui-white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-standard);
  letter-spacing: 0.5px;
}

.custom-login-form button:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.custom-login-form button:active{
  transform: translateY(0);
  box-shadow: var(--shadow-btn-2);
}


/* Responsive – login + slider background */
@media (max-width: 500px){
  .custom-login-form{
    margin: 40px 20px;
    padding: 30px 20px;
  }

  .elementor-slides .swiper-slide-bg{
    background-position: -150px top;
  }
}


/* =========================================================
   7) TERMS PAGE HEADINGS
   ========================================================= */

.terms h2{
  font-weight: 600;
  color: var(--ui-a-text);
  font-size: 20px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.terms h3{
  font-weight: 600;
  color: var(--ui-a-text);
  font-size: 18px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 767px){
  .terms h2{
    font-size: 17px;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .terms h3{
    font-size: 15px;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
}


/* =========================================================
   8) READ MORE HELPERS + LINKS
   ========================================================= */

.more{
  display: inline;
}

.read-more{
  cursor: pointer;
  text-decoration: underline;
}

.elementor-widget-text-editor a{
  color: var(--brand-blue) !important;
}


/* =========================================================
   9) ELEMENTOR / SWIPER TWEAKS
   ========================================================= */

.swiper-wrapper,
.elementor-slides-wrapper{
  border-radius: var(--radius-md) !important;
}

.elementor-image-box-title{
  margin: 0;
}

.page-promociones .elementor-image-box-content{
  padding: 0 1rem;
}

.page-promociones .elementor-image-box-img img{
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.page-nosotros .elementor-icon-box-description{
  margin-left: -2rem;
}

.page-nosotros .nuestros_valores{
  display: flex;
  gap: 40px;
}

.page-nosotros .nuestros_valores ul{
  list-style-type: disc;
  padding-left: 0px;
  margin: 0;
}

.page-nosotros .nuestros_valores li::marker{
  color: #D11127; /* si esto es marca secundaria, lo convertimos después */
}

.page-nosotros .nuestros_valores li{
  font-size: 13px;
}


/* =========================================================
   10) IFRAME GLOBAL
   ========================================================= */

iframe{
  min-height: 500px;
}


/* =========================================================
   11) HEC MODALS (Login + Cuenta)
   ========================================================= */

/* Bloquear scroll cuando el modal está abierto */
html.hec-modal-open,
body.hec-modal-open{
  overflow: hidden;
}

/* Wrapper del modal */
.hec-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  padding: 24px;
}

.hec-modal.is-open{
  display: block;
}

/* Backdrop */
.hec-modal__backdrop{
  position: absolute;
  inset: 0;
  background: var(--overlay-scrim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-standard);
  pointer-events: auto;
}

.hec-modal.is-open .hec-modal__backdrop{
  opacity: 1;
}

/* Dialog centrado */
.hec-modal__dialog{
  position: relative;
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Card */
.hec-modal__card{
  width: min(var(--modal-card-max), 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-modal);
  overflow: hidden;

  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur-slow) var(--ease-standard);
  pointer-events: auto;
}

.hec-modal.is-open .hec-modal__card{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header */
.hec-modal__header{
  padding: 18px 18px 12px;
  text-align: center;
  position: relative;
}

.hec-modal__header--compact{
  padding: 18px;
}

.hec-modal__logo{
  max-width: 170px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.08));
}

.hec-modal__title{
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: var(--brand-blue-2);
  text-align: left;
  font-weight: 700;
}

/* Botón cerrar */
.hec-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--brand-red) !important;
  color: var(--ui-white);
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 0;
  cursor: pointer;
  padding: 0 0 7px 0;
  z-index: 1;
}

.hec-modal__close:hover{
  background: var(--brand-red);
}

/* Body */
.hec-modal__body{
  padding: 10px 22px 22px;
}

/* Alerta */
.hec-alert{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 12px;
  background: rgba(219, 75, 104, 0.10);
  border: 1px solid rgba(219, 75, 104, 0.35);
  color: rgba(130, 18, 40, 0.95);
  box-shadow: 0 10px 18px rgba(219, 75, 104, 0.08);
  margin-bottom: 14px;
  text-align: center;
}

.hec-alert__icon{ display: none; }
.hec-alert__close{ display: none; }

.hec-alert__text{
  flex: 1 1 auto;
  font-weight: 600;
  line-height: 1.35;
}

/* Form */
.hec-form{
  padding: 16px;
}

.hec-field{
  margin-bottom: 12px;
}

.hec-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(20, 24, 32, 0.72);
  margin: 0 0 6px 2px;
}

.hec-input{
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(20, 24, 32, 0.10) !important;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(20, 24, 32, 0.92);
  padding: 0 14px !important;
  outline: none;
  transition: border-color 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard), background 180ms var(--ease-standard) !important;
}

.hec-input::placeholder{
  color: rgba(20, 24, 32, 0.42);
}

.hec-input:focus{
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(255, 255, 255, 1);
}

/* Botones base */
.hec-btn,
#hec-login-submit{
  width: 100%;
  height: 48px;
  border-radius: 25px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ui-white);
  background: var(--brand-blue-2);
  transition: transform var(--dur-fast) var(--ease-standard), filter var(--dur-fast) var(--ease-standard), box-shadow 200ms var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#hec-login-submit:hover{
  background: var(--brand-red);
}

.hec-btn:active,
#hec-login-submit:active{
  transform: translateY(0);
  filter: brightness(0.98);
}

/* Acciones dentro del modal cuenta */
.hec-actions{
  display: flex;
  gap: 10px;
}

/* Variantes */
.hec-btn--ghost,
.hec-btn--soft,
.hec-btn--danger{
  box-shadow: none;
  border: 0;
  border-radius: 25px;
  padding: 8px 0 !important;
  height: 2.2em;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1em;
}

.hec-btn--ghost{
  background: var(--success);
  color: var(--ui-white) !important;
  width: 125px;
}

.hec-btn--soft{
  background: var(--neutral);
  color: var(--ui-white) !important;
  width: 125px;
}

.hec-btn--danger{
  background: var(--brand-red);
  color: var(--ui-white);
  width: 20%;
}

/* Logout */
.out-wrapper{
  width: 60px;
  display: flex;
  position: absolute;
  right: 25px;
}

.out-wrapper svg{
  width: 30px;
  margin-left: 10px;
  top: 5px;
  position: relative;
}

.the-icon{
  color: var(--brand-blue);
  font-size: 15px;
  display: block;
  position: relative;
  top: 5px;
}

.the-arrow{
    top: -3px;
    position: relative;
}

/* Links */
.hec-links{
  margin-top: 12px;
  text-align: center;
}

.hec-link{
  font-weight: 700;
  text-decoration: underline;
  color: var(--brand-red);
  padding: 6px 10px;
  border-radius: 10px;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}

.hec-link:hover{
  background: rgba(20, 24, 32, 0.06);
  color: rgba(20, 24, 32, 0.92);
  transform: translateY(-1px);
}

/* Métricas */
.hec-metrics{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.hec-metric{
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(245, 247, 250, 0.70);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hec-metric__label{
  font-weight: 600;
  color: rgba(20, 24, 32, 0.70);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.hec-metric__value{
  font-weight: 600;
  color: rgba(20, 24, 32, 0.92);
}

/* Balance en menú */
.menu-txt{
  font-size: 13px;
  margin-left: 7px;
  top: 2px;
  position: relative;
}


/* =========================================================
   12) HEADER VISIBILITY (Logged IN / OUT)
   ========================================================= */

.head-master .elementor-icon,
.main-head .elementor-icon{
  display: flex;
}

/* Producción: ocultar por defecto, PERO no dentro de Elementor */
body:not(.hec-elementor-context) .head-master{
  display: none;
}

/* Logged OUT */
body.session-logged-out:not(.hec-elementor-context) .header-guest{
  display: block;
}

/* Logged IN */
body.session-logged-in:not(.hec-elementor-context) .header-user{
  display: block;
}

/* En Elementor: muéstralos para editar */
body.hec-elementor-context .head-master{
  display: block;
}


/* =========================================================
   13) RESPONSIVE – MODALS
   ========================================================= */

@media (max-width: 480px){
  .hec-modal{
    padding: 14px;
  }

  .hec-modal__body{
    padding: 10px 16px 18px;
  }

  .hec-form{
    padding: 14px;
  }

  .out-wrapper{
    width: 60px;
    display: flex;
    position: absolute;
    right: 0;
    bottom: 24px;
  }

  .the-icon{
    display: none;
  }

  .the-arrow{
    top: 8px;
    position: relative;
}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .hec-modal__backdrop,
  .hec-modal__card,
  .hec-input,
  .hec-btn,
  #hec-login-submit,
  .hec-link,
  .hec-modal__close{
    transition: none !important;
  }
}


/* =========================================================
   14) THEME TOGGLE (Font Awesome)
   ========================================================= */

.theme-toggle{
  border: 0px solid var(--ui-border);
  color: var(--ui-text);
  width: var(--size-toggle);
  height: var(--size-toggle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-icon{
  font-size: 14px;
  line-height: 1;
}

/* Por defecto (light): muestra luna */
.theme-icon--sun{ display: none; }
.theme-icon--moon{ display: inline-block; }

/* En dark: muestra sol */
:root[data-theme="dark"] .theme-icon--sun{ display: inline-block; }
:root[data-theme="dark"] .theme-icon--moon{ display: none; }


/* =========================================================
   15) DARK/LIGHT READY – UI CUSTOM (sin tocar Elementor global)
   ========================================================= */

.login-title{
  color: var(--ui-text);
}

.custom-login-form{
  background: var(--ui-elements-bg);
  color: var(--ui-text);
  border: var(--border-soft);
}

.custom-login-form input[type="text"],
.custom-login-form input[type="password"]{
  border-color: var(--ui-border);
}

.custom-login-form input::placeholder{
  color: var(--ui-muted);
}

.custom-login-form button{
  background: var(--brand-blue);
}

.terms h2,
.terms h3{
  color: var(--ui-a-text);
}

.reglas h3{
  color: var(--ui-a-text);
}

.reglas h4{
  color: var(--ui-a-text);
}


/* =========================================================
   16) DARK/LIGHT READY – HEC MODALS (solo colores por variables)
   ========================================================= */

/* Card con fallbacks por compatibilidad (por si color-mix no existe) */
.hec-modal__card{
  background: rgba(255,255,255,0.92);
  background: color-mix(in srgb, var(--ui-elements-bg) 92%, transparent) !important;

  border-color: rgba(17, 24, 39, 0.12);
  border-color: color-mix(in srgb, var(--ui-border) 70%, transparent) !important;
}

.hec-modal__title{
  color: var(--ui-text) !important;
}

/* Inputs dentro del modal */
.hec-input{
  border-color: var(--ui-border) !important;
}

.hec-input::placeholder{
  color: var(--ui-muted) !important;
}

/* Métricas con fallback */
.hec-metric{
  background: rgba(245, 247, 250, 0.70);
  background: color-mix(in srgb, var(--ui-surface-2) 80%, transparent) !important;
  border-color: var(--ui-border) !important;
}

.hec-metric__label{
  color: var(--ui-muted) !important;
}

.hec-metric__value{
  color: var(--ui-text) !important;
}

/* Links dentro del modal */
.hec-links,
.hec-links a{
  color: var(--ui-text) !important;
}


/* =========================================================
   17) THEME TOGGLE – HARDEN + ACCESIBILIDAD
   ========================================================= */

/* Refuerzo si Elementor pisa estilos */
.theme-toggle{
  border: 0px solid var(--ui-elements-border) !important;
  background:transparent!important;
  color:var(--ui-a-text)!important;
}

.theme-toggle:focus-visible{
  outline: 0;
}


/* Floating theme toggle (site-wide) */
.theme-toggle--floating {
    position: relative;
    right: 0;
    bottom: 0px;
    z-index: 99999;
    width: 33px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 200ms ease;
    padding: 0px;
}



/* Mobile: keep it out of the way */
@media (max-width: 480px){
  .theme-toggle--floating{
    right: 12px;
    bottom: 52px;
    width: 42px;
    height: 42px;
  }
}
@media all and (min-width:1023px){
	

    
    .mob {display:none!important;}
    
}

/* If you use a back-to-top button, avoid overlap */
.back-to-top.show ~ .theme-toggle--floating{
  bottom: 52px;
}