/* Herramienta: Convertir HEIC a JPG */

.heic-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(22, 18, 18, 0.06);
}

/* Zona de carga */
.heic-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 48px 20px;
    border: 2px dashed #E3D6D6;
    border-radius: 12px;
    background: #FCFAFA;
    transition: border-color .2s ease-out, background-color .2s ease-out;
}

.heic-drop.is-over {
    border-color: #FD6144;
    background: rgba(253, 97, 68, 0.06);
}

.heic-drop-icon {
    width: 48px;
    height: 48px;
    color: #FD6144;
    margin-bottom: 6px;
}

.heic-drop-hint {
    color: #6B7280;
    font-size: 15px;
}

.heic-drop-status {
    color: #9CA3AF;
    font-size: 14px;
}

/* Botones */
.heic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease-out, transform .2s ease-out, background-color .2s ease-out;
    white-space: nowrap;
}

.heic-btn:active { transform: scale(.98); }

.heic-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.heic-btn-primary {
    background: linear-gradient(90deg, #FD6144, #FD3244);
    color: #fff;
    border: none;
}

.heic-btn-primary:not(:disabled):hover { opacity: .9; }

.heic-btn-ghost {
    background: transparent;
    color: #161212;
    border: 1px solid #E5E7EB;
}

.heic-btn-ghost:hover { background: #F3F4F6; }

.heic-btn-sm {
    padding: 8px 14px;
    font-size: 14px;
}

/* Opciones */
.heic-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 20px;
}

.heic-quality {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #374151;
}

.heic-quality input { accent-color: #FD6144; width: 160px; }

.heic-quality output {
    min-width: 3ch;
    font-variant-numeric: tabular-nums;
    color: #FD3244;
    font-weight: 600;
}

.heic-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}

.heic-privacy svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #AE3A8D;
}

/* Resultados */
.heic-results {
    margin-top: 28px;
    border-top: 1px solid #F0E8E8;
    padding-top: 20px;
}

.heic-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.heic-results-bar p { font-weight: 600; }

.heic-results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.heic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.heic-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #F0E8E8;
    border-radius: 12px;
}

.heic-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #F3EEEE;
    object-fit: cover;
}

.heic-info { min-width: 0; }

.heic-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.heic-meta {
    font-size: 13px;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
}

.heic-item.is-error .heic-meta { color: #DC2626; }

.heic-bar {
    height: 4px;
    margin-top: 6px;
    border-radius: 4px;
    background: #F3EEEE;
    overflow: hidden;
}

.heic-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #FD6144, #FD3244);
    animation: heicSlide 1.1s ease-in-out infinite;
}

@keyframes heicSlide {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    .heic-bar span { animation: none; width: 100%; opacity: .5; }
}

/* Pasos */
.heic-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 64rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.heic-steps li {
    background: #fff;
    border: 1px solid #F0E8E8;
    border-radius: 16px;
    padding: 24px;
}

.heic-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(253, 97, 68, 0.12);
    color: #FD3244;
    font-weight: 700;
    margin-bottom: 14px;
}

/* FAQ */
.heic-faq {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.heic-faq details {
    background: #fff;
    border: 1px solid #F0E8E8;
    border-radius: 12px;
    padding: 16px 20px;
}

.heic-faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.heic-faq summary::-webkit-details-marker { display: none; }

.heic-faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex-shrink: 0;
    border-right: 2px solid #FD6144;
    border-bottom: 2px solid #FD6144;
    transform: rotate(45deg);
    transition: transform .2s ease-out;
}

.heic-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }

.heic-faq details p {
    margin-top: 10px;
    color: #4B5563;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .heic-card { padding: 16px; }
    .heic-drop { padding: 36px 16px; }
    .heic-quality { width: 100%; }
    .heic-quality span { white-space: nowrap; }
    .heic-quality input { flex: 1; width: auto; min-width: 0; }
    .heic-steps { grid-template-columns: 1fr; }
    .heic-item { grid-template-columns: 48px 1fr; }
    .heic-thumb { width: 48px; height: 48px; }
    .heic-item .heic-btn { grid-column: 1 / -1; }
    .heic-results-actions { width: 100%; }
    .heic-results-actions .heic-btn { flex: 1; }
}
