/* ========================================
   MODEL APPLICATION - BOTON FLOTANTE + MODAL
   Sistema para aplicar como modelo
   ======================================== */

/* ========================================
   BOTON FLOTANTE
   ======================================== */

.model-apply-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.model-apply-float-btn:hover {
    background: linear-gradient(135deg, #F06292 0%, #E91E63 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.7);
    color: white;
}

.model-apply-float-btn i {
    font-size: 1.3rem;
    animation: sparkle 1.5s infinite;
}

/* Animacion de pulso */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
    }
    50% {
        box-shadow: 0 8px 35px rgba(233, 30, 99, 0.8);
    }
}

/* Animacion del icono */
@keyframes sparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* Solo visible en header y footer */
.model-apply-float-btn {
    display: none;
}

/* Mostrar en header (primeros 100vh) */
body.show-model-btn-header .model-apply-float-btn,
/* Mostrar en footer */
body.show-model-btn-footer .model-apply-float-btn {
    display: flex;
}

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

.model-application-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.model-application-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #E91E63;
    border-radius: 25px;
    max-width: 480px;
    width: 90%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.4);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Header */
.model-application-modal-header {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 23px 23px 0 0;
    position: relative;
    text-align: center;
}

.model-application-modal-header .modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: white;
    font-family: 'Cormorant Garamond', serif;
}

.model-application-modal-header .modal-title i {
    font-size: 1.4rem;
}

.model-application-modal-header .modal-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.model-application-modal-header .modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) rotate(90deg);
}

/* Body */
.model-application-modal-body {
    padding: 1rem 1.2rem;
}

.model-application-modal-body .intro-text {
    color: #E91E63;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
}

/* Form */
.model-application-form .form-group {
    margin-bottom: 0.7rem;
}

.model-application-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.model-application-form label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #E91E63;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.model-application-form label i {
    color: #E91E63;
    font-size: 0.9rem;
}

.model-application-form label .required {
    color: #ff5252;
    font-size: 0.75rem;
}

.model-application-form input[type="text"],
.model-application-form input[type="email"],
.model-application-form input[type="tel"],
.model-application-form input[type="url"],
.model-application-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.model-application-form input:focus,
.model-application-form textarea:focus {
    outline: none;
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.1);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

.model-application-form textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.4;
}

.model-application-form input::placeholder,
.model-application-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Upload area */
.upload-area {
    border: 2px dashed rgba(233, 30, 99, 0.4);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    background: rgba(233, 30, 99, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0.7rem;
}

.upload-area:hover {
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.1);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: #F06292;
    background: rgba(233, 30, 99, 0.15);
}

.upload-area i {
    font-size: 1.8rem;
    color: #E91E63;
    margin-bottom: 0.5rem;
    display: block;
}

.upload-area .upload-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-area .upload-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.upload-area input[type="file"] {
    display: none;
}

.file-selected {
    background: rgba(233, 30, 99, 0.15);
    border: 2px solid #E91E63;
    padding: 0.6rem;
    border-radius: 8px;
    margin-top: 0.6rem;
    display: none;
    align-items: center;
    gap: 0.6rem;
}

.file-selected.show {
    display: flex;
}

.file-selected i {
    font-size: 1.4rem;
    color: #E91E63;
}

.file-selected .file-info {
    flex: 1;
    text-align: left;
}

.file-selected .file-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.file-selected .file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.file-selected .remove-file {
    background: rgba(255, 82, 82, 0.2);
    border: none;
    color: #ff5252;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-selected .remove-file:hover {
    background: rgba(255, 82, 82, 0.4);
    transform: scale(1.1);
}

/* Divisor OR */
.or-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.5);
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(233, 30, 99, 0.3);
}

.or-divider span {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Boton submit */
.model-application-btn-submit {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.model-application-btn-submit:hover {
    background: linear-gradient(135deg, #F06292 0%, #E91E63 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.6);
}

.model-application-btn-submit:active {
    transform: translateY(-1px);
}

.model-application-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.model-application-btn-submit.loading {
    background: linear-gradient(135deg, #C2185B 0%, #D81B60 100%);
}

.model-application-btn-submit i {
    font-size: 1.1rem;
}

/* Mensajes */
.form-message {
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    animation: slideDown 0.3s ease;
}

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

.form-message i {
    font-size: 1.2rem;
}

.form-message-success {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.form-message-error {
    background: rgba(255, 82, 82, 0.15);
    border: 2px solid #ff5252;
    color: #ff5252;
}

/* Scrollbar */
.model-application-modal-content::-webkit-scrollbar {
    width: 10px;
}

.model-application-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.model-application-modal-content::-webkit-scrollbar-thumb {
    background: #E91E63;
    border-radius: 10px;
}

.model-application-modal-content::-webkit-scrollbar-thumb:hover {
    background: #F06292;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .model-apply-float-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .model-application-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .model-application-modal-header {
        padding: 1.5rem;
    }

    .model-application-modal-header .modal-title {
        font-size: 1.5rem;
    }

    .model-application-modal-body {
        padding: 1.5rem;
    }

    .model-application-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .upload-area {
        padding: 2rem;
    }

    .upload-area i {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .model-apply-float-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .model-apply-float-btn i {
        font-size: 1.1rem;
    }

    .model-application-modal-header {
        padding: 1.2rem;
    }

    .model-application-modal-header .modal-title {
        font-size: 1.3rem;
        gap: 0.6rem;
    }

    .model-application-modal-header .modal-title i {
        font-size: 1.6rem;
    }

    .model-application-modal-header .modal-close {
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }

    .model-application-modal-body {
        padding: 1.2rem;
    }

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

    .model-application-form label {
        font-size: 0.9rem;
    }

    .model-application-form input,
    .model-application-form textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .upload-area {
        padding: 1.5rem;
    }

    .upload-area i {
        font-size: 2rem;
    }

    .upload-area .upload-text {
        font-size: 1rem;
    }

    .model-application-btn-submit {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }
}

/* Prevenir scroll del body cuando modal esta abierto */
body.modal-open {
    overflow: hidden;
}
