/* ========================================
   TRAMPERAS - ESTILOS PARA P├üGINA DE PERFIL
   ======================================== */

/* ========================================
   CONTENEDOR PRINCIPAL DE PERFIL
   ======================================== */
.perfil-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--trans-white);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.perfil-header {
    text-align: center;
    margin-bottom: 2rem;
}

.perfil-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.perfil-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   FORMULARIO DE PERFIL
   ======================================== */
.perfil-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: #F9FAFB;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: var(--trans-pink);
    font-size: 1.125rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--trans-white);
    display: block;
    visibility: visible;
    opacity: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--trans-blue);
}

/* Asegurar que el campo de nombre del visitante sea visible */
#visitor-name-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}

/* Estilos para comentarios de visitantes */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem 0;
}

.comment-item {
    background: var(--trans-white);
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.comment-author {
    font-weight: 600;
    color: var(--trans-blue);
    font-size: 0.875rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #6B7280;
}

.comment-text {
    color: var(--color-text-primary);
    line-height: 1.5;
    font-size: 0.875rem;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #6B7280;
}

.no-comments i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #D1D5DB;
}

.comment-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.comment-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #16A34A;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* ========================================
   ESTILOS PARA MODAL DE VIDEOS ESTILO INSTAGRAM
   ======================================== */

.video-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: 1000px;
    height: 700px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    overflow: hidden;
}

/* Modal de videos cuando est├í abierto */
#video-modal.modal-open {
    display: flex !important;
}

/* Backdrop del modal */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Bot├│n de cerrar */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Navegaci├│n entre videos */
.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 5;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.nav-prev {
    left: 15px;
}

.nav-next {
    right: 15px;
}

/* Contenedor de video */
.modal-video-container {
    position: relative;
    width: 65%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 0 0 12px;
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}

/* Controles de video */
.video-controls-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Panel de informaci├│n */
.modal-info-panel {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 12px 12px 0;
}

/* Header del modal */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #dbdbdb;
    min-height: 60px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #262626;
}

.video-location {
    font-size: 12px;
    color: #8e8e8e;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #262626;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.menu-btn:hover {
    background: #fafafa;
}

/* Secci├│n de comentarios */
.modal-comments-section {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    max-height: 400px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
    color: #262626;
    margin-bottom: 4px;
}

.comment-username {
    font-weight: 600;
    margin-right: 8px;
    color: #262626;
}

.comment-time {
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 4px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.comment-like {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.comment-like:hover {
    color: #ed4956;
}

.comment-reply {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.comment-reply:hover {
    color: #262626;
}

/* Acciones del modal */
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #dbdbdb;
    min-height: 60px;
}

.actions-left {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #262626;
}

.action-btn:hover {
    background: #fafafa;
    transform: scale(1.1);
}

.action-btn.active {
    color: #ed4956;
}

/* Estad├¡sticas */
.modal-stats {
    padding: 0 20px 8px;
}

.likes-count {
    font-size: 14px;
    font-weight: 400;
    color: #262626;
}

/* Descripci├│n del video */
.modal-caption {
    padding: 0 20px 8px;
}

.caption-text {
    font-size: 14px;
    line-height: 1.4;
    color: #262626;
}

.video-date {
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 4px;
    display: block;
}

/* Formulario de comentario */
.modal-comment-form {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #dbdbdb;
    gap: 12px;
    min-height: 60px;
}

#modal-comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    color: #262626;
}

#modal-comment-input::placeholder {
    color: #8e8e8e;
}

#modal-comment-submit {
    background: none;
    border: none;
    color: #0095f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

#modal-comment-submit:hover:not(:disabled) {
    background: #fafafa;
}

#modal-comment-submit:disabled {
    color: #8e8e8e;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95vw;
        height: 95vh;
        max-width: none;
        max-height: none;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-video-container {
        width: 100%;
        height: 60%;
    }
    
    .modal-info-panel {
        width: 100%;
        height: 40%;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
}

.video-gallery-container {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.video-item {
    position: relative;
    background: var(--trans-white);
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    border-color: var(--trans-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-item.marked-for-deletion {
    opacity: 0.5;
    border-color: #EF4444;
    background: #FEF2F2;
}

.video-preview {
    position: relative;
    width: 100%;
    height: 120px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview .video-icon {
    font-size: 2rem;
    color: #9CA3AF;
}

.video-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;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-overlay .play-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-overlay .play-button:hover {
    background: white;
    transform: scale(1.1);
}

.video-overlay .play-button i {
    color: var(--trans-blue);
    font-size: 1.2rem;
    margin-left: 2px;
}

.video-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-actions {
    opacity: 1;
}

.video-actions .btn-action {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-actions .btn-action:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-actions .btn-action i {
    color: white;
    font-size: 0.8rem;
}

.video-actions .btn-delete {
    background: rgba(239, 68, 68, 0.8);
}

.video-actions .btn-delete:hover {
    background: rgba(239, 68, 68, 1);
}

.video-actions .btn-restore {
    background: rgba(34, 197, 94, 0.8);
}

.video-actions .btn-restore:hover {
    background: rgba(34, 197, 94, 1);
}

.video-info {
    padding: 0.75rem;
    background: var(--trans-white);
}

.video-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-size {
    font-size: 0.75rem;
    color: #6B7280;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive para modal de videos */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95vw;
        width: 95vw;
    }
    
    .video-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .video-preview {
        height: 100px;
    }
}

/* ========================================
   ESTILOS PARA GALER├ìA DE VIDEOS PRINCIPAL
   ======================================== */

.galeria-video-item {
    position: relative;
    background: var(--trans-white);
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.galeria-video-item:hover {
    border-color: var(--trans-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.galeria-video-container {
    position: relative;
    width: 100%;
    height: 120px;
    background: #F3F4F6;
    overflow: hidden;
}

.galeria-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-video-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;
}

.galeria-video-item:hover .galeria-video-overlay {
    opacity: 1;
}

.btn-eliminar-video {
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-eliminar-video:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.btn-eliminar-video i {
    color: white;
    font-size: 1rem;
}

.galeria-video-info {
    padding: 0.75rem;
    background: var(--trans-white);
}

.galeria-video-nombre {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.galeria-video-tama├▒o {
    font-size: 0.75rem;
    color: #6B7280;
}

/* Estilos espec├¡ficos para select */
.form-input[type="select"],
.form-input[type="select"]:focus,
select.form-input,
select.form-input:focus {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-input[type="select"]:hover,
select.form-input:hover {
    border-color: var(--trans-blue);
    background-color: var(--trans-white);
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
}

.form-input[readonly] {
    background-color: #F3F4F6;
    color: #6B7280;
    cursor: not-allowed;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--trans-white);
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--trans-blue);
    box-shadow: 0 0 0 3px rgba(91, 206, 250, 0.1);
}

.form-help {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-error {
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: 'ÔÜá´©Å';
    font-size: 0.75rem;
}

.form-error:empty {
    display: none;
}

/* ========================================
   UPLOAD DE ARCHIVOS
   ======================================== */
.file-upload-container {
    border: 2px dashed #E5E7EB;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.file-upload-container:hover {
    border-color: var(--trans-blue);
    background-color: #F0F9FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-input {
    display: none;
}

.file-upload-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #F9FAFB;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-secondary);
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-placeholder i {
    font-size: 3rem;
    color: var(--trans-pink);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.file-upload-placeholder span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.file-upload-placeholder small {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.file-upload-placeholder:hover {
    background-color: rgba(245, 169, 184, 0.1);
    border-color: var(--trans-pink);
}

#foto_perfil_preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#foto_perfil_preview:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Responsive para m├│viles */
@media (max-width: 768px) {
    .file-upload-container {
        max-width: 100%;
        margin: 0;
    }
    
    .file-upload-preview {
        aspect-ratio: 3/4;
    }
    
    .file-upload-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .file-upload-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}
.file-upload-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 0.5rem;
}

.file-upload-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.file-upload-actions .btn--secondary {
    background-color: var(--trans-blue);
    color: var(--trans-white);
    border-color: var(--trans-blue);
}

.file-upload-actions .btn--secondary:hover {
    background-color: transparent;
    color: var(--trans-blue);
    transform: translateY(-2px);
}

.file-upload-actions .btn--danger {
    background-color: #dc3545;
    color: var(--trans-white);
    border-color: #dc3545;
}

.file-upload-actions .btn--danger:hover {
    background-color: transparent;
    color: #dc3545;
    transform: translateY(-2px);
}

/* ========================================
   ESTADOS DE LA FOTO
   ======================================== */
.file-upload-container.has-photo {
    border-style: solid;
    border-color: var(--trans-pink);
    background-color: #FDF2F8;
    box-shadow: 0 4px 12px rgba(245, 169, 184, 0.2);
}

.file-upload-container.has-photo:hover {
    border-color: var(--trans-pink);
    background-color: #FCE7F3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 169, 184, 0.3);
}

/* ========================================
   INFORMACI├ôN DE LA FOTO
   ======================================== */
.foto-info {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--trans-pink);
    color: black;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: slideInDown 0.3s ease-out;
    max-width: calc(100% - 1rem);
    word-wrap: break-word;
}

.foto-info-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.foto-info i {
    color: var(--trans-white);
    font-size: 0.875rem;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.galeria-upload {
    border: 2px dashed #E5E7EB;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
    position: relative;
    background-color: #F9FAFB;
}

.galeria-upload:hover {
    border-color: var(--trans-blue);
    background-color: #F0F9FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GALER├ìA DE FOTOS Y VIDEOS
   ======================================== */
.galeria-grid {
    display: grid;
    gap: 1rem;
}

.galeria-6-columns {
    grid-template-columns: repeat(6, 1fr);
}

.galeria-4-columns {
    grid-template-columns: repeat(4, 1fr);
}

.galeria-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #F3F4F6;
    aspect-ratio: 1;
}

.galeria-item img,
.galeria-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-item-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.btn-eliminar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-eliminar:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.galeria-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-item-overlay {
    opacity: 1;
}

.galeria-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn--icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--delete {
    background-color: var(--color-danger);
    color: white;
}

.btn--delete:hover {
    background-color: #DC2626;
    transform: scale(1.1);
}

.btn--edit {
    background-color: var(--trans-blue);
    color: white;
}

.btn--edit:hover {
    background-color: #0891B2;
    transform: scale(1.1);
}

/* ========================================
   ALERTAS
   ======================================== */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info {
    background-color: #DBEAFE;
    border: 1px solid #93C5FD;
    color: #1E40AF;
}

.alert-warning {
    background-color: #FFF7ED;
    border: 1px solid #FDBA74;
    color: #C2410C;
}

.alert i {
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.alert div {
    flex: 1;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ========================================
   MAPA
   ======================================== */
.mapa-busqueda {
    display: flex;
    gap: 0.5rem;
}

#btn-ubicacion-actual {
    margin-bottom: 1rem;
    background-color: var(--trans-blue);
    color: white;
    border: 2px solid var(--trans-blue);
}

#btn-ubicacion-actual:hover {
    background-color: var(--trans-pink);
    border-color: var(--trans-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mapa-container {
    margin: 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mapa {
    width: 100%;
    height: 400px;
    background-color: #F3F4F6;
}

.coordenadas-info {
    margin-top: 1rem;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--trans-white);
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .galeria-6-columns {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .galeria-4-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .perfil-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .perfil-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .galeria-6-columns,
    .galeria-4-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .galeria-6-filas {
        grid-template-rows: repeat(6, 1fr);
        max-height: 600px;
        overflow-y: auto;
    }
    
    .mapa {
        height: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .galeria-6-columns,
    .galeria-4-columns {
        grid-template-columns: 1fr;
    }
    
    .mapa-busqueda {
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* ========================================
   CAMPOS DE TEL├ëFONO
   ======================================== */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.phone-code {
    flex: 0 0 auto;
    width: 120px;
    min-width: 120px;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.phone-number {
    flex: 1;
    min-width: 0;
}

/* Responsive para campos de tel├®fono */
@media (max-width: 768px) {
    .phone-input-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .phone-code {
        width: 100%;
        min-width: 100%;
    }
    
    .phone-number {
        width: 100%;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
.perfil-container {
    animation: slideInUp 0.6s ease;
}

.form-section {
    animation: fadeIn 0.6s ease;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   ESTADOS DE VALIDACI├ôN
   ======================================== */
.form-input:valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--color-danger);
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */
.form-input:focus {
    outline: 2px solid var(--trans-blue);
    outline-offset: 2px;
}

.form-input:focus-visible {
    outline: 2px solid var(--trans-blue);
    outline-offset: 2px;
}

.file-upload-container:focus-within {
    outline: 2px solid var(--trans-blue);
    outline-offset: 2px;
}

/* ========================================
   GALER├ìA DE FOTOS
   ======================================== */
.galeria-upload {
    position: relative;
    margin-bottom: 1.5rem;
}

.galeria-upload .file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Estilos espec├¡ficos para el input de foto de perfil - EXACTAMENTE como en test-foto-final.html */
.file-upload-container .file-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    z-index: 10 !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: auto !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

.file-upload-container .file-upload-placeholder {
    pointer-events: none !important;
}

/* Forzar que el contenedor sea clickeable */
.file-upload-container {
    position: relative !important;
    cursor: pointer !important;
}

/* Estilos para la vista previa de la foto */
.file-upload-container #foto_perfil_preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 4px solid white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    z-index: 5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Ocultar placeholder cuando hay foto */
.file-upload-container.has-photo .file-upload-placeholder {
    display: none !important;
}

.galeria-upload .file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #D1D5DB;
    border-radius: 0.75rem;
    background-color: #F9FAFB;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.galeria-upload .file-upload-placeholder:hover {
    border-color: var(--trans-pink);
    background-color: #FDF2F8;
}

.galeria-upload .file-upload-placeholder i {
    font-size: 3rem;
    color: var(--trans-pink);
    margin-bottom: 1rem;
}

.galeria-upload .file-upload-placeholder span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.galeria-upload .file-upload-placeholder small {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.galeria-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.galeria-6-columns {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.galeria-foto-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galeria-foto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.galeria-foto-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.galeria-foto-item:hover .galeria-foto-img {
    transform: scale(1.05);
}

.galeria-foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-foto-item:hover .galeria-foto-overlay {
    opacity: 1;
}

.btn-eliminar-foto {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-eliminar-foto:hover {
    background: #DC2626;
    transform: scale(1.1);
}

.galeria-foto-info {
    padding: 0.75rem;
    background: white;
}

.galeria-foto-nombre {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.galeria-foto-tama├▒o {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* ========================================
   RESPONSIVE DESIGN PARA GALER├ìA
   ======================================== */
@media (max-width: 768px) {
    .galeria-6-columns {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .galeria-upload .file-upload-placeholder {
        padding: 2rem 1rem;
    }
    
    .galeria-upload .file-upload-placeholder i {
        font-size: 2rem;
    }
}

/* ========================================
   ESTILOS PARA SECCI├ôN DE REDES SOCIALES
   ======================================== */
.redes-sociales-info {
    margin-bottom: 1.5rem;
}

.redes-sociales-info .alert {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.redes-sociales-info .alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.redes-sociales-info .alert div {
    flex: 1;
}

.redes-sociales-info .alert strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

/* Estilos para los campos de redes sociales */
.form-group label[for="instagram"] i {
    color: #E4405F;
}

.form-group label[for="tiktok"] i {
    color: #000000;
}

.form-group label[for="facebook"] i {
    color: #1877F2;
}

.form-group label[for="x"] i {
    color: #000000;
}

.form-group label[for="onlyfans"] i {
    color: #00AFF0;
}

/* Estilos espec├¡ficos para inputs de redes sociales */
.form-group input[type="url"] {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.form-group input[type="url"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="url"]:valid {
    border-color: #10B981;
}

.form-group input[type="url"]:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

/* Iconos de redes sociales en los labels */
.form-group label i {
    margin-right: 0.5rem;
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Estilos para el texto de ayuda de redes sociales */
.form-group .form-help {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .redes-sociales-info .alert {
        padding: 0.875rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .redes-sociales-info .alert i {
        margin-bottom: 0.5rem;
    }
    
    .form-group label i {
        font-size: 1rem;
        width: 18px;
    }
}

/* ========================================
   ESTILOS DE GALERÍA (COPIADOS DE ACTUALIZAR-PERFIL.CSS)
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
    width: 100%;
    min-height: 200px;
    max-width: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-item.video-item::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Botón para agregar archivos */
.gallery-upload-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.add-gallery-btn {
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 206, 250, 0.3);
}

.add-gallery-btn i {
    font-size: 1.1rem;
}

/* Input de archivo oculto */
.gallery-file-input {
    display: none;
}

/* Acciones de elementos de galería */
.gallery-item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-delete-btn {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.gallery-delete-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

/* ========================================
   MODAL DE ÉXITO - PERFIL CREADO
   ======================================== */
.modal-exito-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(245, 169, 184, 0.3);
    padding: 0;
    overflow: hidden;
}

.modal-exito-icon {
    text-align: center;
    padding: 2rem 2rem 0;
}

.modal-exito-icon i {
    font-size: 4rem;
    color: #22C55E;
    animation: checkmarkBounce 0.6s ease;
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-exito-mensaje {
    padding: 1.5rem 2rem;
    text-align: center;
}

.modal-exito-mensaje h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5BCEFA 0%, #F5A9B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-exito-mensaje p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.modal-exito-mensaje p strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.gracias-mensaje {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #F5A9B8 !important;
    margin-top: 1rem !important;
}

.modal-exito-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.btn-continuar-modal {
    background: linear-gradient(135deg, #F5A9B8 0%, #FF69B4 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 169, 184, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-continuar-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 169, 184, 0.6);
    background: linear-gradient(135deg, #FF69B4 0%, #F5A9B8 100%);
}

.btn-continuar-modal:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245, 169, 184, 0.4);
}

/* Responsive para modal de éxito */
@media (max-width: 768px) {
    .modal-exito-content {
        width: 95%;
    }
    
    .modal-exito-icon i {
        font-size: 3rem;
    }
    
    .modal-exito-mensaje h3 {
        font-size: 1.5rem;
    }
    
    .modal-exito-mensaje p {
        font-size: 0.9rem;
    }
    
    .btn-continuar-modal {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   MODAL DE CARGA - GUARDANDO PERFIL
   ======================================== */
.modal-cargando {
    z-index: 2000; /* Por encima de otros modales */
    background-color: rgba(0, 0, 0, 0.75); /* Fondo más oscuro para mayor visibilidad */
}

.modal-cargando-content {
    background-color: var(--trans-white);
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    padding: 0;
    border: none;
}

.modal-cargando-body {
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-cargando-spinner {
    font-size: 3rem;
    color: var(--trans-pink);
    animation: spin 1s linear infinite;
}

.modal-cargando-spinner i {
    display: block;
}

.modal-cargando-mensaje h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.modal-cargando-mensaje p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ========================================
   BARRA DE PROGRESO
   ======================================== */
.progress-container {
    width: 100%;
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5BCEFA 0%, #F5A9B8 100%);
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo animado */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.progress-stage {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 500;
    min-height: 1.5rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive para modal de carga */
@media (max-width: 768px) {
    .modal-cargando-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-cargando-body {
        padding: 2rem 1.5rem;
    }
    
    .modal-cargando-spinner {
        font-size: 2.5rem;
    }
    
    .modal-cargando-mensaje h3 {
        font-size: 1.25rem;
    }
    
    .modal-cargando-mensaje p {
        font-size: 0.9rem;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
    
    .progress-stage {
        font-size: 0.9rem;
    }
}

/* ========================================
   ESTILO ESPECÍFICO DEL BOTÓN "CREAR PERFIL"
   ======================================== */
#btn-guardar-perfil.btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

#btn-guardar-perfil.btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
}

