/* =========================================
   1. CONFIGURACIÓN BÁSICA Y FUENTES
   ========================================= */
@font-face {
  font-family: 'Jesaya Book';
  src: url('../fonts/jesaya-book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* RESET IMPORTANTE: Evita que bordes sumen ancho */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-image: url('../assets/img/backgrounds/fondo-web-monograma-digitalkits.png');
  background-size: 500px;
  /* Ajustado al doble para que el patrón sea más grande */
  background-repeat: repeat;
  font-family: 'Jesaya Book', sans-serif;
  letter-spacing: 1px;
  padding-top: 130px;
}

::selection {
  background: #bca364;
  color: #ffffff;
}

::-moz-selection {
  background: #bca364;
  color: #ffffff;
}

::-webkit-selection {
  background: #bca364;
  color: #ffffff;
}

.digital,
.tm {
  color: #ffffff;
}

.kits {
  color: #bca364 !important;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================================
   2. CABECERA (HEADER)
   ========================================= */
.cabecera-principal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.fila-superior {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 50px;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
  position: relative;
}

.area-logo {
  display: flex;
  align-items: center;
  width: auto;
  z-index: 2;
  margin-right: auto;
}

.logo-link {
  display: block;
}

.logo-barra {
  height: 50px;
  vertical-align: middle;
}

.area-busqueda {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.input-busqueda {
  width: 100%;
  padding: 12px 60px 12px 25px;
  border: 2px solid #bca364;
  border-radius: 50px;
  font-family: 'Jesaya Book', sans-serif;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
}

.input-busqueda:focus {
  box-shadow: 0 0 5px rgba(188, 163, 100, 0.4);
}

.boton-lupa {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.boton-lupa:hover {
  transform: translateY(-50%) scale(1.1);
}

.icono-lupa {
  height: 22px;
  width: auto;
  display: block;
}

.area-idioma {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  z-index: 2;
}

#btn-language {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
  display: flex;
}

#btn-language:hover {
  transform: scale(1.1);
}

#img-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
}

.area-iconos {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
  z-index: 2;
}

.icono-cabecera {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #bca364;
  transition: transform 0.2s;
  width: auto;
}

.icono-img {
  height: 30px;
  width: auto;
  display: block;
}

.icono-cabecera:hover {
  transform: scale(1.15);
  color: #a68c4e;
}

.fila-inferior {
  height: 50px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #bca364;
  box-sizing: border-box;
}

.menu-escritorio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.menu-escritorio li a {
  text-decoration: none;
  color: #bca364;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  display: block;
  font-family: 'Jesaya Book', sans-serif;
}

.menu-escritorio li a:hover {
  background-color: #bca364;
  color: #FFFFFF;
}

.menu-hamburguesa {
  display: none;
  color: #bca364;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
  padding: 0 10px;
}

.menu-desplegable {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 250px;
  background-color: #FFFFFF;
  padding: 10px 0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  height: 0;
  overflow: hidden;
  transition: height 0.6s ease-in-out;
  z-index: 999;
  border-right: 3px solid #bca364;
}

.menu-desplegable.abierto {
  height: auto;
  min-height: 350px;
}

.lista-menu-movil {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-desplegable a,
.lista-menu-movil li a {
  display: block;
  color: #bca364;
  text-decoration: none;
  font-size: 18px;
  font-family: 'Jesaya Book', sans-serif;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.menu-desplegable a:hover,
.lista-menu-movil li a:hover {
  background-color: #bca364;
  color: #FFFFFF;
}

@media (max-width: 900px) {
  body {
    padding-top: 80px;
  }

  .fila-inferior {
    display: none;
  }

  .fila-superior {
    height: 70px;
    border-bottom: 3px solid #bca364;
    padding: 0 20px;
  }

  .menu-hamburguesa {
    display: block;
  }

  .area-busqueda {
    display: none;
  }

  .area-idioma {
    display: none;
  }

  .area-logo {
    width: auto;
    flex-grow: 1;
    margin-right: 0;
  }

  .area-iconos {
    width: auto;
    gap: 15px;
  }

  .logo-barra {
    height: 40px;
  }
}


/* =========================================
   3. HERO LAYOUT (3 BLOQUES IZQUIERDA ALINEADOS)
   ========================================= */
.bienvenida {
  margin-top: 30px;
  text-align: center;
}

.carrusel-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  gap: 20px;
}

/* Columna Izquierda: 22% */
.columna-lateral-izq {
  flex: 0 0 22%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* Espacio vertical */
}

/* 1. Caja Logos (300px fijo) */
.box-izq {
  width: 100%;
  height: 300px;
  background-color: #000000;
  border: 5px solid #bca364;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 2. Caja Promo Pequeña (85px - Alinea con centro: 300+15+85=400) */
.promo-box {
  width: 100%;
  height: 85px;
  background-color: #000000;
  border: 5px solid #bca364;
  /* Borde igualado a 5px */
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3. Banner Ads (Largo) */
.ads-skyscraper {
  width: 100%;
  min-height: 600px;
  background-color: #000000;
  border: 5px solid #bca364;
  /* Borde igualado a 5px */
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-label {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  font-family: 'Jesaya Book', sans-serif;
}

.ads-placeholder {
  width: 100%;
  flex-grow: 1;
  border: 1px dashed #333;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  font-size: 12px;
}

/* Columna Central (400px Altura fija) */
.carrusel-container {
  flex: 0 0 52%;
  height: 400px;
  /* Alineación perfecta con 300+15+85 */
  background-color: transparent;
  border: 5px solid #bca364;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* Contenido Carrusel: Centrado total */
.carrusel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centrado Vertical */
  align-items: center;
  /* Centrado Horizontal */
  padding: 30px;
  text-align: center;
  background-size: cover;
  background-position: center;
  z-index: 1;
  color: #ffffff;
}

.contenido-centrado {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* 1. Texto base en blanco (Títulos y párrafos) */
.carrusel-item h1,
.carrusel-item h2,
.carrusel-item p {
  color: #ffffff !important;
}

/* 2. Colores específicos para la marca (AQUÍ ESTÁ LA MAGIA) */
.carrusel-item span.digital {
  color: #ffffff !important;
}

.carrusel-item span.tm {
  color: #ffffff !important;
}

.carrusel-item span.kits {
  color: #bca364 !important;
}

/* Dorado forzado */

#item-bienvenida {
  background: url('https://via.placeholder.com/800x300/000000/ffffff?text=Bienvenida') no-repeat center center;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 100%);
  z-index: 0;
  pointer-events: none;
}

/* 1. CONTENEDOR PRINCIPAL: Centrado absoluto */
.carrusel-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;

  /* FLEXBOX COLUMNA */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Centra todo verticalmente en el bloque */
  align-items: center;
  /* Centra todo horizontalmente */

  padding: 20px;
  /* Un poco menos de padding para evitar desbordes */
  box-sizing: border-box;
  /* Vital para que no se deforme */

  text-align: center;
  background-size: cover;
  background-position: center;
  z-index: 1;
  color: #ffffff;
}

/* 2. EL TÍTULO: Aquí controlas la distancia */
.carrusel-item h1 {
  font-size: 36px;

  /* --- DISTANCIA CON LO DE ABAJO --- */
  margin-bottom: 0px;
  /* Cambia este número (10px, 20px, 30px...) */
  /* ---------------------------------- */

  margin-top: 0;
  /* Resetea margen superior para que no empuje */
  line-height: 1.2;
  /* Evita que el texto ocupe mucha altura invisible */
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

/* 3. EL LOGO O TEXTO DE ABAJO: Sin márgenes extraños */
.logo-abajo,
.carrusel-item h2,
.carrusel-item p {
  margin: 10px;
  /* Quitamos márgenes por defecto para que no descuadren */
  max-width: 100%;
  /* Evita que la imagen se salga del ancho */
  height: auto;
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

.timeline-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 0;
  background-color: #FFFFFF;
  animation: timeline 5s linear infinite;
  z-index: 2;
}

@keyframes timeline {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

.carrusel-botones {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}

.carrusel-btn {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s;
}

.triangulo-arriba {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #FFFFFF;
  transition: 0.3s;
}

.triangulo-abajo {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #FFFFFF;
  transition: 0.3s;
}

.carrusel-btn:hover .triangulo-arriba {
  border-bottom-color: #bca364;
}

.carrusel-btn:hover .triangulo-abajo {
  border-top-color: #bca364;
}

/* Columna Derecha (400px total) */
.right-panel {
  flex: 0 0 22%;
  height: 400px;
  /* Igual que el centro */
}

.side-panel {
  width: 100%;
  background-color: #000000;
  border: 5px solid #bca364;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

#panel-noticias {
  display: flex;
  flex-direction: column;
}

.news-item {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #bca364;
  cursor: pointer;
  transition: none !important;
  color: #ffffff;
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-family: 'Jesaya Book', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-item.item-activo {
  background-color: #bca364 !important;
  color: #ffffff !important;
  border-left: 4px solid #bca364;
  padding-left: 16px;
  font-weight: bold;
}

.news-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .carrusel-wrapper {
    flex-direction: column;
    gap: 10px;
    width: 95%;
  }

  .columna-lateral-izq,
  .carrusel-container,
  .right-panel {
    width: 100%;
    flex: none;
    height: auto;
  }

  .box-izq,
  .side-panel {
    height: 200px;
  }

  .carrusel-container {
    height: 300px;
  }

  .promo-box {
    height: 100px;
  }
}


/* =========================================
   4. BLOG / NOVEDADES (PÁGINA INTERNA)
   ========================================= */
.seccion {
  padding: 80px 20px 20px;
  text-align: center;
  color: #ffffff;
}

.seccion h2 {
  color: #bca364;
  font-family: 'Jesaya Book', sans-serif;
  text-transform: uppercase;
  font-size: 36px;
  margin-bottom: 10px;
}

#post-form-container {
  margin: 20px auto;
  width: 90%;
  max-width: 400px;
  text-align: left;
}

#toggle-post-form {
  background-color: #bca364;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  font-family: 'Jesaya Book', sans-serif;
}

.post-form {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  margin: 10px auto 20px;
  color: #333333;
}

.post-form h3 {
  color: #bca364;
  margin-bottom: 15px;
  font-family: 'Jesaya Book', sans-serif;
}

.post-form input,
.post-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bca364;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Jesaya Book', sans-serif;
}

.post-form button {
  background-color: #bca364;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Jesaya Book', sans-serif;
  margin-right: 10px;
}

.posts-container {
  width: 90%;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.post {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  border: 3px solid #bca364;
  width: calc(25% - 20px);
  box-sizing: border-box;
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.post-vacio {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  border: 3px solid #bca364;
  width: calc(25% - 20px);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.post-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.post h3 {
  color: #bca364;
  margin-bottom: 0;
  font-size: 20px;
  flex-shrink: 0;
  font-family: 'Jesaya Book', sans-serif;
}

.post .post-texto {
  font-size: 16px;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  position: relative;
  padding-right: 70px;
  line-height: 1.5;
}

.post .post-texto .leer-mas {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #bca364;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Jesaya Book', sans-serif;
}

.post .post-meta {
  font-size: 14px;
  color: #666666;
  margin: 0 0 10px 0;
  flex-shrink: 0;
}

.post button {
  background-color: #bca364;
  color: #FFFFFF;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Jesaya Book', sans-serif;
  margin-right: 10px;
}

.post-detalle {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  color: #333333;
}

.post-image-full {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.post-detalle h2 {
  font-size: 28px;
  color: #bca364;
  margin-bottom: 10px;
  font-family: 'Jesaya Book', sans-serif;
}

.volver {
  color: #bca364;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Jesaya Book', sans-serif;
  display: inline-block;
  margin-top: 20px;
}


/* =========================================
   5. TIENDA / PRODUCTOS / CATEGORÍAS
   ========================================= */
.by-digitalkits {
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Jesaya Book', sans-serif;
}

.logo-dkshop {
  height: 20px;
  margin-left: 5px;
}

.categorias-tienda {
  background-color: #bca364;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fila-botones {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
  height: 50%;
}

.boton-categoria {
  background-color: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  padding: 10px;
  cursor: pointer;
  width: 33.33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boton-categoria .icono {
  width: 43px;
  height: 43px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.boton-categoria:hover {
  background-color: #FFFFFF;
  color: #bca364;
}

.tienda {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.producto {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  color: #333333;
}

.producto h3 {
  font-size: 20px;
  color: #bca364;
  margin-bottom: 10px;
  font-family: 'Jesaya Book', sans-serif;
}

.boton-compra {
  background-color: #bca364;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Jesaya Book', sans-serif;
}


/* =========================================
   6. FORMULARIOS (Perfil, Contacto)
   ========================================= */
.form-container,
.perfil-container,
.contacto-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bca364;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Jesaya Book', sans-serif;
}

.form-container button,
.perfil-container button {
  background-color: #bca364;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Jesaya Book', sans-serif;
}


/* =========================================
   7. MODELO 3D
   ========================================= */
#modelo-3d-container {
  width: 90%;
  max-width: 800px;
  height: 400px;
  margin: 20px auto;
  border: 3px solid #bca364;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

#modelo-3d-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.controles-3d {
  margin-top: 10px;
  text-align: center;
  color: #ffffff;
  font-family: 'Jesaya Book', sans-serif;
}


/* =========================================
   8. FOOTER INTERACTIVO Y NEWSLETTER
   ========================================= */
.pie-pagina {
  background-color: #000000;
  padding: 40px 0 20px;
  text-align: center;
  border-top: 3px solid #bca364;
  margin-top: 50px;
  color: #FFFFFF;
  overflow: hidden;
}

.partners-container h3,
.newsletter-content h3,
.redes-sociales-footer h3 {
  color: #bca364;
  font-size: 22px;
  font-family: 'Jesaya Book', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

/* Newsletter */
.newsletter-footer {
  padding: 40px 20px;
  text-align: center;
  border-top: none;
  margin-top: -20px;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-content p {
  color: #ffffff;
  font-family: 'Jesaya Book', sans-serif;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.newsletter-form .input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
  padding: 12px 20px;
  width: 60%;
  border: 2px solid #bca364;
  border-radius: 5px;
  background-color: #ffffff;
  font-family: 'Jesaya Book', sans-serif;
  font-size: 16px;
  outline: none;
  color: #333;
}

.newsletter-form button {
  padding: 12px 30px;
  background-color: #bca364;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-family: 'Jesaya Book', sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #a68c4e;
  transform: scale(1.05);
}

/* Checkbox Premium */
.legal-check {
  font-size: 12px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Jesaya Book', sans-serif;
  margin-top: 15px;
}

.legal-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #bca364;
  border-radius: 3px;
  background-color: transparent;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  position: relative;
}

.legal-check input[type="checkbox"]:checked {
  background-color: #bca364;
}

.legal-check input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  background-color: #FFFFFF;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: 120ms transform ease-in-out;
}

.legal-check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.legal-check a {
  color: #bca364;
  text-decoration: underline;
}

/* Partners Interactivo */
.partners-container {
  width: 100%;
  padding: 40px 0;
  border-top: 1px solid #333;
  position: relative;
  cursor: ew-resize;
  overflow: hidden;
}

.partners-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  width: max-content;
  margin: 0 auto;
  transition: transform 0.2s ease-out;
  padding: 0 100px;
}

.partner-mask {
  display: block;
  width: 135px;
  height: 40px;
  -webkit-mask-image: var(--mask-url);
  mask-image: var(--mask-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: #ffffff;
  transition: 0.3s;
}

.partner-mask:hover {
  background-color: #bca364;
  transform: scale(1.1);
}

/* Redes Sociales */
.redes-sociales-footer {
  margin-top: 60px;
  border-top: 1px solid #333;
  padding-top: 30px;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.icono-mask-footer {
  display: block;
  width: 30px;
  height: 30px;
  -webkit-mask-image: var(--mask-url);
  mask-image: var(--mask-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.icono-mask-footer:hover {
  background-color: #bca364;
  transform: scale(1.2);
}

.copyright {
  font-size: 12px;
  color: #666;
  font-family: 'Jesaya Book', sans-serif;
}

/* =========================================
   9. TOOLTIPS PERSONALIZADOS (DigitalKits)
   ========================================= */
.tooltip-trigger {
  position: relative;
  /* Quitamos 'display: inline-flex' para no romper la alineación de partners */
}

/* El cuadro de texto */
.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  /* Por defecto: Abajo */
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);

  background-color: #000000;
  color: #ffffff;
  border: 2px solid #bca364;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: 'Jesaya Book', sans-serif;
  font-size: 14px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, bottom 0.3s ease, top 0.3s ease;
  z-index: 1001;
  pointer-events: none;
}

/* La flecha (Triángulo) */
.tooltip-trigger::before {
  content: '';
  position: absolute;
  /* Por defecto: Abajo */
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #bca364 transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, bottom 0.3s ease, top 0.3s ease;
  z-index: 1001;
}

/* MOSTRAR AL PASAR EL RATÓN (Versión Normal) */
.tooltip-trigger:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -45px;
}

.tooltip-trigger:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: -10px;
}

/* --- VERSIÓN ESPECIAL PARA EL FOOTER (Para que salgan ARRIBA) --- */
.pie-pagina .tooltip-trigger::after {
  bottom: auto;
  /* Anula el de abajo */
  top: -50px;
  /* Ponlo arriba */
}

.pie-pagina .tooltip-trigger::before {
  bottom: auto;
  top: -15px;
  border-color: #bca364 transparent transparent transparent;
  /* Triángulo invertido */
}

/* Animación Hover en Footer */
.pie-pagina .tooltip-trigger:hover::after {
  top: -45px;
}

.pie-pagina .tooltip-trigger:hover::before {
  top: -10px;
}

/* =========================================
   NUEVO: MENÚ DE USUARIO (HEADER)
   ========================================= */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-menu-dropdown {
  display: none;
  /* Oculto por defecto */
  position: absolute;
  right: 0;
  top: 100%;
  /* Justo debajo del icono */
  background-color: #000000;
  border: 2px solid #bca364;
  border-radius: 5px;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  margin-top: 10px;
}

.user-menu-dropdown.activo {
  display: block;
  /* Se muestra con JS */
  animation: fadeIn 0.2s ease-out;
}

.user-menu-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Jesaya Book', sans-serif;
  border-bottom: 1px solid #333;
  transition: 0.2s;
  font-size: 14px;
  text-align: left;
  /* Alineado a la izquierda */
}

.user-menu-dropdown a:last-child {
  border-bottom: none;
}

.user-menu-dropdown a:hover {
  background-color: #bca364;
  color: #000000;
}

/* Opción de eliminar cuenta en rojo suave al pasar el ratón (opcional) */
.user-menu-dropdown a.danger:hover {
  background-color: #8b0000;
  /* Rojo oscuro */
  color: #ffffff;
}

/* =========================================
   ESTILOS EXTRA PARA MODAL DE CONFIRMACIÓN
   ========================================= */

/* Contenedor para poner los botones en fila */
.modal-buttons-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

/* El botón principal (Confirmar) hereda de .modal-btn, 
   pero el de cancelar necesita su propio estilo */
.modal-btn-cancel {
  background-color: transparent;
  border: 2px solid #bca364;
  color: #bca364;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-family: 'Jesaya Book', sans-serif;
  transition: 0.2s;
}

.modal-btn-cancel:hover {
  background-color: #333;
  /* Un gris oscuro sutil al pasar el ratón */
  color: #fff;
  border-color: #fff;
}

/* Ajuste para el botón de confirmar peligroso (Eliminar) */
.modal-btn-danger {
  background-color: #8b0000;
  /* Rojo oscuro elegante */
  color: #fff;
  border: none;
}

.modal-btn-danger:hover {
  background-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* =========================================
   ESTILOS GLOBALES DEL MODAL (POP-UP)
   ========================================= */

/* El fondo oscuro que tapa la web */
.modal-overlay {
  display: none;
  /* Oculto por defecto, el JS lo activa con 'flex' */
  position: fixed;
  /* Fijo en la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  /* Negro transparente */
  z-index: 9999;
  /* Por encima de todo */
  justify-content: center;
  /* Centrado horizontal */
  align-items: center;
  /* Centrado vertical */
  animation: fadeIn 0.3s ease-out;
}

/* La cajita del mensaje */
.modal-box {
  background-color: #000000;
  border: 3px solid #bca364;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 0 30px rgba(188, 163, 100, 0.3);
  transform: scale(0.8);
  animation: popUp 0.3s ease-out forwards;
  font-family: 'Montserrat', sans-serif;
  /* Aseguramos la fuente */
}

/* Textos */
.modal-title {
  color: #bca364;
  font-family: 'Jesaya Book', sans-serif;
  font-size: 24px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-text {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.5;
}

/* Botón Genérico del Modal */
.modal-btn {
  background-color: #bca364;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-family: 'Jesaya Book', sans-serif;
  transition: 0.2s;
}

.modal-btn:hover {
  background-color: #fff;
  color: #bca364;
  border: 2px solid #bca364;
}

/* Animaciones de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popUp {
  to {
    transform: scale(1);
  }
}

/* =========================================
   PERSONALIZACIÓN DE LA BARRA DE SCROLL (Gorda y Blanca)
   ========================================= */

/* 1. Para Firefox */
html {
  scrollbar-width: auto;
  /* 'auto' es el grosor normal, 'thin' era fino */
  scrollbar-color: #bca364 #ffffff;
  /* Oro sobre Blanco */
}

/* 2. Para Chrome, Edge, Safari (Webkit) */
::-webkit-scrollbar {
  width: 20px;
  /* Antes era 12px, ahora 20px (más gorda) */
}

/* El "carril" o fondo de la barra (Ahora BLANCO) */
::-webkit-scrollbar-track {
  background: #ffffff;
}

/* La parte que se mueve (el "pulgar" Dorado) */
::-webkit-scrollbar-thumb {
  background-color: #bca364;
  /* Tu color dorado */
  border-radius: 20px;
  /* Más redondeado */
  border: 4px solid #ffffff;
  /* Borde blanco para que "flote" dentro del carril blanco */
}

/* Efecto al pasar el ratón */
::-webkit-scrollbar-thumb:hover {
  background-color: #a68c4e;
}