/* =========================================
   1. CONTENEDOR DE TARJETAS (GRID)
   ========================================= */
.ub-classes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* =========================================
   2. TARJETA DE CLASE
   ========================================= */
.ub-class-card {
    background-color: #111; /* Fondo oscuro */
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    color: #fff;
    min-height: 200px;
    position: relative; /* Importante para contexto */
    z-index: 1;
}

.ub-class-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: #fff;
}

.ub-class-card p {
    color: #ccc;
    margin: 5px 0;
}

.ub-btn-confirm {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.ub-btn-confirm:hover {
    background-color: #ddd;
}

/* =========================================
   3. MODAL (POP-UP) - ¡CRUCIAL!
   ========================================= */
.ub-modal-overlay {
    display: none; /* OCULTO POR DEFECTO */
    position: fixed; /* FIJO EN LA PANTALLA */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo negro transparente */
    z-index: 99999; /* Por encima de todo */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
}

/* Estilo cuando se activa con JS */
.ub-modal-overlay.active {
    display: flex !important;
}

.ub-modal-content {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    color: #fff;
    position: relative;
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ub-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #bbb;
    line-height: 20px;
}

.ub-close-modal:hover {
    color: #fff;
}

/* =========================================
   4. GRILLA DE ASIENTOS
   ========================================= */
.ub-seats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columnas */
    gap: 15px;
    margin: 30px 0;
    justify-items: center;
}

/* Ocultar el radio button nativo feo */
.ub-seat-radio {
    display: none; 
    appearance: none;
    -webkit-appearance: none;
}

/* El círculo del asiento */
.ub-seat-label {
    width: 45px;
    height: 45px;
    background-color: #2ecc71; /* Verde disponible */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #000;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    user-select: none;
}

.ub-seat-label:hover {
    transform: scale(1.1);
}

/* Estado: Seleccionado (Cuando el radio está checked) */
.ub-seat-radio:checked + .ub-seat-label {
    background-color: #f1c40f !important; /* Amarillo */
    border-color: #fff;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
    transform: scale(1.1);
}

/* Estado: Reservado/Ocupado */
.ub-seat-label.reserved {
    background-color: #444 !important;
    cursor: not-allowed;
    color: #777;
    pointer-events: none; /* No clickable */
}

/* Botón de confirmar dentro del modal */
.ub-modal-content .ub-btn-confirm {
    background-color: #e74c3c; /* Rojo/Rosado del branding */
    color: #fff;
}
.ub-modal-content .ub-btn-confirm:hover {
    background-color: #c0392b;
}

/* Alerta de mensajes */
.ub-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
}
.ub-alert.error { background-color: #c0392b; }
.ub-alert.success { background-color: #27ae60; }

/* =========================================
   5. ESTILOS DEL PERFIL [ub_profile]
   ========================================= */

.ub-dashboard-card {
    background-color: #111;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}

.ub-dashboard-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Caja de Créditos */
.ub-credits-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ub-big-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2ecc71; /* Verde */
    line-height: 1;
}

.ub-credits-text {
    font-size: 1.1rem;
    color: #ccc;
}

/* Tabla de Reservas */
.ub-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 0.95rem;
}

.ub-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #333;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.ub-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
}

.ub-seat-badge {
    background: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}

.ub-btn-cancel {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.ub-btn-cancel:hover {
    background: #e74c3c;
    color: #fff;
}
/* Añade esto al final de tu CSS */

/* Color naranja para waitlist */
.ub-btn-waitlist {
    background-color: #e67e22 !important;
    color: #fff !important;
}

/* Barra de progreso de cupos */
.ub-class-card small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}
/* =========================================
   6. CALENDARIO SEMANAL [ub_calendar] - FIXED
   ========================================= */

.ub-calendar-wrapper {
    width: 100%;
    max-width: 1200px; /* Limita el ancho máximo para que no se desparrame en pantallas gigantes */
    margin: 0 auto 50px auto; /* Centrado */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* --- CABECERA DE CONTROLES --- */
.ub-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centrados verticalmente */
    margin-bottom: 20px;
    gap: 20px;
    background: #000; /* Fondo negro opcional para unificar la barra */
    padding: 10px;
    border-radius: 8px;
}

.ub-filter-box {
    width: 250px; /* Ancho fijo para el instructor */
    flex-shrink: 0;
}

.ub-filter-box label {
    display: none; /* Ocultamos la etiqueta "INSTRUCTOR" para limpiar, ya el select lo dice */
}

.ub-filter-box select {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 0 15px;
    height: 40px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
}

.ub-nav-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ub-date-range {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ub-nav-btn {
    background: #333;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- GRILLA DEL CALENDARIO --- */
.ub-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas idénticas */
    gap: 8px; /* Espacio entre columnas */
    width: 100%;
}

.ub-day-col {
    display: flex;
    flex-direction: column;
    /* ESTO ES LO QUE FALTABA: Forzar ancho completo */
    width: 100%; 
    min-width: 0; 
}

/* Cabecera del día (Lun 12/01) */
.ub-day-header {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 10px 0;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%; /* Forzar ancho completo */
    box-sizing: border-box;
}

.day-name { font-size: 0.7rem; text-transform: uppercase; display: block; color: #666; }
.day-num { font-size: 1.1rem; font-weight: 800; display: block; }

.ub-day-header.today { border-bottom: 3px solid #e74c3c; }

/* Cuerpo del día (Donde van las tarjetas) */
.ub-day-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%; /* Forzar ancho completo */
    flex-grow: 1; /* Ocupar altura */
}

/* --- TARJETA DE CLASE --- */
.ub-cal-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Forzar ancho completo */
    box-sizing: border-box; /* Padding incluido en el ancho */
    
    background-color: #E6B8B8; /* Color base rosado */
    color: #000;
    padding: 15px 5px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    min-height: 80px;
    transition: transform 0.2s;
}

.ub-cal-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.ub-cal-time {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 5px;
    display: block;
}

.ub-cal-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    display: block;
    margin-bottom: 3px;
}

.ub-cal-coach {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Zebra Colors */
.ub-day-col:nth-child(even) .ub-cal-card { background-color: #EAEAEA; } 

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .ub-week-grid { display: flex; flex-direction: column; gap: 20px; }
    
    .ub-calendar-controls { flex-direction: column; align-items: stretch; }
    .ub-filter-box { width: 100%; }
    .ub-nav-box { justify-content: space-between; }

    .ub-day-header { 
        flex-direction: row; justify-content: space-between; padding: 10px 15px; 
        background: transparent; color: #fff; border-bottom: 1px solid #444; 
    }
    .day-name, .day-num { color: #fff; display: inline; }
    
    .ub-cal-card {
        flex-direction: row; /* Horizontal en móvil */
        text-align: left;
        padding: 15px;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .ub-cal-info-wrapper { text-align: left; }
}

/* FIX DUPLICADOS */
.ub-calendar-wrapper + .ub-classes-list, .ub-calendar-wrapper ~ .ub-classes-list { display: none !important; }

/* =========================================
   MEDIA QUERY: MÓVIL (VISTA DE AGENDA)
   ========================================= */
@media (max-width: 900px) {
    
    /* Cambiamos Grid a Columna Simple */
    .ub-week-grid {
        display: flex;
        flex-direction: column;
        gap: 30px; /* Separación entre días */
    }

    .ub-day-col {
        width: 100%;
    }

    /* Rediseño de la cabecera del día para móvil */
    .ub-day-header {
        flex-direction: row; /* Horizontal */
        justify-content: space-between;
        padding: 10px 20px;
        background: transparent;
        border: none;
        border-bottom: 1px solid #444; /* Línea separadora */
        border-radius: 0;
        color: #fff;
        margin-bottom: 10px;
    }
    
    .ub-day-header.today {
        border: none;
        border-bottom: 2px solid #e74c3c;
        background: transparent;
    }

    .day-name { font-size: 1rem; color: #ccc; }
    .day-num { font-size: 1.2rem; color: #fff; }

    /* Rediseño de la tarjeta de clase para móvil (Fila horizontal) */
    .ub-cal-card {
        flex-direction: row; /* Poner hora a la izq, datos a la der */
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 20px;
        min-height: auto;
        margin-bottom: 5px;
    }

    .ub-cal-time {
        font-size: 1.3rem;
        width: 80px; /* Ancho fijo para la hora */
        flex-shrink: 0;
    }

    .ub-cal-info-wrapper {
        flex-grow: 1;
        padding-left: 15px;
        border-left: 2px solid rgba(0,0,0,0.1);
    }
    
    /* Ajustamos el orden visual en móvil */
    .ub-cal-card span { display: block; }
}
/* =========================================
   7. TARJETAS DE ENTRENADORES (ESTILO ROGUE)
   ========================================= */

.ub-team-grid-rogue {
    display: grid;
    /* 3 columnas en desktop, responsive */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0;
    justify-items: center;
}

.ub-rogue-card {
    width: 100%;
    max-width: 350px; /* Ancho máximo similar a la foto */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 1. CAJA DE IMAGEN */
.ub-rogue-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 450px; /* Altura vertical rectangular */
    background-size: cover;
    background-position: center top;
    background-color: #ddd; /* Color de fondo mientras carga */
    border-radius: 20px; /* Bordes redondeados */
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Sombra suave */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ub-rogue-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Efecto de oscurecimiento suave al hover */
.ub-rogue-img-box::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0); /* Transparente por defecto */
    transition: background 0.3s;
}

.ub-rogue-img-box:hover::after {
    background: rgba(0,0,0,0.1); /* Ligeramente oscuro al pasar mouse */
}

/* 2. NOMBRE DEL COACH (Texto sobre la imagen) */
.ub-rogue-name {
    color: #fff;
    font-size: 2rem;
    font-weight: 800; /* Extra bold */
    text-transform: uppercase;
    text-align: center;
    z-index: 2; /* Encima del overlay */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra para leerse bien */
    margin: 0;
    letter-spacing: 1px;
}

/* 3. ENLACE INFERIOR (VER HORARIOS) */
.ub-rogue-link {
    font-size: 1rem;
    font-weight: 700;
    color: #fff; /* Texto negro */
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 5px; /* Separación del subrayado */
    text-decoration-thickness: 2px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.3s;
}

/* Si tu tema tiene fondo negro, cambia el color a blanco */
body.dark-mode .ub-rogue-link, 
.elementor-section-dark .ub-rogue-link {
    color: #fff;
}

.ub-rogue-link:hover {
    color: #555; /* Gris al pasar el mouse */
}
.ub-calendar-wrapper + .ub-classes-list {
    display: none !important;
}

/* En caso de que haya algún contenedor intermedio (seguridad extra) */
.ub-calendar-wrapper ~ .ub-classes-list {
    display: none !important;
}
/* =========================================
   8. PAQUETES DE CRÉDITOS [ub_packages]
   ========================================= */

.ub-packages-grid {
    display: grid;
    /* Responsive: tarjetas de mínimo 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.ub-package-card {
    background-color: #fff;
    border-radius: 20px; /* Bordes muy redondeados como la imagen */
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Sombra muy sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    min-height: 320px; /* Altura mínima uniforme */
    border: 1px solid #f0f0f0;
}

.ub-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Título */
.ub-pkg-title {
    font-size: 1.2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Link "Ver detalles" */
.ub-pkg-details-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: underline;
    margin-bottom: 20px;
    display: inline-block;
}

/* Descripción (Descripción Corta de Woo) */
.ub-pkg-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Corrección para que los <p> dentro de la descripción no metan mucho margen */
.ub-pkg-desc p {
    margin: 5px 0;
}

/* Precio */
.ub-pkg-price {
    font-size: 1.3rem;
    color: #333;
    font-weight: 400;
    margin-bottom: 25px;
}

.ub-pkg-price span.amount {
    font-weight: bold;
}

/* Botón Comprar */
.ub-pkg-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #d6ccc2; /* Color Beige/Arena de la foto */
    color: #000;
    padding: 12px 0;
    border-radius: 30px; /* Botón píldora */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.ub-pkg-btn:hover {
    background-color: #c0b0a0; /* Un poco más oscuro al hover */
    color: #000;
}
/* =========================================
   9. LOGIN PERSONALIZADO [ub_auth_form]
   ========================================= */

.ub-auth-container {
    display: flex;
    min-height: 600px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 40px auto;
    margin-top: 200px !important;
}

/* Columna Izquierda (Imagen) */
.ub-auth-image {
    flex: 1;
    position: relative;
    background: #000;
}

.ub-auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
}

/* Columna Derecha (Formulario) */
.ub-auth-forms {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    color: #333;
}

/* Logo Area */
.ub-logo-area {
    text-align: center;
    margin-bottom: 40px;
}

/* Títulos */
.ub-auth-forms h3 {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 10px;
    text-align: center;
}

.ub-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Inputs */
.ub-auth-forms label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #333;
}

.ub-auth-forms input[type="text"],
.ub-auth-forms input[type="email"],
.ub-auth-forms input[type="password"],
.ub-auth-forms input[type="tel"] { 
    width: 100%;
    padding: 12px 20px;
    background: #f0f2f5; /* El fondo gris claro */
    border: 1px solid transparent;
    border-radius: 30px; /* Bordes redondos */
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s;
    color: #000;
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
}

.ub-auth-forms input:focus {
    background: #fff;
    border-color: #ccc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Botón */
.ub-submit-btn {
    width: 100%;
    padding: 15px;
    background: #d6ccc2; /* Beige/Arena */
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
}

.ub-submit-btn:hover {
    background: #c0b0a0;
}

/* Footer del form */
.ub-form-footer {
    text-align: right;
    margin-bottom: 20px;
}

.ub-form-footer a {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}

.ub-switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.ub-switch-text a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.ub-auth-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .ub-auth-container {
        flex-direction: column;
        margin: 20px;
    }
    .ub-auth-image {
        height: 200px; /* Imagen pequeña arriba */
        flex: none;
    }
    .ub-auth-forms {
        padding: 40px 20px;
    }
}
/* =========================================
   FIX VISUAL: HEADER Y TÍTULOS
   ========================================= */

/* 1. HEADER: Fondo negro en todas las páginas MENOS en el Home */
body:not(.home) .elementor-location-header, /* Si usas Elementor Pro Header */
body:not(.home) #masthead,                /* Si usas tema Hello/Astra */
body:not(.home) .site-header,             /* Genérico */
body:not(.home) header.elementor-section, body:not(.home) .header { 
    background-color: #231f20 !important;
    transition: background 0.3s ease;
}

/* Opcional: Si el menú se "superpone" y tapa el contenido en internas, 
   esto lo empuja hacia abajo. Borra esta línea si no la necesitas. */
body:not(.home) {
    padding-top: 0px; 
}
/* 2. OCULTAR TÍTULOS AUTOMÁTICOS */

/* Ocultar título en la página de Login (si el método manual falla) */
/* Cambia '.page-id-123' por el ID real si lo sabes, o usa este genérico: */
.page .entry-title,
.page .page-header {
    display: none !important;
}

/* IMPORTANTE: Pero NO ocultar los títulos que tú escribes dentro de Elementor */
.elementor-page .entry-title {
    display: none !important; 
}

/* Ocultar título específicamente en los perfiles de Entrenadores */
.single-ub_coach .entry-title,
.single-ub_coach .page-header,
.single-ub_coach h1.page-title {
    display: none !important;
}
/* =========================================
   10. DASHBOARD DE USUARIO [ub_dashboard]
   ========================================= */

.ub-uc-info {
    overflow: hidden; /* Evita desbordes */
}

.ub-dashboard-wrapper {
    background-color: #f9f9f9; /* Fondo gris muy claro general */
    min-height: 100vh;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* --- HEADER INTERNO --- */
.ub-dash-header {
    background: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.ub-dash-user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ub-dash-welcome { font-size: 0.9rem; }
.ub-dash-avatar img { border-radius: 50%; display: block; }

.ub-btn-logout {
    background: #d6ccc2;
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

/* --- LAYOUT GRID (Sidebar + Content) --- */
.ub-dash-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

/* Sidebar */
.ub-dash-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.ub-user-card-mini {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.ub-uc-avatar img { border-radius: 50%; width: 50px; height: 50px; }
.ub-uc-info h4 {
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ub-uc-info span {
    font-size: 0.8rem;
    color: #888;
    display: block;
    /* ESTO ARREGLA EL EMAIL LARGO */
    word-break: break-word; 
    overflow-wrap: anywhere;
    line-height: 1.2;
    margin-top: 2px;
}
.ub-status-badge { color: green; font-weight: bold; font-size: 0.7rem; }

/* Menú Sidebar */
.ub-dash-menu {
    list-style: none;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.ub-dash-menu li {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ub-dash-menu li:hover { background: #f5f5f5; }
.ub-dash-menu li.active { background: #fff; color: #000; font-weight: bold; border-left: 4px solid #d6ccc2; }
.ub-dash-menu li .dashicons { color: #aaa; }

/* Contenido */
.ub-dash-content {
    flex-grow: 1;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    min-height: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.ub-tab-content { display: none; }
.ub-tab-content.active { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.ub-section-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    font-weight: 400;
}

.ub-text-muted { color: #888; font-size: 1.5rem; font-weight: 300; margin-top: 10px; }

/* Carrusel de Hoy */
.ub-today-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Grilla adaptable */
    gap: 20px;
    padding-bottom: 10px;
}

.ub-today-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Evita desborde en grid */
}

/* Solo en móvil volvemos al carrusel si quieres, o dejamos la grilla vertical */
@media(max-width: 768px) {
    .ub-today-carousel {
        display: flex; /* Volver a flex para scroll horizontal */
        overflow-x: auto;
        grid-template-columns: none;
    }
    .ub-today-card {
        min-width: 220px; /* Ancho fijo para scroll */
    }
}

.ub-tc-info h4 { margin: 0 0 10px 0; font-size: 1rem; }
.ub-tc-meta span { display: block; font-size: 0.85rem; color: #666; }

.ub-btn-small {
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    background: #d6ccc2;
    color: #000;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Plan Summary */
.ub-plan-stats { display: flex; gap: 40px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.ub-stat-box { display: flex; flex-direction: column; }
.ub-stat-label { font-size: 0.8rem; text-transform: uppercase; color: #999; margin-bottom: 5px; }
.ub-stat-num { font-size: 1.5rem; font-weight: bold; }
.ub-stat-ok { color: green; font-weight: bold; }

/* Formulario Perfil */
.ub-profile-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.ub-form-row { margin-bottom: 25px; }
.ub-form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.ub-profile-form input, 
.ub-profile-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
}

.ub-dob-group { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.ub-btn-save {
    background: #d6ccc2;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

.ub-btn-black {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Mobile */
@media(max-width: 800px) {
    .ub-dash-container { flex-direction: column; }
    .ub-dash-sidebar { width: 100%; }
}
@media(max-width: 900px) {
    .ub-dash-container {
        flex-direction: column; /* Poner uno debajo del otro */
        padding: 0 15px;
    }

    .ub-dash-sidebar {
        width: 100%; /* Ancho completo en móvil */
        margin-bottom: 30px;
    }

    .ub-dash-content {
        padding: 20px; /* Menos relleno en móvil */
        min-height: auto;
    }

    /* Ajuste del Header Interno */
    .ub-dash-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ub-dash-user-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Menú del sidebar en móvil: hacerlo scroll horizontal si es necesario o lista */
    .ub-dash-menu li {
        padding: 12px 15px;
    }
}
/* =========================================
   11. PÁGINA PERFIL DEL COACH
   ========================================= */

.ub-coach-profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
    margin-top: 200px;
}

.ub-coach-ph-img {
    width: 350px;
    height: 450px;
    background-size: cover;
    background-position: center top;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ub-coach-ph-info {
    flex-grow: 1;
    padding-top: 20px;
}

.ub-coach-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1;
}

.ub-coach-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.ub-coach-bio p {
    margin-bottom: 15px;
}

/* Responsive Mobile */
@media (max-width: 800px) {
    .ub-coach-profile-header {
        flex-direction: column;
    }
    
    .ub-coach-ph-img {
        width: 100%;
        height: 400px;
    }

    .ub-coach-title {
        font-size: 2rem;
    }
}
/* =========================================
   12. MAPA DE ASIENTOS (CORREGIDO)
   ========================================= */

/* 1. ARREGLO DEL MODAL (Para que quepa todo y haya scroll) */
/* 1. ARREGLO DEL MODAL */
.ub-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    width: 95%;
    max-width: 550px; /* Un poco más angosto para que los círculos se vean bien */
    padding: 20px;
}

/* 2. CONTENEDOR DEL MAPA */
.ub-seats-grid.undo-floor-plan {
    display: grid;
    /* 4 COLUMNAS: Asientos Izq | Pasillo | Asientos Der | Espacio Espejos */
    grid-template-columns: 1fr 60px 1fr 30px; 
    
    /* FILAS: Ajustamos la altura a 50px para que cuadre con los círculos */
    grid-template-rows: auto repeat(7, 50px) auto; 
    
    gap: 10px; /* Espacio entre círculos */
    margin: 0 auto 30px auto;
    background: #fdfdfd; 
    border: 2px solid #333;
    padding: 20px;
    box-sizing: border-box;
}

/* 3. ESTILO DE LOS ASIENTOS (RECTÁNGULOS VISIBLES) */
.ub-seat-rect {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* --- CAMBIOS PARA HACERLO CIRCULAR --- */
    width: 45px;  /* Ancho fijo */
    height: 45px; /* Alto fijo (igual al ancho) */
    border-radius: 50%; /* Esto lo hace círculo */
    margin: 0 auto; /* Centrarlo horizontalmente en su celda */
    /* ------------------------------------- */

    background: #fff;
    color: #000 !important;
    border: 2px solid #000;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15); /* Sombra suave */
    transition: transform 0.2s, background 0.2s;
}

/* Estado: Hover */
.ub-seat-wrapper:hover .ub-seat-rect {
    background: #e74c3c; /* Rojo al pasar el mouse */
    color: #fff !important;
    transform: scale(1.1); /* Efecto de crecimiento */
    border-color: #e74c3c;
}

/* Estado: Seleccionado (Radio Checked) */
.ub-seat-radio:checked + .ub-seat-rect {
    background: #e74c3c !important;
    color: #fff !important;
    border-color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Estado: Ocupado/Reservado */
.ub-seat-rect.reserved {
    background: #444 !important;
    color: #888 !important;
    border-color: #444;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

/* 4. POSICIONAMIENTO EXACTO (ASIENTOS) */

/* Columna Izquierda (8 al 14) */
/* grid-column: 1 significa "Primera columna" */
.ub-seat-wrapper[data-seat="14"] { grid-column: 1; grid-row: 2; }
.ub-seat-wrapper[data-seat="13"] { grid-column: 1; grid-row: 3; }
.ub-seat-wrapper[data-seat="12"] { grid-column: 1; grid-row: 4; }
.ub-seat-wrapper[data-seat="11"] { grid-column: 1; grid-row: 5; }
.ub-seat-wrapper[data-seat="10"] { grid-column: 1; grid-row: 6; }
.ub-seat-wrapper[data-seat="9"]  { grid-column: 1; grid-row: 7; }
.ub-seat-wrapper[data-seat="8"]  { grid-column: 1; grid-row: 8; }

/* Columna Derecha (7 al 1) */
/* grid-column: 3 significa "Tercera columna" (saltando el pasillo) */
.ub-seat-wrapper[data-seat="7"] { grid-column: 3; grid-row: 2; }
.ub-seat-wrapper[data-seat="6"] { grid-column: 3; grid-row: 3; }
.ub-seat-wrapper[data-seat="5"] { grid-column: 3; grid-row: 4; }
.ub-seat-wrapper[data-seat="4"] { grid-column: 3; grid-row: 5; }
.ub-seat-wrapper[data-seat="3"] { grid-column: 3; grid-row: 6; }
.ub-seat-wrapper[data-seat="2"] { grid-column: 3; grid-row: 7; }
.ub-seat-wrapper[data-seat="1"] { grid-column: 3; grid-row: 8; }


/* 5. ETIQUETAS DE TEXTO (MAP LABELS) */
.ub-map-label {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Fuente más moderna */
    font-weight: bold;
    color: #003366;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

/* Etiqueta Superior */
.ub-map-label.top {
    grid-column: 1 / span 3;
    grid-row: 1;
    border-bottom: 2px dashed #ccc;
    margin-bottom: 10px;
    color: #555;
}

/* Etiqueta Derecha (Espejos) */
.ub-map-label.right {
    grid-column: 4;
    grid-row: 2 / span 7;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-left: 3px solid #add8e6; /* Color espejo suave */
    padding-left: 5px;
    white-space: nowrap;
    color: #555;
}   

/* Etiqueta Centro (Coach) */
.ub-map-label.center {
    grid-column: 2;
    grid-row: 2 / span 7;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.3;
    letter-spacing: 3px;
    font-size: 0.65rem;
}

/* Etiqueta Abajo (Acceso) */
.ub-map-label.bottom-left {
    grid-column: 1;
    grid-row: 9;
    justify-content: flex-start;
    color: #555;
}
/* =========================================
   AJUSTE MOBILE: PAQUETES EN 2 COLUMNAS
   ========================================= */

@media (max-width: 768px) {
    .ub-packages-grid {
        /* Forzamos 2 columnas del mismo tamaño */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px; /* Reducimos el espacio entre tarjetas */
        margin: 20px 0;
    }

    /* Ajustamos el tamaño de la tarjeta para que no se vea apretada */
    .ub-package-card {
        padding: 15px; /* Menos relleno interno */
        min-height: auto; /* Altura flexible */
        border-radius: 15px;
    }

    /* Reducimos un poco las fuentes para que el texto no se rompa */
    .ub-pkg-title {
        font-size: 1rem; /* Título más pequeño */
        margin-bottom: 5px;
    }

    .ub-pkg-desc {
        font-size: 0.8rem; /* Descripción más pequeña */
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .ub-pkg-price {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .ub-pkg-btn {
        padding: 8px 0;
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    /* El contenedor de los botones */
    .ub-form-actions {
        display: flex;
        flex-direction: column; /* Uno encima del otro */
        gap: 15px; /* Espacio entre ellos */
        margin-bottom: 30px; /* Espacio antes del footer */
    }

    /* Los botones individuales */
    .ub-btn-save,
    .ub-btn-black {
        width: 100%;       /* Ocupar todo el ancho */
        margin-left: 0 !important; /* Quitar márgenes laterales */
        display: block;    /* Comportamiento de bloque */
        text-align: center; /* Texto centrado */
        box-sizing: border-box; /* Para que el padding no rompa el ancho */
    }
}