/* Estilos para el Generador de Tarjetas Digitales */

.digital-card-section {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px 0;
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.card-preview-container {
    max-width: 400px;
    margin: 0 auto;
}

.card-preview-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

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

.card-preview-btn:active {
    transform: translateY(0);
}

.card-preview-btn i {
    font-size: 1.2rem;
}

/* Modal Styles */
.card-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.card-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

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

.card-modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.card-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.card-modal-body {
    padding: 30px;
    text-align: center;
}

.card-image-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.02);
}

.card-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-action-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    min-width: 140px;
    justify-content: center;
}

.card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.card-action-btn.share-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.card-action-btn.share-btn:hover {
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.card-action-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-modal-content {
        width: 95vw;
        max-width: none;
        margin: 10px;
    }
    
    .card-modal-header {
        padding: 15px;
    }
    
    .card-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .card-modal-body {
        padding: 20px;
    }
    
    .card-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .card-action-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .card-preview-btn {
        font-size: 0.9rem;
        padding: 12px 25px;
    }
    
    .digital-card-section {
        margin: 20px 0;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .card-modal-content {
        width: 98vw;
        max-height: 95vh;
    }
    
    .card-image {
        max-height: 300px;
    }
    
    .card-modal-header {
        padding: 12px;
    }
    
    .card-modal-body {
        padding: 15px;
    }
    
    .card-preview-btn span {
        font-size: 0.85rem;
    }
}

/* Animaciones adicionales */
.card-action-btn:active {
    transform: translateY(0);
}

.card-preview-btn:focus,
.card-action-btn:focus,
.card-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Loading state */
.card-image.loading {
    opacity: 0.7;
    filter: blur(2px);
}

.card-image.loaded {
    opacity: 1;
    filter: none;
    transition: all 0.3s ease;
}

