@font-face {
  font-family: fontawesome;
  src: url(../../../../../fonts/fa-solid-900.woff);
}

:root {
  --color-button: #3669b7;
  --color-fondo: white;
  --border-radius: 1.5rem;
  --font-size-base: 1.8rem;
  --ancho-principal: 1200px;
  --dark-color: #555351;
  --panel-bg: #0000006e;
  --input-bg: #3c3b39;
  --input-fg: rgba(255, 255, 255, 0.85);
  --ancho-principal: 120rem;
  --ancho-secundario: 120rem;
  --color-bg-inicio: #302E2B;
  --color-box: rgba(0, 0, 0, 0.15);
  font-size: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.xt-header {
  position: fixed;
  top: 0;
  width: 100%;
  border-bottom: 1px solid #6a6868;
  background-color: var(--color-fondo);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.xt-cont-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--ancho-principal);
  height: 6rem;
  padding: 0 2rem;
  margin: 0 auto;
}

.xt-header-option {
  display: flex;
  gap: 2rem;
}

.xt-logo {
  width: 20%;
  max-width: 10rem;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.xt-cont-header a img {
  width: 100%;
  height: auto;
  max-width: 10rem;
  display: block;
}

.xt-button {
  margin: 0 1.5rem;
  cursor: pointer;
}

.xt-button:hover {
  background-color: #757577;
  Color: var(--color-fondo);
}

.xt-btn-color {
  background-color: var(--color-button);
  color: white;
  padding: 0.5rem 3rem;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-button);
}

.xt-btn-color:hover {
  background-color: var(--color-fondo);
  color: var(--color-button);
}

.xt-title {
  font-size: 3.3rem;
  font-weight: bold;
  color: var(--color-title);
  text-align: center;
  margin-top: 0rem;
}

.xt-subtitle {
  font-size: 2.5rem;
  margin-top: 1rem;
  color: var(--color-subtitle);
  text-align: center;
  display: flex;
  justify-content: center;
}

.xt-comment {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--color-subtitle);
  text-align: center;
}

.xt-image img {
  border-radius: 10rem;
  margin: 0rem 5rem;
}

.ui-widget-header {
  border: none !important;
  background: #000000 !important;
  font-size: 3rem !important;
}

.ui-widget-header button {
  display: none;
}

.ui-dialog-buttonset button {
  color: white;
  width: 15rem;
  padding: 2rem;
  border: none;
  border-radius: 10px;
  background-color: #302f2e;
  font-size: 1.5rem !important;
}

.ui-dialog-buttonset button:nth-child(2) {
  background-color: #81b64c;
}

.ui-dialog-buttonset button:hover {
  background-color: #4a4947;
}

.ui-dialog-buttonset button:nth-child(2):hover {
  background-color: #9bc570;
}

/*FOOTER*/
.xt-footer {
  width: 100%;
  background-color: #000000;
  padding: 2rem 0;
  font-size: 1.6rem;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.xt-footer-container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 1rem;
}

.xt-footer-section {
  min-width: 150px;
}

.xt-section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-fondo);
}

.xt-footer-section ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.xt-footer-section li {
  margin-bottom: 0.5rem;
}

.xt-footer-section a {
  color: var(--color-fondo);
  text-decoration: none;
  transition: color 0.3s;
}

.xt-footer-section a:hover {
  color: var(--color-button);
}

.xt-footer-bottom {
  text-align: center;
  padding-top: 3rem;
  font-size: 1.4rem;
  color: var(--color-fondo);
  width: 100%;
}

.xt-body {
  background-color: var(--color-bg-inicio);
  color: white;
  background-image: linear-gradient(45deg, var(--color-box) 25%, transparent 25%), linear-gradient(-45deg, var(--color-box) 25%, transparent 25%), linear-gradient(45deg, transparent 75% 75%, var(--color-box) 75%), linear-gradient(-45deg, transparent 75%, var(--color-box) 75%);
  background-size: 3rem 3rem;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

/* Media Query para pantallas pequeñas (menos de 768px) */
@media (max-width: 768px) {
  .xt-footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .xt-footer-section {
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 1rem;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 10px 20px;
  background-color: var(--color-button);
  color: white;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 200;
}

.dropdown-toggle span:hover {
  /* background-color: #f1f1f1; */
  background-color: white;
  color: var(--color-button);
  border-radius: var(--border-radius);
}

.dropdown-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Menu center hover underline styles */
.xt-menu-center .dropdown {
  display: inline-block;
  width: auto;
}

.xt-menu-center .dropdown-toggle {
  display: inline;
  text-decoration: none;
}

.xt-menu-center .dropdown-toggle:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  background-color: transparent !important;
}

/* Estilo para el elemento del menú de la página actual */
.xt-menu-center .dropdown-toggle.menu-active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ================================================
   Dark Theme Header (used by renderHeader)
   ================================================ */
.xt-header-inicio {
  top: 0;
  width: 100%;
  border-bottom: 1px solid #6a6868;
  background-color: var(--color-bg-inicio);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.xt-cont-header-inicio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--ancho-principal);
  height: 7rem;
  padding: 0 2rem;
  margin: 0 auto;
}

.xt-media-sm-dn .xt-cont-header-inicio {
  flex-direction: column;
  flex-wrap: wrap;
  padding: 0;
  align-content: space-between;
  justify-content: space-around;
}

.xt-cont-header-inicio a img {
  width: 100%;
  height: auto;
  display: block;
}

.xt-cont-header-inicio .dropdown-toggle {
  background-color: transparent;
  border-radius: 0;
  padding: 10px 0;
}

.xt-header-inicio .dropdown-toggle {
  padding: 10px 5px;
  color: white;
  cursor: pointer;
  background-color: transparent;
  border-radius: 0;
  font-size: 1.6rem;
}

span.dropdown-toggle.xt-menu-right {
  background-repeat: no-repeat;
  padding-left: 50px;
  background-size: 40px 40px;
}

/* --- Dark Dropdown overrides for header-inicio --- */
.xt-header-inicio .dropdown-menu {
  background-color: #262522;
  border: 1px solid #6a6868;
  border-radius: 0.8rem;
  padding: 0.5rem 0;
  min-width: 16rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.xt-header-inicio .dropdown-menu a {
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.xt-header-inicio .dropdown-menu a:hover {
  background-color: rgba(255, 140, 0, 0.15);
}

.menu-active {
  color: #ff8c00 !important;
  border-bottom: 2px solid #ff8c00;
}

/* ================================================
   MENU HAMBURGUESA Y RESPONSIVE HEADER
   ================================================ */

.xt-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
  width: 4rem;
  height: 4rem;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.xt-hamburger span {
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  background-color: white;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.xt-hamburger.active span:nth-child(1) {
  transform: translateY(0.9rem) rotate(45deg);
}

.xt-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.xt-hamburger.active span:nth-child(3) {
  transform: translateY(-0.9rem) rotate(-45deg);
}

.xt-header-inicio {
  position: relative; /* Contexto para el menú absoluto */
  z-index: 1000;
}

@media (max-width: 768px) {
  .xt-hamburger {
    display: flex;
  }

  .xt-menu-center {
    display: none;
    position: absolute;
    top: 6rem; /* Altura del header en móvil */
    left: 0;
    width: 100%;
    background-color: #262522;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 2000; /* Por encima de todo */
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.6);
    border-bottom: 2px solid #ff8c00;
  }

  .xt-menu-center.xt-menu-open {
    display: flex !important;
  }

  .xt-menu-center .dropdown {
    width: 100%;
    text-align: center;
    padding: 1.2rem 0;
  }

  .xt-menu-center .dropdown-toggle {
    font-size: 1.8rem !important;
    display: block !important;
    width: 100%;
    text-decoration: none !important;
  }

  .xt-cont-header-inicio {
    padding: 0 1.5rem;
    height: 6rem !important;
  }

  .xt-logo {
    max-width: 7rem !important;
  }
}

.ui-dialog {
  background: none !important;
  background-color: var(--dark-color) !important;
}

.ui-dialog .ui-dialog-buttonpane {
  background: none !important;
}

.xt-group-panel {
  display: grid;
  grid-template-rows: min-content;
  gap: 0.7rem 0;
}

.xt-group-panel.xt-full-height {
  height: 100%;
}

.xt-group-panel .xt-title {
  font-size: unset;
  font-weight: bold;
  color: white;
  background-color: #0000006e;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.xt-group-panel .xt-body {
  padding: 1rem;
  background-color: #0000006e;
  border-radius: 0 0 0.5rem 0.5rem;
}

.xt-group-panel .xt-full-width {
  width: 100%;
}

.xt-input {
  background-color: var(--input-bg);
  color: var(--input-fg);
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
}

/* Custom Facebook Button */
.btn-facebook {
  background-color: #1877F2;
  color: white;
  border: 1px solid #1877F2;
  border-radius: 4px;
  padding: 0 10px;
  font-family: Roboto, arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  transition: background-color 0.2s;
}

.btn-facebook:hover {
  background-color: #166fe5;
}

.fb-icon {
  background: white;
  color: #1877F2;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  font-family: sans-serif;
}

.ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.xt-panel-dialog.noclose.undefined.ui-dialog-buttons.ui-draggable {
  z-index: 1001 !important;
}

/* Password Visibility Toggle */
.xt-password-container {
  position: relative;
  width: 100%;
  display: block;
}

.xt-password-container input {
  width: 100% !important;
  padding-right: 4.5rem !important; /* Espacio para el ojo */
}

/* Clases manuales para FontAwesome si no están en el framework */
.fa, .fas {
  font-family: 'fontawesome' !important;
  font-style: normal;
  font-weight: 900;
  display: inline-block;
  text-decoration: inherit;
}

.fa-eye::before { content: "\f06e"; }
.fa-eye-slash::before { content: "\f070"; }

.toggle-password {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 2.2rem; /* Un poco más grande para que se vea mejor */
  z-index: 99;
  transition: color 0.2s, transform 0.2s;
  background: transparent;
  border: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.toggle-password:hover {
  color: #ff8c00; /* Color naranja para resaltar */
  transform: translateY(-50%) scale(1.1);
}


/* Ocultar iconos nativos de navegadores (Edge/Chrome/IE) */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}

input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}
