/* ========================================
   FUENTES
   ======================================== */

@font-face {
    font-family: 'Chunkfive-ex';
    /* nombre que se usará para la fuente personalizada */
    src: url("/desktop/fonts/Chunkfive-Ex.eot");
    src: url("/desktop/fonts/Chunkfive-Ex.eot?#iefix") format('embedded-opentype'),
        /* para IE */
        url("/desktop/fonts/Chunkfive-Ex.woff2") format('woff2'),
        /* formato moderno de fuente web */
        url("/desktop/fonts/chunkfive-ex.woff") format('woff'),
        /* formato de fuente web compatible con la mayoría de los navegadores */
        url("/desktop/fonts/Chunkfive-Ex.ttf") format('truetype');
    /* formato de fuente TrueType para navegadores antiguos */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    /* nombre que se usará para la fuente personalizada */
    src: url("/desktop/fonts/inter/Inter-eot.eot");
    src: url("/desktop/fonts/inter/Inter-eot.eot?#iefix") format('embedded-opentype'),
        /* para IE */
        url("/desktop/fonts/inter/Inter-woff2.woff2") format('woff2'),
        /* formato moderno de fuente web */
        url("/desktop/fonts/inter/Inter-woff.woff") format('woff'),
        /* formato de fuente web compatible con la mayoría de los navegadores */
        url("/desktop/fonts/inter/Inter-VariableFont_slnt.ttf") format('truetype');
    /* formato de fuente TrueType para navegadores antiguos */
    font-weight: normal, bold;
    font-style: normal;
}

/* ========================================
   BASE STYLES
   ======================================== */

body {
    font-family: "Inter";
    background-color: #ffffff !important;
    padding-top: 110px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* ========================================
   BOTONES
   ======================================== */

.btn-primary {
    background-color: #0f5b01;
    border-color: #0f5b01;
}

.btn-primary:hover {
    background: #fff;
    color: #0f5b01;
    border: 1px solid #0f5b01;
}

.btn-white {
    background-color: #fff;
    color: #0f5b01;
    border: none;
}

.btn-white:hover {
    color: #79B43E;
    background-color: #fff;
}

.btn-link {
    background-color: none;
    text-decoration: none;
    color: #0f5b01;
}

.btn-link:hover {
    color: #79B43E;
}

.btn-outline-primary {
    border: 1px solid #0f5b01;
    background: #fff;
    color: #0f5b01;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background: #0f5b01 !important;
    border: 1px solid #ffffff !important;
}

.btn-outline-primary-taller {
    background: #fff;
    color: #0f5b01;
    border: transparent;
}

.btn-outline-primary-taller:hover,
.btn-outline-primary-taller:focus-visible,
.btn-outline-primary-taller:active,
.btn-outline-primary-taller:focus {
    background: #0f5b01 !important;
    color: #fff;
}

.btn-outline-primary-taller:active {
    background: #0f5b01 !important;
    color: #fff;
}

.btn-outline-primary:hover path,
.btn-outline-primary:active path {
    fill: #fff;
}

.btn-transparent {
    background-color: rgba(255, 255, 255, 0.1);
    color: #BCBCBC;
    border: none;
}

.btn-transparent:hover,
.btn-transparent:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

#menu-taller {
    height: 110px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#menu-taller.scrolled {
    height: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#menu-taller.scrolled .img-taller-logo-institucion {
    height: 50px;
    width: 120px;
    object-fit: contain;
    padding: 5px;
}

#menu-taller.scrolled .campeonato-nombre {
    font-size: 1.2rem;
}

.institucion-nombre {
    font-size: 1.7rem !important;
    font-weight: 500;
    color: var(--color-taller-secundario);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    margin-left: 6px;
}

.img-taller-logo-institucion {
    height: 80px;
    width: 120px;
    border-radius: 8px;
    border: 1px solid #ccc !important;
    background-color: white;
    object-fit: contain;
    padding: 8px;
}

.navbar-toggler {
    border: none;
    background: transparent;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    border: none;
    padding: 0;
}

.line {
    background-color: white;
    height: 2px;
    width: 100%;
    border-radius: 1.5px;
}

.taller-nav-color {
    background-color: var(--color-taller);
}

/* ========================================
   OVERLAY MENU
   ======================================== */

.overlay-menu {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1100;
    display: none;
    padding-top: 10px;
    top: 0;
}

.overlay-content {
    color: white;
    text-align: center;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 15px 0px 12px;
}

.logo-overlay {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    height: 70px;
    object-fit: contain;
    max-width: 120px;
}

.close-overlay {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #ffffff;
    padding: 0px 15px 0px 12px;
}

.user-info img {
    margin-top: 50px;
    margin-bottom: 10px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.user-info span {
    font-size: 18px;
    font-weight: 600;
}

.user-info p {
    font-size: 14px;
    font-weight: 400;
}

.iniciar_sesion {
    font-size: 14px;
}

.navbar-toggler:focus,
.navbar-toggler:hover,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
}

.menu-overlay {
    left: 50%;
    width: 100%;
    text-align: left;
}

.menu-overlay.session {
    position: absolute;
    bottom: 50px;
    transform: translateX(-50%);
}

.menu-overlay li a {
    color: #BCBCBC;
}

.menu-overlay li a:active,
.menu-overlay li a:hover {
    color: #ffffff;
}

.menu-overlay li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.taller-hero {
    background: linear-gradient(135deg, #f1e4e4ff 0%, var(--color-taller) 40%);
    color: var(--color-taller-secundario);
    padding: 70px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.taller-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.taller-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    word-wrap: break-word;
}

.taller-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.taller-detalle-hero {
    background: linear-gradient(-135deg, #f1e4e4ff 0%, var(--color-taller) 70%);
    color: var(--color-taller-secundario);
    padding: 70px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.taller-detalle-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    word-wrap: break-word;
}

.taller-detalle-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   SEARCH SECTION
   ======================================== */

.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1rem 1rem;
    margin: -20px auto 40px;
    max-width: 900px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.search-form {
    display: flex;
    gap: 0;
    align-items: center;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 50px;
    padding: 6px;
    border: 1px solid rgba(15, 91, 1, 0.1);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: rgba(15, 91, 1, 0.3);
    box-shadow: 0 0 0 4px rgba(15, 91, 1, 0.05);
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input-group label {
    display: none;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    color: #0f5b01;
}

.search-input:focus::placeholder {
    color: transparent;
}

.search-btn {
    background: var(--color-taller);
    color: var(--color-taller-secundario);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-left: 4px;
}

.search-btn:hover {
    background: var(--color-taller);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(15, 91, 1, 0.3);
}

.search-btn i {
    font-size: 0.9rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 18px;
    background-color: #ffffff;
}

.card img {
    background-size: cover;
    border-radius: 10px 10px 0px 0px;
    width: 100%;
    height: 158px;
    object-fit: cover;
    object-position: center;
    border-bottom: #E0E0E0 solid 0.1px;
}

.card-link {
    cursor: pointer;
    height: 100%;
}

.card-img-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.taller-card-title {
    font-size: 18px;
    font-weight: 600;
}

.card .card-body small {
    font-size: 14px;
    font-weight: 400;
}

.card .card-body small.centered {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 10px;
}

.card.card-description {
    height: 212px;
    overflow-y: auto;
}

.card.card-inscripcion {
    border: solid 1px #F5F5F5;
    border-radius: 10px;
    background-color: #EAEAEA;
    box-shadow: none;
}

.card.card-inscripcion h4 {
    font-size: 18px;
}

.card.card-inscripcion h3 {
    font-size: 20px;
    font-weight: 700;
}

.card .card-white {
    background-color: #fff;
    box-shadow: none;
    border-radius: 10px;
}

.card .card-white span {
    margin-bottom: 10px;
}

.card.card-inscripcion label {
    font-size: 14px;
    font-weight: 400;
}

.card.card-inscripcion h6 {
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    padding: 20px !important;
    border-top: solid 0.5px rgba(255, 255, 255, 0.3) !important;
}

footer ul a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

footer ul a:hover {
    color: #fff;
}

footer span {
    font-size: 14px;
    font-weight: 400;
}

/* ========================================
   BACKGROUNDS
   ======================================== */

.bg-dark {
    background-color: #083300 !important
}

.bg-green {
    background-color: #0f5b01;
}

/* ========================================
   TEXT COLORS
   ======================================== */

.text-primary {
    color: #0f5b01 !important;
}

.text-dark-green {
    color: #083300 !important;
}

.text-medium-green {
    color: #0f5b01 !important;
}

.text-green {
    color: #79B43E;
}

.text-gray {
    color: #4a4a4a;
}

/* ========================================
   LOGO
   ======================================== */

.logo-usplat {
    font-family: "Chunkfive-ex";
    font-size: 30px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0em;
    margin-bottom: 0px;
    color: #ffffff;
}

.logo-container {
    background-color: #ffffff;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.logo-container img {
    max-height: 60px;
}

.logo-container .navbar-brand {
    margin: 0px;
}

/* ========================================
   TALLER ESPECÍFICOS
   ======================================== */

.taller {
    color: #4a4a4a;
}

.taller-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.taller-description .linea {
    display: flex;
    gap: 4px;
}

.taller-description p {
    font-size: 18px;
    margin: 0;
}

.taller h5 {
    font-size: 16px;
    font-weight: 500;
}

.custom-image {
    width: 100%;
    height: 212px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.taller-custom-image {
    width: 100%;
    height: 212px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* ========================================
   MODAL LOGIN
   ======================================== */

.text-chunk {
    font-family: "Chunkfive-ex";
    font-style: normal;
    font-weight: 400;
    line-height: 66px;
    line-height: 1.2;
}

.modal-dialog-login {
    padding: 5px 10px 5px 10px;
}

.modal-dialog-login .modal-header {
    border-bottom: none !important;
}

.modal-dialog-login .modal-footer {
    border-top: none !important;
}

.modal-dialog-login span {
    margin-bottom: 0px;
    font-size: 12px !important;
}

.modal-dialog-login .form-control {
    border-radius: 7px;
    border: 1px solid #b5b5b5;
    font-size: 16px;
}

.modal-dialog-login .form-control::placeholder {
    color: #c2c2c2;
    font-size: 12px;
    font-weight: 500;
}

.modal-dialog-login p {
    margin-bottom: 0px;
    font-size: 12px !important;
}

.modal-dialog-login a {
    color: #083300;
}

.modal-dialog-login .modal-header .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.modal-dialog-login label {
    font-size: 14px;
}

.card-body label {
    font-size: 14px;
    font-weight: 500;
}

.modal-dialog-login .dropdown-toggle.show {
    background-color: #0f5b01;
    color: #ffffff;
}

/* ========================================
   STEPPER
   ======================================== */

#stepper {
    overflow-x: auto;
    max-width: 100%;
}

.bs-stepper-header {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.bs-stepper-header .step {
    flex: 0 0 auto;
    margin-right: 10px;
}

.bs-stepper-label {
    font-size: 12px;
    white-space: nowrap;
}

/* ========================================
   READONLY INPUTS
   ======================================== */

.readonly-bg {
    background-color: #f0f0f0;
    cursor: not-allowed;
    caret-color: transparent;
}

.readonly-bg:focus {
    background-color: #f0f0f0 !important;
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.readonly-bg::selection {
    background: transparent;
}

.readonly-bg,
.readonly-bg:focus {
    pointer-events: none;
}

/* ========================================
   SELECT2
   ======================================== */

.select2-container .select2-selection--single {
    height: 40px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #0f5b01 !important;
    color: #fff;
}

#agregar_menor {
    font-size: 14px;
}

/* ========================================
   TABLAS
   ======================================== */

#table-menores table tr,
.menores-list table tr {
    border-style: hidden;
}

#table-menores table th,
.menores-list table th {
    background-color: #FAFAFA;
    font-size: 14px;
    font-weight: 500;
}

#table-menores table td,
.menores-list table td {
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   FLAGS Y LABELS
   ======================================== */

.flag {
    width: 27px;
}

.label-green {
    font-size: 11px;
    color: #fff;
    border-radius: 5px;
    background-color: #0f5b01;
}

.container-flag {
    padding-top: 1rem !important;
    margin-bottom: 0rem !important;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.15));
}

/* ========================================
   BACKGROUNDS ADICIONALES
   ======================================== */

.bg-dark-gray {
    background-color: rgb(60, 69, 67);
}

/* ========================================
   COLORES DE TEXTO ADICIONALES
   ======================================== */

.text-red {
    color: #F44336;
}

/* ========================================
   GRID DE TALLERES
   ======================================== */

.talleres-container {
    padding: 0px 40px 60px;
}

.talleres-header {
    background-color: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.talleres-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.taller-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.taller-detalle-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.talleres-count {
    color: #666;
    font-size: 1rem;
}

.talleres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ========================================
   CARDS DE TALLERES
   ======================================== */

.taller-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.taller-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* EFECTO HOVER EN EL TÍTULO */
.taller-card:hover .taller-name {
    color: #0f5b01;
    transform: translateX(4px);
}

.taller-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.taller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.taller-badge {
    position: absolute;
    bottom: 180px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.taller-badge.ultimos-cupos-badge {
    background-color: white;
    color: black;
}

.taller-badge.ultimos-cupos-badge i {
    color: rgba(245, 158, 11, 0.95);
}

.taller-badge.agotado-badge {
    background-color: white;
    color: black;
}

.taller-badge.agotado-badge i {
    color: rgba(220, 38, 38, 0.95);
}

.taller-card:hover .taller-image img {
    transform: scale(1.05);
}

.taller-info {
    padding: 1.5rem;
    display: grid;
    grid-template-rows: auto minmax(70px, auto) auto auto;
    gap: 0;
}

.taller-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
    margin-bottom: 0.5rem;
    line-height: 1.4em;
    height: calc(1.4em * 2);
    /* transition: all 0.3s ease; */
}

.taller-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    min-height: 70px;
}

.taller-meta-item {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taller-meta-item-truncate {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: calc(1.4em * 2);
}

.taller-meta-item i {
    color: #0f5b01;
    width: 16px;
}

.taller-disponibilidad {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.taller-disponibilidad.agotado i {
    color: #dc2626;
}

.taller-disponibilidad.ultimos-cupos i {
    color: #f59e0b;
}

.cursos-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
}

.taller-curso {
    display: inline-block;
    background: #f0f9ff;
    color: #0f5b01;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: start;
    width: fit-content;
}

.schedules-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.taller-schedule {
    background: linear-gradient(to right, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem;
    border-radius: 8px;
}

.nombre-instructor {
    font-size: 20px;
}

.taller-empty {
    color: black;
}

.taller-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f5b01;
    margin-top: 0.5rem;
}

/* ========================================
   SELECT PERSONALIZADO
   ======================================== */
.custom-select-wrapper {
    position: relative;
    min-width: 320px;
}

.custom-select-trigger {
    background-color: #fff;
    color: #333;
    border: 1px solid var(--color-taller);
    border-radius: 16px;
    padding: 1rem 1rem 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: var(--color-taller);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}

.custom-select-trigger.active {
    border-color: var(--color-taller);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #333;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-select-dropdown.active {
    display: block;
}

.custom-select-option {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: #f8f9fa;
}

.custom-select-option.selected {
    background-color: color-mix(in srgb, var(--color-taller) 10%, white);
    font-weight: 600;
}

.custom-select-option .option-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.custom-select-option .option-badge {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.custom-select-option.selected .option-badge {
    background-color: var(--color-taller);
    color: white;
}

/* Scrollbar personalizado */
.custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 14px 0;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========================================
   CATEGORÍAS / CURSOS
   ======================================== */
.category-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRECIO DINÁMICO
   ======================================== */
#precio-display {
    transition: transform 0.2s ease-in-out;
}

/* ========================================
   TABS
   ======================================== */
.taller-curso-link {
    font-size: 16px;
    line-height: 28px;
    color: black;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.taller-curso-link:hover {
    background-color: color-mix(in srgb, var(--color-taller) 10%, white);
    color: var(--color-taller);
    text-decoration: none;
    transform: translateX(4px);
}

.taller-curso-link.active {
    background-color: var(--color-taller);
    color: white;
    font-weight: 600;
}

.taller-label-info {
    font-size: 19px !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.course-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.course-header img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ========================================
   PAGINACIÓN
   ======================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 4px;
    background: white;
    padding: 8px;
}

.page-link {
    color: #0f5b01;
    border-color: #e1e5e9;
    padding: 12px 16px;
    min-width: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.page-link:hover {
    background-color: #f0f9ff;
    border-color: #0f5b01;
    color: #083300;
}

.page-item.active .page-link {
    background-color: #0f5b01;
    border-color: #0f5b01;
}

.page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #e1e5e9;
    color: #999;
    cursor: not-allowed;
}

/* Loading Overlay para paginación */
.pagination-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.pagination-loading-overlay.show {
    display: flex;
}

.pagination-loading-content {
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0f5b01;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pagination-loading-text {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.taller-card {
    animation: fadeInUp 0.6s ease-out;
}

.taller-card:nth-child(2) {
    animation-delay: 0.1s;
}

.taller-card:nth-child(3) {
    animation-delay: 0.2s;
}

.taller-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {

    /* Mover solo el select arriba en mobile */
    .row.taller {
        position: relative;
        padding-top: 50px;
    }

    .row.taller .col-md-4 .custom-select-wrapper {
        position: absolute;
        top: -50px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px) !important;
        min-width: auto !important;
        margin: 0 !important;
        background: white;
        border-radius: 16px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .row.taller .col-md-8 {
        margin-top: 0 !important;
    }

    /* Paginación responsive */
    .pagination-wrapper {
        padding: 0 10px;
        margin-top: 2rem;
        position: relative;
    }

    .pagination-wrapper::after {
        content: '← Desliza →';
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: #999;
        margin-top: 0.5rem;
        font-weight: 500;
    }

    .pagination {
        gap: 3px;
        padding: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .pagination::-webkit-scrollbar {
        display: none;
    }

    .page-item {
        flex-shrink: 0;
    }

    .page-link {
        padding: 8px 10px;
        min-width: 36px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Ocultar texto "Previous" y "Next" en mobile, solo mostrar iconos */
    .page-link[rel="prev"],
    .page-link[rel="next"] {
        padding: 8px;
        min-width: 36px;
    }

    /* Loading overlay mobile */
    .pagination-loading-content {
        padding: 1.5rem 2rem;
        margin: 0 20px;
    }

    .pagination-spinner {
        width: 40px;
        height: 40px;
    }

    .pagination-loading-text {
        font-size: 1rem;
    }

    .talleres-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .talleres-container {
        padding: 0 15px 40px;
    }

    .talleres-header {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }

    /* Select responsive - ajustes de tamaño */
    .row.taller .col-md-4 .custom-select-trigger {
        font-size: 0.95rem;
        padding: 1rem 2.5rem 1rem 1.25rem;
    }

    .row.taller .col-md-4 .custom-select-option {
        padding: 1rem 1.25rem;
    }

    .row.taller .col-md-4 .custom-select-option .option-text {
        font-size: 0.95rem;
    }

    .row.taller .col-md-4 .custom-select-option .option-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    /* Título responsive */
    .taller-header-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .taller-detalle-title {
        font-size: 1.5rem;
    }

    .taller-label-info {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
    }

    .registration-date-label {
        font-size: 24px;
    }

    .course-name-label {
        font-size: 20px;
    }

    .workshop-name-label {
        font-size: 34px;
    }

    /* Estilos responsive para instituciones */
    .taller-hero {
        padding: 70px 0 30px;
    }

    .taller-hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    footer {
        padding: 10px 30px 0px 30px !important;
    }

    .logo-usplat {
        font-size: 20px;
    }

    footer ul a {
        text-decoration: none;
        color: #083300;
        font-size: 12px;
        font-weight: 400;
    }

    #menu-taller {
        height: 90px;
    }

    body {
        padding-top: 90px;
    }

    #menu-taller.scrolled {
        height: 70px;
    }

    .taller-description p {
        font-size: 18px;
        margin: 0;
    }
}