/* Estilos generales */
/* TIPOGRAFIAS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Action Text / Trix Editor */
@import 'actiontext.css';

h1, h2, h3, h4, h5, h6{
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

p{
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}
* {
margin: 0px auto;
}

.nav-link{
  cursor: pointer;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
opacity: 1;
background-color: black !important;
color: #F5F5F5;
/*
display: flex;
flex-direction: column;*/
min-height: 100vh;

-webkit-user-select: none; /* Chrome, Safari, Edge */
-moz-user-select: none;    /* Firefox */
-ms-user-select: none;     /* Internet Explorer/Edge */
user-select: none;         /* Estándar */
}

main {
  flex: 1;
}

body a {
font-family: "Poppins", sans-serif !important;
text-decoration: none;
color: #F5F5F5;
}

body p{
  color: #f5f5f5;
}

body th{
  color: #FAB541 !important;
}

.navbar-brand{
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 1.5em !important;
}

/* Estilos del Navbar mejorado */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.navbar-brand {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 1.5rem !important;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #FAB541 !important;
}

/* Estilos personalizados para los links */
.nav-link-custom {
  font-family: "Poppins", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  padding: 0.5rem 0.8rem !important;
  color: #f5f5f5 !important;
  transition: color 0.3s ease, transform 0.2s ease;
  text-decoration: none !important;
}

.nav-link-custom:hover {
  color: #FAB541 !important;
  transform: translateY(-2px);
}

.nav-link-custom.active {
  color: #FAB541 !important;
}

/* Separador entre items del navbar */
.nav-separator {
  width: 1px;
  height: 20px;
  background-color: rgba(128, 128, 128, 0.3);
  margin: 0 0.3rem;
  align-self: center;
}

/* Asegurar que el navbar-collapse ocupe todo el ancho en desktop */
@media (min-width: 992px) {
  #navbarContent {
    flex-grow: 0 !important;
  }
}

/* Estilos para mobile */
@media (max-width: 991.98px) {
  /* El menú colapsado debe aparecer debajo y ocupar todo el ancho */
  #navbarContent {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 1rem;
    z-index: 1000;
  }
  
  .nav-separator {
    display: none;
  }
  
  .nav-link-custom {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding: 0.8rem 1rem !important;
  }
  
  .nav-link-custom:last-child {
    border-bottom: none;
  }
  
  /* Asegurar que el navbar-toggler esté visible */
  .navbar-toggler {
    display: block;
  }
}

/* Botón de regresar mejorado */
.btn-link:hover i {
  color: #FAB541 !important;
  transition: color 0.3s ease, transform 0.2s ease;
  transform: scale(1.1);
}

/* Navbar toggler personalizado */
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(250, 181, 65, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28250, 181, 65, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.form-control {
    margin-bottom: 10px;
}

.bg-dark {
    --bs-bg-opacity: .5 !important;
}

.only-form{
  height: 70vh;
}


.pachecos{
  background: url(/assets/background_pachecos-86c4ee8f24a7c7b8d0c3acabcd4b8786d1b15b139e947a8f8509521067e84c04.jpeg);
  /* background-position-y: -160%; */
  background-position-x: center;
  background-position-y: 10% ;
  background-size: cover;
  height: 350px;
  margin-bottom: 40px;
  box-shadow: inset -50px -0px 100px black;
  background-repeat: no-repeat;
}

/* ESTILOS LOADING */

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .8); /* Fondo negro con opacidad */
  z-index: 2000; /* Supera el resto de la página */
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-text {
  font-size: 2em;
  color: #F5F5F5;
  font-family: sans-serif;
  position: relative;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #F5F5F5; /* Efecto de "escritura" */
  animation: typing 2s steps(10, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 200px; } /* Ajusta el tamaño según la longitud de "Loading" */
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #F5F5F5; }
}

/* ESTILOS ANIMACIONES */
.hidden {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* Estilos del botón "regresar" */
.back-btn {
position: fixed;
top: 5px;    
left: 5px;   
z-index: 2000;
color: #fff !important;  
font-size: 24px;
}

.back-btn:hover {
color: #E6520F !important;  
}

.custom-menu-icon {
width: 15px;       
height: 30px;      
transition: transform 0.2s ease-in-out; 

}

.custom-toggler {
padding: 0;
margin-right: 5px;

}
.custom-toggler:hover .custom-menu-icon {
transform: scale(1.2);  

}


/* estilos de event */

.event-container {
margin-bottom: 0px;

}

.event-img {
width: 100%; 
height: auto;
object-fit: cover;
display: block;
margin-left: auto; 
margin-right: auto;
}


.event-info {
flex: 1;
}

.event-info h3 {
margin-bottom: 10px;
color: #333;
}

.event-info p {
margin-bottom: 10px;
}

.btn-success {
margin-top: 15px;
}


/* Imagen de event */

.event-image {
position: relative !important;
width: 100%;
height: auto;
overflow: hidden;
}

.event-img {
max-width: 100%;
border-radius: 5px;
height: 300px;


}

.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.551) inset;

}

/* Estilos del DETALLE DEL EVENT */

.event-header {
height: 60vh; 
background-size: cover;
background-position: center;
position: relative;
}

.overlay-header {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, .2));
z-index: 1;

}

.content-header {
position: relative;
z-index: 2;
padding: 0 20px;
}

.content-header h1{
font-size: 4em;
}

.content-header h5{
margin-top: 50px;
max-width: 80%;
}

.event-description{
width: 80%;
font-weight: normal;
margin-top: 50px;
margin-bottom: 50px;
text-align: center;
}

@media (max-width: 768px){
.event-header {
height: 250px;; 
background-size: cover;
background-position: center;
position: relative;
}

.overlay-header {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .2));
z-index: 1;

}

.content-header h1{
font-size: 2em;
}

.event-description{
width: 85%;
text-align: center;
}
}

/* Estilo para el formulario EDIT EVENTS */

.event-img-preview{
display: block;
margin: 30px auto;
border: 1px solid #F5F5F5;
border-radius: 5px;
object-fit: scale-down;
width: 150px;
height: auto;
}

/* Estilos del partial FAQ */

.accordion-item {
border: 1px solid #ccc !important; 
background-color: #333 !important; 
}

.accordion-button {
background-color: #555 !important; 
color: #fff !important; 
}

.accordion-button:not(.collapsed) {
background-color: #FAB541 !important;
color: #fff !important;
}

.accordion-body {
background-color: #222 !important; 
color: #fff !important; 
}

.accordion-button:hover {
background-color: #FAB541; 
color: #000; 
}

h2, h3 {
color: #FAB541 !important; 
}

/* Estilos de la vista de categorías */

.categories {
text-align: center;
}
.category-list {
max-height: 70vh; 
overflow-y: auto; 
width: 50%;
border: 1px solid #ccc; 
padding: 15px; 
background-color: #111; 

}

.category-item {
background-color: #f0f0f0; 
transition: background-color 0.3s ease;
}

.category-item:hover {
background-color: #b2adad; 
}

@media (max-width: 768px){
.category-list {
width: 100%;
padding: 5px; 
}
}

/* Estilos de contact Home */

.contact-home{
background-image: url('https://wallpapers.com/images/hd/black-textured-world-map-backgrounds-vtel68gyyu66rtx5.jpg');
background-size: contain;
background-repeat: no-repeat;
width: 100%;
margin: 0px auto;
}

.phone_number{
  font-weight: bold;
}
.phone_number:hover {
  text-shadow: 0px 0px 1px black;
  font-size: 1.2em;
  color: #FAB541;
  transition: all 200ms ease-in-out;
}

/* ESTILOS PARA LOCATIONS */

/* HEADER */

.location .header {
position: relative;
height: 100vh;
background-size: cover;
background-position: center;
}

.location .header .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}

.location .header .content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #F5F5F5;
text-align: center;
}

.location .header h1 {
font-size: 3rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
}

.location .logo-header{
  max-width: 600px;
}

/* DESCRIPTION */

.location .description {
padding: 50px 20px;
text-align: center;
}

.location .description h2 {
font-size: 2.5rem;
margin-bottom: 20px;
color: #F5F5F5;
}

.location .description p {
font-size: 1.2rem;
color: #F5F5F5;
max-width: 800px;
margin: 0 auto;
}

/* CAROUSEL */

.location .carousel-inner img {
width: 80%;
height: 80vh;
object-fit: contain;

}

.location .carousel-control-prev-icon,
.location .carousel-control-next-icon {
background-color: rgba(0, 0, 0, 0.5);
border-radius: 10%;
}

.location .carousel-back {
  height: 500px;
  background-position: center;
  background-size: cover;

}

@media(max-width: 999px)
{
  .location .carousel-inner img{
    height: max-content;
    object-fit: cover;
    align-items: center;

  }
}

/* MAP */

.location-map {
display: flex;
flex-flow: row-reverse;
flex-wrap: wrap;
padding: 0px 12px 50px 12px;
align-items: center;
}

.map-description {
flex: 1;
padding-right: 20px;
padding-left: 20px;
text-align: center;

}

.map-description p {
font-size: 1.1rem;
color: #F5F5F5;
}

.map-embed {
flex: 1;
}

.map-embed iframe {
width: 100%;
height: 400px;
border: none;
}

@media (max-width: 768px) {
  
.location .logo-header{
  max-width: 350px;
}

.location-map {
display: block;

}

.map-description {
padding-right: 0;
margin-bottom: 20px;
margin-top: 20px;
text-align: center;
}


}
/* MEMBERSHIPS */
.location .row {
  margin: 0px;
}

.location .card {
  margin: 4px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #FAB541;
}

.location .card-body {
  width: 100%;
  padding: 20px;
  text-align: center;
  color: #141414;
}

.location .card h5 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F5F5F5;
  text-shadow: 1px 1px 3px #141414;
}

.location .card h6 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #141414 !important;
}

.location .card ul {
  list-style-type: none;
  padding: 0;
}

.location .card ul li {
  font-size: 1rem;
  color: #555;
}


@media (min-width: 768px) {
  .location .row .card {
    flex: 0 0 30%;
    max-width: 100%;
    
  }
}

@media (max-width: 768px) {
  .location .row .card {
    flex: 0 0 90%;
    max-width: 100%;
  }
  
}

/* Estilos de LOGGEDIN */

.loggedin .container {
  margin-top: 100px;
}

.loggedin .card {
  border-radius: 10px;
  background-color: #FAB541;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  color: black;
}

.loggedin p{
  color: black;
}
.loggedin .display-4 {
  color: #1a1a1a;
  font-weight: bold;
}

.loggedin .lead {
  color: #5a5a5a;
}

.loggedin .btn-danger {
  background-color: #d9534f;
  border-color: #d43f3a;
  padding: 10px 20px;
  font-size: 18px;
}

.loggedin .btn-danger:hover {
  background-color: #c9302c;
  border-color: #ac2925;
}


/* Estilos de las cards de clases de zoom */
.zoom-card:hover {
  background-color: #FAB541;
  transition: background-color 0.3s ease;
  color: black;
}

.zoom-card:hover p{
  color: black !important;
}

.zoom-card {
  border: 1px solid #ddd;
}

/* Estilos del footer */

.footer {
  background: url(/assets/background_header_169-4f3a8d59e40cf044b7f947d525954324024cddd1fd7b8887ed645bf00d1b370a.jpg) no-repeat;
  background-size: 100%;
  background-position: center;
  position: relative;
  
  }

@media(max-width: 767px){
  .footer {
    background: url(/assets/background_header_916-a015e032a0a067f68c12edfc900fa5943e2acfa094ee4c003756ef9da676f85b.jpg);
    background-size: cover;
    
    }
  
}

/* Estilos de Home - Header */
.home-header {
height: 100vh; 
background: url(/assets/background_header_169-4f3a8d59e40cf044b7f947d525954324024cddd1fd7b8887ed645bf00d1b370a.jpg) fixed no-repeat;
background-color: black;
background-size: cover;
background-position: top;
position: relative;

}

.overlay-header {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, .1));
z-index: 1;

}

.content-header {
position: relative;
z-index: 2;
padding: 0 20px;
}

.content-header h1{
font-size: 4em
}

.content-header p{
font-weight: 400;
margin-top: 50px;
max-width: 80%;
}

.icon-home{
width: 80px;
filter: drop-shadow(0px 2px 5px black);

}

  
  /* Estilos de Sedes */
  .home-page .sedes-container {
  margin-top: 50px;
  padding: 40px 20px;
  min-height: 90vh;
  background:  
  linear-gradient(to bottom, black, transparent, black), url(/assets/background_tribu-de29219a4cdbd16a186ff696cefb174dea415287e8e3627c1cdbb178db61ef0e.jpg) fixed no-repeat center;
  background-size: cover; 
  }
  
  
  /* Logo Principal Centrado */
  .home-page .tribu-logo-main {
    max-width: 400px;
    width: 100%;
    height: auto;
    opacity: 1;
    filter: drop-shadow(0px 4px 10px rgba(249, 180, 64, 0.3));
    transition: transform 0.3s ease;
  }
  
  .home-page .tribu-logo-main:hover {
    transform: scale(1.05);
  }
  
  /* Wrapper del link de sede - Display block para que sea clickeable toda la card */
  .home-page .sede-link-wrapper {
    display: block;
    text-decoration: none !important;
  }
  
  /* Cards de Sedes - Siempre visibles */
  .home-page .sede-card {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(249, 180, 64, 0.3) !important;
    border-radius: 15px !important;
    color: white;
    transition: all 0.3s ease-in-out;
    opacity: 1 !important;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
    cursor: pointer;
  }
  
  /* Hover aplicado cuando se hace hover sobre el link wrapper */
  .home-page .sede-link-wrapper:hover .sede-card {
    border-color: #f9b440 !important;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(249, 180, 64, 0.4);
  }
  
  
  /* Texto de las Cards - Siempre visible */
  .home-page .sede-card .card-text {
    visibility: visible !important;
    transform: translateY(0%) !important;
    opacity: 1 !important;
    font-size: 0.95em;
    line-height: 1.6;
    transition: all 0.3s ease;
  }
  
  .home-page .sede-card .card-title {
    visibility: visible !important;
    transform: translateY(0%) !important;
    opacity: 1 !important;
    font-size: 1.5em;
    margin-bottom: 15px;
    transition: all 0.3s ease;
  }
  
  /* Efecto hover en los textos cuando se hace hover sobre la card */
  .home-page .sede-link-wrapper:hover .card-title {
    color: #f9b440 !important;
  }
  
  .home-page .sede-link-wrapper:hover .card-text i {
    transform: scale(1.1);
    color: #f9b440 !important;
  }
  
  /* Botones de Instagram en las cards */
  .home-page .sede-instagram-link {
    border-color: #f9b440 !important;
    color: #f9b440 !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }
  
  .home-page .sede-instagram-link:hover {
    background-color: #f9b440 !important;
    color: #000 !important;
    transform: scale(1.05);
    text-decoration: none !important;
  }
  
  /* Separador horizontal en las cards */
  .home-page .sede-card hr {
    border-color: #f9b440 !important;
    opacity: 0.3;
    margin: 15px 0;
  }
  
  /* Espaciado entre las cards */
  .home-page .sedes-container .row {
    margin: 0 auto;
    max-width: 1400px;
  }
  
  .home-page .sedes-container .row > div {
    padding: 0 15px;
  }
  
  .home-page .card-body {
  text-align: center;
  }
  
  .home-page .card-title {
  transform: translateY(-400%);
  transition: all 300ms ease-in-out;
  }
  
  .home-page .sede-card:hover .card-title {
  transform: translateY(0%);
  }

 
  


  /* Estilos de events */
  
  .truncate-text {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Muestra solo 2 líneas */
  -webkit-box-orient: vertical;    
  text-overflow: ellipsis;   
  overflow: hidden;
  }
  
  
  /* Para desktop */
  @media (min-width: 768px) {
  .home-page .card {
  width: 100%;
  }
  }
  
  /* Para mobile (ajuste automático en pantallas pequeñas) */
  @media (max-width: 767px) {

   /* ESTILOS DE USERS */

.truncate-email {
  white-space: break-spaces;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-all;
  width: 100%;
  }
  
  .home-header {
  background: url(/assets/background_header_916-a015e032a0a067f68c12edfc900fa5943e2acfa094ee4c003756ef9da676f85b.jpg);
  background-size: cover;
  height: 100vh;
  padding-top: 200px;
  margin-bottom: 200px;
  
  }
  
  .overlay-header {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, .1));    
  }
  
  .content-header h1{
  margin-top: 20px;
  font-size: 2.5em
  }
  
  /* Estilos mobile para sedes */
  .home-page .card {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Media query para mobile */
  @media (max-width: 991.98px) {
    .home-page .tribu-logo-main {
      max-width: 250px;
      margin-bottom: 30px;
    }
    
    .home-page .sede-card {
      margin-bottom: 30px;
    }
  }
  
  ul{
  padding-left: 0px !important;
  padding-inline-start: 0px !important;
  }
  
  }
  
  .home-page .instagram-icon {
  width: 40px;
  height: 40px;
  margin-right: 5px;
  vertical-align: middle;
  }
  
  
  /* Estilos anteriores movidos a .nav-link-custom */
  .navbar-nav {
  display: flex;
  gap: 5px;
  color: white;
  text-decoration: none;
  list-style: none;
  text-align: center;
  margin: 0px auto;
  justify-items: center;
  margin-bottom: 8px;
  margin-top: 8px;
  }
  
  .sticky-top{
  box-shadow: 0px 12px 30px black !important;
  
  }
  
  ul{
  padding-left: 0px !important;
  padding-inline-start: 0px !important;
  }
  
  
  .home-page{
  display: block;
  }

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px !important;
  height: 60px !important;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
  text-decoration: none;
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 30px;
}

/* ===== ESTILOS PARA BOTONES DE LEADS SHOW ===== */

.card-footer .d-flex {
  align-items: stretch;
}

.card-footer .d-flex .btn {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  margin: 0;
  border-radius: 0.375rem;
}

.card-footer .d-flex .btn:first-child {
  margin-left: 0;
}

.card-footer .d-flex .btn:last-child {
  margin-right: 0;
}

.card-footer .d-flex .btn i {
  flex-shrink: 0;
  line-height: 1;
}

.card-footer .d-flex .btn span,
.card-footer .d-flex .btn {
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
}

/* ===== ESTILOS PARA BOTONES DE DASHBOARD ===== */

.card-body .d-flex .btn {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  margin: 0;
  border-radius: 0.375rem;
}

.card-body .d-flex .btn:first-child {
  margin-left: 0;
}

.card-body .d-flex .btn:last-child {
  margin-right: 0;
}

.card-body .d-flex .btn i {
  flex-shrink: 0;
  line-height: 1;
}

.card-body .d-flex .btn span,
.card-body .d-flex .btn {
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.2;
}
  
/* ===== ESTILOS PARA BOTONES DE CONTACTO ===== */
.contact-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.contact-buttons .btn {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
  
  margin: 0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.contact-buttons .btn i {
  flex-shrink: 0;
  line-height: 1;
  margin-right: 0.25rem;
}

/* ===== ESTILOS PARA LEADS - TABLA MINIMALISTA ===== */

.leads-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.message-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em; /* 2 líneas * 1.4 line-height */
  color: #6c757d;
  font-size: 0.9rem;
}

.email-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 1.4em;
  white-space: nowrap;
}

.table {
  width: 100%;
  table-layout: fixed;
  min-width: 800px; /* Ancho mínimo para evitar que se comprima demasiado */
}

.table th {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #495057;
  padding: 1rem 0.75rem;
  white-space: nowrap;
}

.table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
  word-wrap: break-word;
  overflow: hidden;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-responsive {
  border-radius: 0.375rem;
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0.25rem;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.btn-group .btn:first-child {
  margin-left: 0;
}

/* ===== ESTILOS PARA ESTADÍSTICAS Y FILTROS ===== */
.stats-card {
  padding: 0.75rem;
  text-align: center;
}

.stats-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stats-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.filters-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters-horizontal .btn {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.filters-section {
  margin-bottom: 1rem;
}

.filters-section h6 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Responsive para tabla */
@media (max-width: 768px) {
  .leads-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
  }
  
  .leads-table-container::-webkit-scrollbar {
    height: 8px;
  }
  
  .leads-table-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .leads-table-container::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
  }
  
  .leads-table-container::-webkit-scrollbar-thumb:hover {
    background: #495057;
  }
  
  .table {
    min-width: 600px; /* Ancho mínimo reducido para móvil */
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
  
  .message-clamp {
    -webkit-line-clamp: 1;
    max-height: 1.4em;
  }
  
  .email-clamp {
    -webkit-line-clamp: 1;
    max-height: 1.4em;
  }
  
  .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* Ajustar anchos de columnas en móvil */
  .table th:nth-child(1),
  .table td:nth-child(1) {
    width: 30%;
    min-width: 150px;
  }
  
  .table th:nth-child(2),
  .table td:nth-child(2) {
    width: 40%;
    min-width: 200px;
  }
  
  .table th:nth-child(3),
  .table td:nth-child(3) {
    width: 15%;
    min-width: 80px;
  }
  
  .table th:nth-child(4),
  .table td:nth-child(4) {
    width: 15%;
    min-width: 80px;
  }
  
  .table th:nth-child(5),
  .table td:nth-child(5) {
    width: 20%;
    min-width: 120px;
  }
  
  /* Tabla simplificada para mobile */
  .mobile-table .table th:nth-child(1),
  .mobile-table .table td:nth-child(1) {
    width: 40%;
    min-width: 150px;
  }
  
  .mobile-table .table th:nth-child(2),
  .mobile-table .table td:nth-child(2) {
    width: 35%;
    min-width: 120px;
  }
  
  .mobile-table .table th:nth-child(6),
  .mobile-table .table td:nth-child(6) {
    width: 25%;
    min-width: 100px;
  }
  
  .mobile-legend {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
  }
  
  .mobile-legend i {
    color: #0d6efd;
    margin-right: 0.25rem;
  }
  
  /* Filtros horizontales en mobile */
  .filters-horizontal {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .filters-horizontal .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .filters-section h6 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
}

/* ===== ESTILOS PARA VISTAS DE USUARIOS ===== */
.truncate-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.only-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  padding: 2rem;
}

.only-form .form-horizontal {
  
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.only-form h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.col-sm-7 {
  width: 100%;
  margin: 0 auto;
}

.col-form-label {
  font-weight: 500;
  color: #555;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  margin-bottom: 0;
  font-weight: 500;
}

.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}



.btn-warning {
  background: #ffc107;
  border: none;
  color: #212529;
}

.btn-danger {
  background: #dc3545;
  border: none;
}

.btn-success {
  background: #28a745;
  border: none;
}

.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 10px 10px 0 0 !important;
}

.table {
  margin-bottom: 0;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
  background: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}

.text-decoration-none {
  text-decoration: none !important;
  color: #007bff;
}

.text-decoration-none:hover {
  color: #0056b3;
}

/* ===== ESTILOS PARA SISTEMA DE CURSOS ===== */

/* Título del curso */
.course-title {
  color: #FAB541 !important;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem !important;
}

.course-title i {
  color: #FAB541;
  font-size: 2.2rem;
}

@media (max-width: 768px) {
  .course-title {
    font-size: 2rem;
  }
  
  .course-title i {
    font-size: 1.8rem;
  }
}

/* Contenedor para evitar que el contenido se salga */
#chapter-content,
.course-content-card .card-body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Video player principal */
.video-player-container,
.ratio {
  max-width: 100%;
  width: 100%;
  margin: 0 !important; /* Sobrescribir el margin: 0px auto del selector universal */
}

.ratio iframe {
  margin: 0 !important;
}

turbo-frame#video_player {
  margin: 0 !important;
}

turbo-frame#video_player > div {
  margin: 0 !important;
}

/* Galería horizontal de videos */
.horizontal-video-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.horizontal-video-gallery::-webkit-scrollbar {
  height: 8px;
}

.horizontal-video-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.horizontal-video-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.horizontal-video-gallery::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.video-gallery-item {
  flex: 0 0 180px;
  min-width: 180px;
  transition: transform 0.2s ease;
}

.video-gallery-item:hover {
  transform: translateY(-4px);
}

.video-gallery-item.is-playing {
  opacity: 1;
}

.video-gallery-item.is-playing .card {
  border: 2px solid #FAB541;
  box-shadow: 0 0 20px rgba(250, 181, 65, 0.5);
}

.video-gallery-item .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-gallery-item .card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-gallery-item .card-img-top {
  height: 100px;
  object-fit: cover;
  border-radius: 0.375rem 0.375rem 0 0;
}

.video-gallery-item .card-body {
  background: transparent;
}

.video-gallery-item .card-title {
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-gallery-item a {
  text-decoration: none;
}

/* Glass effect para cursos */
.glass-effect {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.course-content-card {
  min-height: 400px;
}

/* Botón de contenido teórico mejorado */
.btn-warning {
  background: linear-gradient(135deg, #FAB541 0%, #ff9800 100%) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(250, 181, 65, 0.3);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 181, 65, 0.5);
  background: linear-gradient(135deg, #ff9800 0%, #FAB541 100%) !important;
}

/* Ajustes para evitar que el contenido se salga */
.card-body.p-lg-4 {
  padding: 1.5rem !important;
}

@media (min-width: 992px) {
  .card-body.p-lg-4 {
    padding: 2rem !important;
  }
}

/* Estilos para vista de admin - botones de capítulos */
.list-group-item.active {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.list-group-item.active a {
  color: #FAB541 !important;
  font-weight: 600;
}

.list-group-item:not(.active) a {
  color: #ffffff !important;
}

.list-group-item:not(.active) a:hover {
  color: #FAB541 !important;
}

/* Layout mejorado para capítulos */
.chapter-title {
  flex: 1;
  margin-right: 1rem;
}

.chapter-title a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.chapter-actions {
  flex-shrink: 0;
}

/* Acordeones que ocupan todo el ancho */
#courseAccordion {
  width: 100%;
}

#courseAccordion .accordion-item {
  width: 100%;
}

#courseAccordion .accordion-button {
  width: 100%;
}

#courseAccordion .accordion-collapse {
  width: 100%;
}

/* ===== ESTILOS PARA FORMULARIOS DE CURSOS ===== */

/* Contenedor del formulario */
.course-form-card {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
}

.course-form-header {
  background: linear-gradient(135deg, #FAB541 0%, #ff9800 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.course-form-body {
  background: rgba(0, 0, 0, 0.6) !important;
  padding: 2rem !important;
}

.course-form-footer {
  background: rgba(0, 0, 0, 0.8) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1.5rem 2rem !important;
}

/* Campos de entrada */
.course-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  color: #000 !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.course-input:focus {
  background: #ffffff !important;
  border-color: #FAB541 !important;
  box-shadow: 0 0 0 0.2rem rgba(250, 181, 65, 0.25) !important;
  color: #000 !important;
}

.course-input::placeholder {
  color: #666 !important;
}

/* Input group */
.course-input-group {
  background: #FAB541 !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  color: #000 !important;
  font-weight: 600;
}

/* Textarea (Action Text) */
.course-textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  color: #000 !important;
  min-height: 200px;
}

.course-textarea:focus {
  background: #ffffff !important;
  border-color: #FAB541 !important;
  box-shadow: 0 0 0 0.2rem rgba(250, 181, 65, 0.25) !important;
}

/* Estilos para Trix Editor */
.trix-toolbar {
  background: #ffffff !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  border-bottom: none !important;
}

.trix-toolbar .trix-button-group {
  background: transparent !important;
}

.trix-toolbar .trix-button {
  background: #ffffff !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
}

.trix-toolbar .trix-button:hover {
  background: #f8f9fa !important;
  color: #000 !important;
}

.trix-toolbar .trix-button.trix-active {
  background: #FAB541 !important;
  color: #000 !important;
  border-color: #FAB541 !important;
}

.trix-toolbar .trix-button:disabled {
  background: #f8f9fa !important;
  color: #999 !important;
}

.trix-content {
  background: #ffffff !important;
  color: #000 !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  border-top: none !important;
}

/* Estilos más específicos para Trix con !important */
trix-toolbar {
  background: #ffffff !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  border-bottom: none !important;
}

trix-toolbar .trix-button-group {
  background: transparent !important;
}

trix-toolbar .trix-button {
  background: #ffffff !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
}

trix-toolbar .trix-button:hover {
  background: #f8f9fa !important;
  color: #000 !important;
}

trix-toolbar .trix-button.trix-active {
  background: #FAB541 !important;
  color: #000 !important;
  border-color: #FAB541 !important;
}

trix-toolbar .trix-button:disabled {
  background: #f8f9fa !important;
  color: #999 !important;
}

trix-editor {
  background: #ffffff !important;
  color: #000 !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  border-top: none !important;
}

/* Estilos adicionales para forzar Trix */
.course-textarea trix-toolbar {
  background: #ffffff !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  border-bottom: none !important;
}

.course-textarea trix-toolbar .trix-button {
  background: #ffffff !important;
  color: #333 !important;
  border: 1px solid #ddd !important;
}

.course-textarea trix-toolbar .trix-button:hover {
  background: #f8f9fa !important;
  color: #000 !important;
}

.course-textarea trix-toolbar .trix-button.trix-active {
  background: #FAB541 !important;
  color: #000 !important;
  border-color: #FAB541 !important;
}

.course-textarea trix-editor {
  background: #ffffff !important;
  color: #000 !important;
  border: 2px solid rgba(250, 181, 65, 0.3) !important;
  border-top: none !important;
}

/* Responsive para Trix Editor */
@media (max-width: 768px) {
  .trix-toolbar, trix-toolbar {
    padding: 0.5rem !important;
  }
  
  .trix-toolbar .trix-button-group, trix-toolbar .trix-button-group {
    margin-bottom: 0.25rem !important;
  }
  
  .trix-toolbar .trix-button, trix-toolbar .trix-button {
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
  }
  
  .trix-content, trix-editor {
    min-height: 150px !important;
    padding: 1rem !important;
  }
}

@media (max-width: 576px) {
  .trix-toolbar, trix-toolbar {
    padding: 0.25rem !important;
  }
  
  .trix-toolbar .trix-button, trix-toolbar .trix-button {
    padding: 0.375rem !important;
    font-size: 0.75rem !important;
  }
  
  .trix-content, trix-editor {
    min-height: 120px !important;
    padding: 0.75rem !important;
  }
}

/* Switches personalizados */
.course-switch {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.course-switch:checked {
  background-color: #FAB541 !important;
  border-color: #FAB541 !important;
}

.course-switch:focus {
  box-shadow: 0 0 0 0.2rem rgba(250, 181, 65, 0.25) !important;
}

/* Botón de guardar */
.course-btn-save {
  background: linear-gradient(135deg, #FAB541 0%, #ff9800 100%) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(250, 181, 65, 0.3);
}

.course-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 181, 65, 0.5);
  background: linear-gradient(135deg, #ff9800 0%, #FAB541 100%) !important;
  color: #000 !important;
}

/* Alert personalizado */
.course-alert-info {
  background: rgba(13, 202, 240, 0.1) !important;
  border: 1px solid rgba(13, 202, 240, 0.3) !important;
  color: #ffffff !important;
}

/* Responsive para formularios */
@media (max-width: 768px) {
  .course-form-body {
    padding: 1.5rem !important;
  }
  
  .course-form-footer {
    padding: 1rem 1.5rem !important;
  }
  
  .course-btn-save {
    width: 100%;
    padding: 1rem;
  }
  
  /* Arreglar margen izquierdo en móvil */
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .course-form-body {
    padding: 1rem !important;
  }
  
  .course-form-footer {
    padding: 1rem !important;
  }
  
  /* Ajustes adicionales para móvil muy pequeño */
  .course-form-card {
    margin: 0 !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Botones de acciones en vista admin */
.chapter-actions .btn-outline-warning {
  border-color: #FAB541 !important;
  color: #FAB541 !important;
}

.chapter-actions .btn-outline-warning:hover {
  background-color: #FAB541 !important;
  color: #000 !important;
}

.chapter-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.chapter-actions .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.chapter-actions .btn-outline-secondary {
  border-color: #6c757d !important;
  color: #6c757d !important;
}

.chapter-actions .btn-outline-secondary:hover {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

.chapter-actions .btn-outline-danger {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.chapter-actions .btn-outline-danger:hover {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

/* Responsive para galería de videos */
@media (max-width: 768px) {
  .video-gallery-item {
    flex: 0 0 150px;
    min-width: 150px;
  }
  
  .video-gallery-item .card-img-top {
    height: 85px;
  }
  
  .video-gallery-item .card-title {
    font-size: 0.75rem;
  }
}
  
  
