/* ===== ESTILOS PARA EL MODAL DE DETALLE DE FLOTA ===== */

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.modal-container {
    background: var(--glass-bg-solid);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #FFD700, #000);
    border: 2px solid #FFD700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-weight: bold;
}

.modal-close:hover {
    background: linear-gradient(45deg, #000, #FFD700);
    color: #FFD700;
    transform: scale(1.1);
}

/* Modal content */
.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

/* Left side - Aircraft info */
.aircraft-details-left {
    display: flex;
    flex-direction: column;
}

.aircraft-modal-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.aircraft-modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}

.aircraft-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.aircraft-modal-types {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.aircraft-modal-type {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.aircraft-modal-type.transport {
    background: linear-gradient(135deg, #0b3d2e, #0b3d2e);
    color: white;
}

.aircraft-modal-type.cargo {
    background: linear-gradient(135deg, #800020, #800020);
    color: white;
}

.aircraft-modal-type.medical {
    background: linear-gradient(135deg, #c9a227, #c9a227);
    color: white;
}

.aircraft-description {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Specifications */
.aircraft-specs {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.more-info-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    align-self: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.more-info-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.specs-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-label {
    color: var(--white);
    font-weight: 500;
    opacity: 0.8;
}

.spec-value {
    color: var(--accent);
    font-weight: 600;
}

/* Right side - Contact form */
.aircraft-contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px 30px 30px 30px;
    height: auto;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}



.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-select option {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding:8px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

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

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none;
    border-radius: 10px;
    color: var(--primary-black);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Aircraft icons */
.aircraft-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    color: var(--primary-black);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .aircraft-modal-title {
        font-size: 1.5rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .aircraft-contact-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    height: 100%;
}
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }
    
    .aircraft-modal-image {
        height: 200px;
    }
    
    .aircraft-contact-form {
        padding: 15px;
    }
}