﻿/* ===== Ficha Tecnica Modal ===== */
.ft-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ftFadeIn 0.25s ease;
}

@@keyframes ftFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes ftSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ft-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1400px;
    max-height: calc(100vh - 40px);
    width: 100%;
    display: flex;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: ftSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

    /* Gradient top accent */
    .ft-modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #F07400, #00b4ff, #F07400);
        z-index: 5;
    }

.ft-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .ft-close-x:hover {
        background: rgba(255, 61, 113, 0.3);
        border-color: rgba(255, 61, 113, 0.5);
        color: #ff3d71;
        transform: scale(1.1);
    }

/* Image Section */
.ft-image-section {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    background: #111;
    align-self: stretch;
}

.ft-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.ft-image-link:hover .ft-image {
    transform: scale(1.04);
}

.ft-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.ft-image-link:hover .ft-image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Info Section */
.ft-info-section {
    flex: 1;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}

.ft-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ft-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(240, 116, 0, 0.15), rgba(0, 180, 255, 0.1));
    border: 1px solid rgba(240, 116, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F07400;
    flex-shrink: 0;
}

.ft-title-row h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.ft-gradient-line {
    height: 2px;
    background: linear-gradient(90deg, #F07400, #00b4ff, transparent);
    border-radius: 2px;
    margin-bottom: 20px;
}

.ft-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.ft-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

    .ft-field:hover {
        background: rgba(240, 116, 0, 0.04);
        border-color: rgba(240, 116, 0, 0.12);
    }

.ft-field-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(240, 116, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #F07400;
}

.ft-field-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ft-field-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.ft-field-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.ft-close-btn {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ft-close-btn:hover {
        background: rgba(255, 61, 113, 0.08);
        border-color: rgba(255, 61, 113, 0.3);
        color: #ff3d71;
    }

@@media (max-width: 768px) {
    .ft-modal {
        flex-direction: column;
        max-width: 500px;
    }

    .ft-image-section {
        flex: 0 0 auto;
        max-height: 280px;
    }

    .ft-image {
        min-height: 220px;
        max-height: 280px;
    }

    .ft-info-section {
        padding: 20px;
    }
}

@@media (max-width: 480px) {
    .ft-overlay {
        padding: 10px;
    }

    .ft-image-section {
        max-height: 200px;
    }

    .ft-image {
        min-height: 160px;
        max-height: 200px;
    }

    .ft-info-section {
        padding: 16px;
    }

    .ft-field {
        padding: 8px 10px;
    }

    .ft-title-row h3 {
        font-size: 15px;
    }
}