/**

 * Estilos para frontend de clientes

 * Archivo: /assets/css/client-frontend.css

 */



/* === CONTENEDOR PRINCIPAL === */

.tb-profile-editor {

    max-width: 1280px;

    margin: 0 auto;

        padding: 25px 15px;



}



.tb-profile-header {

    text-align: center;

    margin-bottom: 40px;

    padding-bottom: 20px;

    border-bottom: 2px solid #de0f17;

}



.tb-profile-header h2 {

    color: #333;

    margin-bottom: 10px;

    font-size: 2rem;

    font-weight: 700;

}



.tb-profile-header p {

    color: #fff;

    font-size: 1.1rem;

    margin: 0;

}



/* === GRID DEL FORMULARIO === */

.tb-form-grid {

    display: grid;

    grid-template-columns: 1fr 300px;

    gap: 30px;

    margin-bottom: 30px;

}



/* === SECCIONES DEL FORMULARIO === */

.tb-form-section {

    background: #fff;

    border: 1px solid #333;

    border-radius: 0px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    transition: box-shadow 0.3s ease;

}



.tb-form-section:hover {

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);

}



.tb-form-section h3 {

    margin: 0 0 20px 0;

    color: #333;

    font-size: 1.3rem;

    font-weight: 600;

    border-bottom: 2px solid #333;

    padding-bottom: 10px;

    text-transform: uppercase;



}



.tb-section-description {

    color: #666;

    font-size: 0.9rem;

    margin-bottom: 20px;

    line-height: 1.5;

}



/* === FILAS Y GRUPOS DE FORMULARIO === */

.tb-form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-bottom: 20px;

}



.tb-form-row:last-child {

    margin-bottom: 0;

}



.tb-form-group {

    display: flex;

    flex-direction: column;

}



.tb-form-group label {

    font-weight: 600;

    margin-bottom: 8px;

    color: #fff;

    font-size: 0.9rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.tb-form-group input,

.tb-form-group select {

    padding: 12px 15px !important;
    border: 2px solid #333 !important;
    border-radius: 0px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;

}



.tb-form-group input:focus,

.tb-form-group select:focus {

    border-color: #007cba;

    outline: none;

    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);

    transform: translateY(-1px);

}



/* === VALIDACIÓN === */

.tb-validation-error {

    border-color: #dc3545 !important;

    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;

}



.tb-validation-success {

    border-color: #28a745 !important;

    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;

}



.tb-field-error {

    color: #dc3545;

    font-size: 0.8rem;

    margin-top: 5px;

    display: flex;

    align-items: center;

    gap: 5px;

}



.tb-field-error::before {

    content: "⚠️";

    font-size: 0.9rem;

}



/* === FUERZA DE CONTRASEÑA === */

.tb-password-strength {

    margin-top: 8px;

}



.tb-strength-meter {

    height: 4px;

    background: #e9ecef;

    border-radius: 2px;

    overflow: hidden;

    margin-bottom: 5px;

}



.tb-strength-bar {

    height: 100%;

    transition: all 0.3s ease;

    border-radius: 2px;

}



.tb-strength-very-weak { background: #dc3545; }

.tb-strength-weak { background: #fd7e14; }

.tb-strength-fair { background: #ffc107; }

.tb-strength-good { background: #20c997; }

.tb-strength-strong { background: #28a745; }



.tb-strength-text {

    font-size: 0.8rem;

    font-weight: 500;

    color: #666;

}



/* === FOTO DE PERFIL === */

.tb-profile-photo-container {

    text-align: center;

    border-radius: 0px;

    padding: 20px;

}



.tb-photo-preview {

    margin-bottom: 20px;

}



.tb-photo-preview img {

    width: 140px;

    height: 140px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid #fff;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    transition: all 0.3s ease;

}



.tb-photo-preview img:hover {

    transform: scale(1.05);

    box-shadow: 0 6px 16px rgba(0,0,0,0.2);

}



.tb-photo-placeholder {

    width: 140px;

    height: 140px;

    border: 3px dashed #ddd;

    border-radius: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    margin: 0 auto;

    color: #999;

    background: #fff;

    transition: all 0.3s ease;

}



.tb-photo-placeholder:hover {

    border-color: #007cba;

    color: #007cba;

    background: #f0f8ff;

}



.tb-photo-placeholder .tb-icon {

    font-size: 40px;

    margin-bottom: 8px;

}



.tb-photo-placeholder p {

    margin: 0;

    font-size: 0.9rem;

    font-weight: 500;

}



.tb-photo-actions {

    display: flex;

    flex-direction: column;

    gap: 12px;

}



/* === GALERÍA === */

.tb-gallery-container {

    margin-top: 20px;

    position: relative;

}



.tb-gallery-container.tb-dragover {

    background: #f0f8ff;

    border-radius: 12px;

}



.tb-gallery-container.tb-dragover::before {

    content: "Suelta las imágenes aquí";

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    font-size: 1.2rem;

    font-weight: 600;

    color: #007cba;

    z-index: 10;

    pointer-events: none;

}



.tb-gallery-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));

    gap: 15px;

    padding: 20px;

    border: 2px dashed #ddd;

    border-radius: 0px;

    background: #fafafa;

    transition: all 0.3s ease;

    min-height: 180px;

}



.tb-gallery-grid:hover {



}



.tb-gallery-item {

    position: relative;

    aspect-ratio: 1;

    border-radius: 12px;

    overflow: hidden;

    border: 2px solid #e1e5e9;

    transition: all 0.3s ease;

    cursor: pointer;

}



.tb-gallery-item:hover {

    border-color: #007cba;

    transform: translateY(-3px);

    box-shadow: 0 6px 16px rgba(0,0,0,0.15);

}



.tb-gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;

}



.tb-gallery-item:hover img {

    transform: scale(1.05);

}



.tb-gallery-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.7);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transition: opacity 0.3s ease;

}



.tb-gallery-item:hover .tb-gallery-overlay {

    opacity: 1;

}



.tb-remove-gallery-item {

    background: #dc3545;

    color: white;

    border: none;

    border-radius: 50%;

    width: 36px;

    height: 36px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

    font-size: 16px;

}



.tb-remove-gallery-item:hover {

    background: #c82333;

    transform: scale(1.1);

}



.tb-gallery-add {

    aspect-ratio: 1;

    border: 2px dashed #ddd;

    border-radius: 0px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff;

    transition: all 0.3s ease;

    cursor: pointer;

    min-height: 120px;

}



.tb-gallery-add:hover {

    border-color: #DE0F17;

    background: #DE0F17;

    transform: translateY(-2px);

}



.tb-add-gallery-image {

    background: none;

    border: none;

    cursor: pointer;

    color: #666;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    padding: 20px;

    width: 100%;

    height: 100%;

    font-size: 0.9rem;

    font-weight: 500;

    transition: color 0.3s ease;

}



.tb-add-gallery-image:hover {

    color: #fff;

    background:#DE0F17;

}



.tb-add-gallery-image .tb-icon {

    font-size: 28px;

}



/* === INFORMACIÓN DE CUENTA === */

.tb-account-info {

    padding: 20px;

    border-radius: 0px;

    border: 1px solid #333;

}



.tb-info-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;

    padding: 8px 0;

    border-bottom: 2px solid #444;

}



.tb-info-item:last-child {

    margin-bottom: 0;

    border-bottom: none;

}



.tb-info-item strong {

    color: #fff;

    font-size: 0.9rem;

}



.tb-info-item span {

    color: #ccc;

    font-size: 0.9rem;

}



/* === BOTONES === */

.tb-btn {

    padding: 12px 24px;

    border: none;

    border-radius: 0px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;

    transition: all 0.3s ease;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.tb-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

}



.tb-btn:active {

    transform: translateY(0);

}



.tb-btn-primary {

    background: #DE0F17;

    color: white;

    border: 2px solid #DE0F17;

}



.tb-btn-primary:hover {

    background: #DE0F17;

    color: white;

}



.tb-btn-secondary {

    background: #DE0F17;

    color: white;

    border: 2px solid transparent;

}



.tb-btn-secondary:hover {

    background: #DE0F17;

    color: white;

}



.tb-btn-outline {

    background: #222;

    color: #fff;

    border: 2px solid #222;

}



.tb-btn-outline:hover {

    background: #222;

    color: white;

}



.tb-btn-large {

    padding: 16px 32px;

    font-size: 16px;

}



.tb-btn:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none !important;

}



/* === ACCIONES DEL FORMULARIO === */

.tb-form-actions {

    display: flex;

    gap: 15px;

    justify-content: center;

    padding: 25px;

    background: transparent;

    border-radius: 0px;

}



/* === MENSAJES === */

.tb-messages-container {

    margin-top: 20px;

}



.tb-message {

    padding: 16px 20px;

    border-radius: 8px;

    margin-bottom: 15px;

    border-left: 4px solid;

    font-weight: 500;

    animation: slideInDown 0.3s ease-out;

}



.tb-message.tb-success {

    background: #d4edda;

    color: #155724;

    border-left-color: #28a745;

}



.tb-message.tb-error {

    background: #f8d7da;

    color: #721c24;

    border-left-color: #dc3545;

}



.tb-message.tb-info {

    background: #d1ecf1;

    color: #0c5460;

    border-left-color: #17a2b8;

}



/* === NOTIFICACIONES === */

.tb-notification {

    position: fixed;

    top: 20px;

    right: 20px;

    z-index: 100000;

    max-width: 350px;

    padding: 16px 20px;

    border-radius: 8px;

    box-shadow: 0 4px 16px rgba(0,0,0,0.15);

    animation: slideInRight 0.3s ease-out;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}



.tb-notification-success {

    background: #d4edda;

    color: #155724;

    border-left: 4px solid #28a745;

}



.tb-notification-error {

    background: #f8d7da;

    color: #721c24;

    border-left: 4px solid #dc3545;

}



.tb-notification-info {

    background: #d1ecf1;

    color: #0c5460;

    border-left: 4px solid #17a2b8;

}



.tb-notification-close {

    background: none;

    border: none;

    font-size: 18px;

    cursor: pointer;

    color: inherit;

    opacity: 0.7;

    transition: opacity 0.3s;

}



.tb-notification-close:hover {

    opacity: 1;

}



/* === PROGRESS BAR === */

.tb-upload-progress {

    width: 100%;

    height: 6px;

    background: #e9ecef;

    border-radius: 3px;

    overflow: hidden;

    margin: 15px 0;

    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);

}



.tb-upload-progress-bar {

    height: 100%;

    background: linear-gradient(90deg, #007cba, #0096d6);

    border-radius: 3px;

    transition: width 0.3s ease;

    animation: shimmer 1.5s infinite;

    background-size: 200% 100%;

}



/* === TOOLTIPS === */

.tb-tooltip {

    position: absolute;

    background: #333;

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 12px;

    z-index: 10000;

    white-space: nowrap;

    animation: fadeInTooltip 0.2s ease-out;

}



.tb-tooltip::after {

    content: '';

    position: absolute;

    top: 100%;

    left: 50%;

    transform: translateX(-50%);

    border: 5px solid transparent;

    border-top-color: #333;

}



/* === ANIMACIONES === */

@keyframes slideInDown {

    from {

        opacity: 0;

        transform: translateY(-20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes slideInRight {

    from {

        opacity: 0;

        transform: translateX(100%);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}



@keyframes fadeInTooltip {

    from {

        opacity: 0;

        transform: translateY(-5px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes shimmer {

    0% {

        background-position: -200% 0;

    }

    100% {

        background-position: 200% 0;

    }

}



/* === RESPONSIVE === */

@media (max-width: 1024px) {

    .tb-form-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    

    .tb-profile-editor {

        padding: 15px;

    }

}



@media (max-width: 768px) {

    .tb-form-row {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    

    .tb-form-section {

        padding: 20px;

        margin-bottom: 20px;

    }

    

    .tb-form-actions {

        flex-direction: column;

        padding: 20px;

    }

    

    .tb-gallery-grid {

        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));

        gap: 12px;

        padding: 15px;

    }

    

    .tb-photo-preview img,

    .tb-photo-placeholder {

        width: 120px;

        height: 120px;

    }

    

    .tb-notification {

        right: 10px;

        left: 10px;

        max-width: none;

    }

}



@media (max-width: 480px) {

    .tb-profile-editor {

        padding: 10px;

    }

    

    .tb-form-section {

        padding: 15px;

        margin-bottom: 15px;

    }

    

    .tb-form-section h3 {

        font-size: 1.1rem;

    }

    

    .tb-btn {

        padding: 10px 20px;

        font-size: 13px;

    }

    

    .tb-btn-large {

        padding: 14px 28px;

        font-size: 14px;

    }

    

    .tb-gallery-grid {

        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));

        gap: 10px;

        padding: 12px;

    }

    

    .tb-photo-preview img,

    .tb-photo-placeholder {

        width: 100px;

        height: 100px;

    }

    

    .tb-profile-header h2 {

        font-size: 1.5rem;

    }

    

    .tb-profile-header p {

        font-size: 1rem;

    }

}



/* === MODO OSCURO === */

@media (prefers-color-scheme: dark) {

    .tb-form-section {

        background: #2c2c2c;

        border-color: #444;

        color: #e0e0e0;

    }

    

    .tb-form-section h3 {

        color: #e0e0e0;

        border-bottom-color: #444;

    }

    

    .tb-form-group input,

    .tb-form-group select {

        background: #333;

        border-color: #555;

        color: #e0e0e0;

    }

    

    .tb-form-group input:focus,

    .tb-form-group select:focus {

        border-color: #0096d6;

    }

    

    .tb-photo-placeholder,

    .tb-gallery-add {

        background: #333;

        border-color: #555;

        color: #ccc;

    }

    

    .tb-gallery-grid {

        background: #2c2c2c;

        border-color: #555;

    }

    

    .tb-account-info {

        background: #333;

        border-color: #555;

    }

}



/* === ACCESIBILIDAD === */

@media (prefers-reduced-motion: reduce) {

    * {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}



/* === FOCUS VISIBLE === */

.tb-btn:focus-visible,

.tb-form-group input:focus-visible,

.tb-form-group select:focus-visible {

    outline: 2px solid #0096d6;

    outline-offset: 2px;

}



/* === ALTO CONTRASTE === */

@media (prefers-contrast: high) {

    .tb-btn-primary {

        background: #000;

        border-color: #000;

    }

    

    .tb-btn-outline {

        border-width: 3px;

    }

    

    .tb-form-group input,

    .tb-form-group select {

        border-width: 3px;

    }

}

.tb-ajax-message {
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.tb-ajax-message.tb-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.tb-ajax-message.tb-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}