/**
 * Venezia Visualizer - Estilos principales
 */

/* Variables - Colores exactos sitio oficial Venezia */
:root {
    --venezia-primary: #747A4D;
    /* Verde oliva selectores */
    --venezia-primary-dark: #5A5F3A;
    /* Verde oliva oscuro */
    --venezia-primary-light: #8A9159;
    /* Verde oliva claro */
    --venezia-secondary: #FF8A32;
    /* Naranja acentos */
    --venezia-secondary-dark: #E6761C;
    /* Naranja oscuro */
    --venezia-secondary-light: #FFB366;
    /* Naranja claro */
    --venezia-light: #FFFFFF;
    --venezia-dark: #262626;
    /* Gris oscuro headers/footers */
    --venezia-gray: #6C757D;
    --venezia-border-radius: 12px;
    --venezia-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --venezia-transition: all 0.3s ease;
    --venezia-gradient: linear-gradient(135deg, var(--venezia-primary-light), var(--venezia-primary));
    --venezia-gradient-secondary: linear-gradient(135deg, var(--venezia-secondary-light), var(--venezia-secondary));

    /* Nuevas variables profesionales */
    --venezia-glass: rgba(255, 255, 255, 0.95);
    --venezia-glass-border: rgba(255, 255, 255, 0.2);
    --venezia-shadow-soft: 0 4px 20px rgba(138, 154, 91, 0.15);
    --venezia-shadow-medium: 0 8px 30px rgba(138, 154, 91, 0.2);
    --venezia-shadow-strong: 0 15px 50px rgba(138, 154, 91, 0.25);
    --venezia-text-muted: #6B7280;
    --venezia-success: #10B981;
    --venezia-warning: #F59E0B;
    --venezia-error: #EF4444;
}

/* Estilos generales */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: var(--venezia-dark);
}


@keyframes venezia-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

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

/* Client Data Step Styles */
.venezia-client-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.venezia-client-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}

.venezia-selected-coating-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.venezia-coating-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.venezia-selected-coating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
}

.venezia-selected-coating-display img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.venezia-selected-coating-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.venezia-selected-coating-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.venezia-client-data-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venezia-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.venezia-form-group {
    display: flex;
    flex-direction: column;
}

.venezia-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.venezia-form-group input {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.venezia-form-group input:focus {
    outline: none;
    border-color: var(--venezia-primary);
    box-shadow: 0 0 0 3px rgba(138, 154, 91, 0.1);
}

.venezia-form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.venezia-form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

@media (max-width: 768px) {
    .venezia-client-form-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .venezia-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Botón para abrir el modal */
.venezia-open-button {
    background: var(--venezia-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--venezia-transition);
    box-shadow: 0 4px 15px rgba(138, 154, 91, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.venezia-open-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 154, 91, 0.4);
}

.venezia-open-button:active {
    transform: translateY(-1px);
}

/* Modal */
.venezia-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(138, 154, 91, 0.1), rgba(214, 140, 69, 0.1));
    backdrop-filter: blur(20px);
}

.venezia-modal.venezia-modal-open {
    display: block;
}

.venezia-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--venezia-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--venezia-glass-border);
    width: 95%;
    max-width: 1400px;
    height: 92vh;
    /* Altura fija para permitir scroll interno */
    max-height: 900px;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    /* No queremos scroll en el modal completo */
    box-shadow: var(--venezia-shadow-strong);
    display: flex;
    flex-direction: column;
    animation: venezia-modal-center-open 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 90vh;
    /* Aumentar un poco la altura relativa */
    max-height: 900px;
    /* Aumentar el tope máximo */
}

.venezia-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--venezia-primary-light), transparent);
    opacity: 0.6;
    z-index: 1;
}

@keyframes venezia-modal-open {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes venezia-modal-center-open {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Encabezado del modal */
.venezia-modal-header {
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--venezia-primary-light), var(--venezia-primary));
    color: white;
    position: relative;
    border-radius: 24px 24px 0 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.venezia-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.venezia-modal-header h2 {
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.venezia-modal-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 0.2px;
    font-weight: 400;
}

.venezia-modal-logo {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.venezia-header-logo {
    max-width: 200px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Hacer el logo blanco */
}

.venezia-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    transition: var(--venezia-transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.venezia-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.venezia-modal-body {
    padding: 0;
    overflow: hidden;
    /* Mantener fijo el contenedor base */
    background-color: var(--venezia-light);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Contenido del visualizador */
.venezia-visualizer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    position: relative;
    box-sizing: border-box;
}

/* Sistema de pasos */
.venezia-steps-progress {
    display: flex;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid rgba(138, 154, 91, 0.1);
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--venezia-shadow-soft);
}


.venezia-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 5px;
}

.venezia-step-indicator:hover {
    opacity: 0.8;
}

.venezia-step-indicator::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -20px;
    width: 20px;
    height: 1px;
    background: #dee2e6;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.venezia-step-indicator:last-child::after {
    display: none;
}

.venezia-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--venezia-text-muted);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.venezia-step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--venezia-text-muted);
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.venezia-step-indicator.active {
    opacity: 1;
}

.venezia-step-indicator.active .venezia-step-number {
    background: var(--venezia-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(138, 154, 91, 0.3);
}

.venezia-step-indicator.active .venezia-step-label {
    color: var(--venezia-primary-dark);
    font-weight: 600;
}

.venezia-step-indicator.active::after {
    background: var(--venezia-primary);
}

.venezia-step-indicator.completed .venezia-step-number {
    background: var(--venezia-primary-dark);
    color: white;
    border-color: var(--venezia-primary-dark);
}

.venezia-step-indicator.completed::after {
    background-color: var(--venezia-primary);
}

/* Contenedor de pasos - Sin scroll, todo se ajusta */
.venezia-step-content {
    display: none;
    flex: 1;
    padding: 15px 25px 25px 25px;
    animation: venezia-fade-in-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizada para navegadores webkit (Chrome, Safari, Edge) */
.venezia-step-content::-webkit-scrollbar {
    width: 8px;
}

.venezia-step-content::-webkit-scrollbar-track {
    background: rgba(138, 154, 91, 0.05);
    border-radius: 10px;
}

.venezia-step-content::-webkit-scrollbar-thumb {
    background: rgba(138, 154, 91, 0.3);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.venezia-step-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 154, 91, 0.5);
}

/* Scrollbar para Firefox */
.venezia-step-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 154, 91, 0.3) rgba(138, 154, 91, 0.05);
}

/* Paso 2 específico - Todo se ajusta al espacio disponible */
#venezia-step-2.active {
    display: flex !important;
    flex-direction: column;
}

#venezia-step-2 .venezia-colors-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 10px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.venezia-step-content.active {
    display: flex;
    flex-direction: column;
}

@keyframes venezia-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paso 1: Subir imagen */
#venezia-step-1.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

.venezia-upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    flex: 1;
    align-items: center;
    min-height: 0;
}

.venezia-upload-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.venezia-upload-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
}

.venezia-upload-area {
    border: 2px dashed rgba(138, 154, 91, 0.3);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--venezia-shadow-soft);
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.venezia-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 154, 91, 0.02), rgba(214, 140, 69, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.venezia-upload-area:hover {
    border-color: var(--venezia-primary);
    box-shadow: var(--venezia-shadow-medium);
    transform: translateY(-4px);
}

.venezia-upload-area:hover::before {
    opacity: 1;
}

.venezia-upload-area.dragover {
    border-color: var(--venezia-primary);
    box-shadow: var(--venezia-shadow-strong);
    transform: translateY(-4px);
}

.venezia-upload-area.dragover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(138, 154, 91, 0.08), rgba(214, 140, 69, 0.08));
}

.venezia-upload-area.uploading {
    pointer-events: none;
    opacity: 0.8;
}

.venezia-upload-icon {
    width: 50px;
    height: 50px;
    background: var(--venezia-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: var(--venezia-shadow-medium);
    position: relative;
    transition: all 0.3s ease;
}

.venezia-upload-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--venezia-primary-light), var(--venezia-primary), var(--venezia-secondary));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.venezia-upload-area:hover .venezia-upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.venezia-upload-area:hover .venezia-upload-icon::before {
    opacity: 1;
}

.venezia-upload-icon i {
    font-size: 20px;
    color: white;
    transition: transform 0.3s ease;
}

.venezia-upload-area:hover .venezia-upload-icon i {
    transform: scale(1.1);
}

.venezia-upload-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--venezia-primary-dark);
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.venezia-upload-area:hover .venezia-upload-title {
    color: var(--venezia-primary);
}

.venezia-upload-subtitle {
    font-size: 13px;
    color: var(--venezia-text-muted);
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 400;
    transition: color 0.3s ease;
}

.venezia-upload-area:hover .venezia-upload-subtitle {
    color: var(--venezia-primary-dark);
}

/* Botón de selección de imagen */
#venezia-select-button {
    margin-top: 20px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: var(--venezia-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--venezia-shadow-soft);
    position: relative;
    overflow: hidden;
}

#venezia-select-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#venezia-select-button:hover::before {
    left: 100%;
}

#venezia-select-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--venezia-shadow-medium);
    background: linear-gradient(135deg, var(--venezia-primary-dark), var(--venezia-primary));
}

#venezia-select-button:active {
    transform: translateY(-1px);
    box-shadow: var(--venezia-shadow-soft);
}

/* Mensaje de error para la subida de imágenes */
.venezia-upload-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    padding: 8px 15px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
}

/* Consejos */
.venezia-tips {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: var(--venezia-shadow-soft);
    border: 1px solid rgba(138, 154, 91, 0.1);
    position: relative;
    overflow: hidden;
}

.venezia-tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--venezia-gradient-secondary);
    border-radius: 0 2px 2px 0;
}

.venezia-tips-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--venezia-secondary-dark);
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

.venezia-tips-title i {
    margin-right: 8px;
    color: var(--venezia-secondary);
    font-size: 16px;
    background: var(--venezia-gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.venezia-tips ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.venezia-tips li {
    font-size: 13px;
    color: var(--venezia-text-muted);
    margin-bottom: 6px;
    position: relative;
    padding-left: 22px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.venezia-tips li:hover {
    color: var(--venezia-primary-dark);
}

.venezia-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--venezia-success);
    font-weight: 700;
    font-size: 9px;
    width: 14px;
    height: 14px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vista previa */
.venezia-preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--venezia-text-muted);
}

.venezia-preview-header i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--venezia-text-muted);
}

.venezia-preview-image-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(10px);
    box-shadow: var(--venezia-shadow-soft);
    border: 1px solid rgba(138, 154, 91, 0.1);
    transition: all 0.3s ease;
}

.venezia-preview-image-container:hover {
    box-shadow: var(--venezia-shadow-medium);
}

.venezia-preview-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Mantener proporción sin cortar */
    object-position: center;
    /* Centrar la imagen */
    position: relative;
    z-index: 2;
    border-radius: 12px;
}

.venezia-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.venezia-preview-placeholder i {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--venezia-primary);
    background-color: rgba(138, 154, 91, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venezia-preview-placeholder p {
    font-size: 14px;
    font-weight: 500;
    color: var(--venezia-text-muted);
    width: 100%;
    line-height: 1.4;
    margin: 0 auto;
    padding: 0 20px;
}

.venezia-preview-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--venezia-primary-dark);
    display: flex;
    align-items: center;
}

.venezia-preview-header i {
    margin-right: 10px;
    color: var(--venezia-primary);
    font-size: 22px;
}

/* Loading overlay - Nuevo estilo profesional SaaS */
.venezia-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--venezia-border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 15px;
}

/* Imagen de fondo con overlay */
.venezia-processing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.3) brightness(0.7);
    z-index: 1;
}

/* Overlay de procesamiento */
.venezia-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 20%,
            var(--venezia-primary) 50%,
            rgba(255, 255, 255, 0.8) 80%,
            transparent 100%);
    transform: translateX(-100%);
    animation: venezia-paint-sweep 3s ease-in-out infinite;
    z-index: 2;
}

/* Contenido del loading */
.venezia-loading-content {
    position: relative;
    z-index: 3;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.venezia-loading-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 15px;
}

.venezia-loading-spinner:before,
.venezia-loading-spinner:after {
    content: '';
    display: block;
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: venezia-pulse 2s linear infinite;
}

.venezia-loading-spinner:before {
    width: 100%;
    height: 100%;
    border-top-color: var(--venezia-primary);
    border-left-color: var(--venezia-primary);
    animation-delay: 0s;
}

.venezia-loading-spinner:after {
    width: 80%;
    height: 80%;
    border-bottom-color: var(--venezia-secondary);
    border-right-color: var(--venezia-secondary);
    top: 10%;
    left: 10%;
    animation-delay: -1s;
}

/* Animaciones adicionales para el loading */
@keyframes venezia-fade-slide-up {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.venezia-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--venezia-primary-dark);
    text-align: center;
    margin-top: 10px;
    animation: venezia-fade-slide-up 0.5s ease forwards;
}

/* Animación de pulso para el spinner */
@keyframes venezia-pulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* === ESTILOS PARA BARRA DE PROGRESO DE SUBIDA === */
.venezia-upload-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    width: 90%;
}

.venezia-upload-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--venezia-primary-light), var(--venezia-primary));
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(138, 145, 89, 0.3);
    animation: venezia-upload-pulse 2s ease-in-out infinite;
}

.venezia-upload-icon i {
    font-size: 36px;
    color: white;
    animation: venezia-upload-bounce 1.5s ease-in-out infinite;
}

@keyframes venezia-upload-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(138, 145, 89, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(138, 145, 89, 0.4);
    }
}

@keyframes venezia-upload-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.venezia-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--venezia-primary-dark);
    text-align: center;
    letter-spacing: 0.3px;
}

.venezia-progress-bar-container {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #E5E7EB 0%, #F3F4F6 100%);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.venezia-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--venezia-primary) 0%, var(--venezia-primary-light) 50%, var(--venezia-secondary) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(138, 145, 89, 0.4);
}

.venezia-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: venezia-progress-shine 1.5s ease-in-out infinite;
}

@keyframes venezia-progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.venezia-upload-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--venezia-primary);
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === FIN ESTILOS BARRA DE PROGRESO === */

/* Animación de barrido de pintura profesional */
@keyframes venezia-paint-sweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animación de aparición suave */
@keyframes venezia-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner moderno */
.venezia-modern-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--venezia-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Paso 2: Selección de revestimientos */
.venezia-colors-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
}

.venezia-step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--venezia-dark);
    display: flex;
    align-items: center;
    letter-spacing: -0.3px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(116, 122, 77, 0.15);
    flex-shrink: 0;
}

.venezia-step-title i {
    margin-right: 12px;
    font-size: 22px;
    background: var(--venezia-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.venezia-step-subtitle {
    font-size: 14px;
    color: var(--venezia-text-muted);
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.1px;
}

.venezia-revestimientos-tabs {
    display: flex;
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    flex-shrink: 0;
    gap: 8px;
    flex-shrink: 0;
}

.venezia-tab {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--venezia-transition);
    border-radius: 50px;
    font-weight: 500;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.venezia-tab.active {
    background: var(--venezia-gradient-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(214, 140, 69, 0.2);
}

.venezia-tab:hover:not(.active) {
    background-color: rgba(214, 140, 69, 0.05);
    transform: translateY(-2px);
}

.venezia-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 5px;
    flex: 1;
    align-content: start;
    overflow-y: auto;
    min-height: 0;
    /* Crítico para scroll en flexbox */
    height: 0;
    /* Crítico para scroll en flexbox */
}

.venezia-colors-grid::-webkit-scrollbar {
    width: 10px;
}

.venezia-colors-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.venezia-colors-grid::-webkit-scrollbar-thumb {
    background-color: var(--venezia-primary);
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.venezia-colors-grid::-webkit-scrollbar-thumb:hover {
    background-color: var(--venezia-primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Toast flotante para MICROKIT - TOTALMENTE FUERA DEL LAYOUT */
.venezia-microkit-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    background: linear-gradient(135deg, #FF8A32, #E6761C);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(255, 138, 50, 0.4);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInToast 0.4s ease forwards;
}

@keyframes slideInToast {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.venezia-microkit-toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: white;
    font-size: 18px;
}

.venezia-microkit-toast-content {
    flex: 1;
    color: white;
}

.venezia-microkit-toast-content strong {
    display: block;
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.venezia-microkit-toast-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.4;
}

.venezia-microkit-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 0;
}

.venezia-microkit-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.venezia-color-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--venezia-transition);
    border: 2px solid transparent;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.venezia-color-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--venezia-primary-light);
}

.venezia-color-item.active {
    border-color: var(--venezia-primary);
    box-shadow: 0 10px 25px rgba(138, 154, 91, 0.3);
    transform: translateY(-5px);
}

.venezia-color-item.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background-color: var(--venezia-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.venezia-color-swatch {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--venezia-border-radius) var(--venezia-border-radius) 0 0;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.venezia-color-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.venezia-color-item:hover .venezia-color-image {
    transform: scale(1.05);
}

.venezia-color-info {
    padding: 12px;
    background-color: white;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venezia-color-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--venezia-dark);
    line-height: 1.2;
}

/* Paso 3: Resultado */
.venezia-result-container {
    display: flex;
    width: 100%;
    gap: 30px;
    height: calc(100% - 80px);
    /* Restar espacio para los botones */
    min-height: 400px;
}

.venezia-result-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.venezia-result-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
}

.venezia-result-image-container {
    border-radius: var(--venezia-border-radius);
    overflow: hidden;
    position: relative;
    background-color: white;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 350px;
    background: linear-gradient(135deg, #f9f9f9, #f2f2f2);
}

.venezia-result-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.venezia-result-info {
    background-color: white;
    border-radius: var(--venezia-border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--venezia-primary);
    overflow-y: auto;
    max-height: 200px;
}

.venezia-result-info h4 {
    margin-top: 0;
    color: var(--venezia-primary-dark);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.venezia-result-info h4 i {
    margin-right: 10px;
    font-size: 22px;
}

.venezia-color-details {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(138, 154, 91, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.venezia-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.venezia-color-detail-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--venezia-dark);
}

.venezia-result-description {
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    background-color: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--venezia-primary);
    flex-shrink: 0;
}

/* Botones de acción */
.venezia-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 12px;
    padding: 15px 0;
}

/* Solo en el paso 1 usar margin-top: auto */
#venezia-step-1 .venezia-buttons {
    margin-top: auto;
    flex-shrink: 0;
}

/* Botones de navegación - Parte del flujo normal */
.venezia-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Cuando hay botón anterior, usar space-between */
#venezia-step-2 .venezia-buttons,
#venezia-step-3 .venezia-buttons,
#venezia-step-4 .venezia-buttons {
    justify-content: space-between;
}

/* Botones de resultado - Descarga y Compartir */
.venezia-result-actions {
    margin-top: auto;
    padding: 15px 0;
    border-top: 1px solid rgba(138, 154, 91, 0.1);
    flex-shrink: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    backdrop-filter: blur(10px);
}

/* Botón de descarga principal - Grande y hermoso */
.venezia-download-button-main {
    width: 100%;
    background: var(--venezia-gradient);
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--venezia-shadow-medium);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.venezia-download-button-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.venezia-download-button-main:hover::before {
    left: 100%;
}

.venezia-download-button-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(138, 154, 91, 0.4);
}

.venezia-download-button-main:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(138, 154, 91, 0.3);
}

.venezia-download-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.venezia-download-icon i {
    font-size: 20px;
    color: white;
}

.venezia-download-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.venezia-download-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.venezia-download-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Sección de compartir */
.venezia-share-section {
    margin-top: 8px;
}

.venezia-share-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--venezia-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.venezia-share-title i {
    font-size: 14px;
    color: var(--venezia-primary);
}

.venezia-share-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.venezia-share-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(138, 154, 91, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.venezia-share-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.venezia-share-link:hover::before {
    left: 100%;
}

.venezia-share-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--venezia-shadow-medium);
}

.venezia-share-link i {
    font-size: 16px;
    flex-shrink: 0;
}

.venezia-share-link span {
    font-weight: 600;
}

/* Colores específicos para cada plataforma */
.venezia-share-whatsapp {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.2);
}

.venezia-share-whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
    border-color: rgba(37, 211, 102, 0.3);
}

.venezia-share-facebook {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.2);
}

.venezia-share-facebook:hover {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0.05));
    border-color: rgba(24, 119, 242, 0.3);
}

.venezia-share-instagram {
    color: #E4405F;
    border-color: rgba(228, 64, 95, 0.2);
}

.venezia-share-instagram:hover {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.1), rgba(228, 64, 95, 0.05));
    border-color: rgba(228, 64, 95, 0.3);
}

.venezia-share-email {
    color: #6B7280;
    border-color: rgba(107, 114, 128, 0.2);
}

.venezia-share-email:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(107, 114, 128, 0.05));
    border-color: rgba(107, 114, 128, 0.3);
}

.venezia-button {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
    border: none;
    box-shadow: var(--venezia-shadow-soft);
    position: relative;
    overflow: hidden;
}

.venezia-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.venezia-button:hover::before {
    left: 100%;
}

.venezia-button i {
    margin-right: 8px;
    font-size: 16px;
}

.venezia-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--venezia-shadow-medium);
}

.venezia-button:active {
    transform: translateY(-1px);
    box-shadow: var(--venezia-shadow-soft);
}

.venezia-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.venezia-button-primary {
    background: linear-gradient(135deg, var(--venezia-primary), var(--venezia-primary-dark));
    color: white;
}

.venezia-button-primary:hover {
    background: linear-gradient(135deg, var(--venezia-primary-dark), var(--venezia-primary-dark));
}

.venezia-button-secondary {
    background: linear-gradient(135deg, var(--venezia-secondary), var(--venezia-secondary-dark));
    color: white;
}

.venezia-button-secondary:hover {
    background: linear-gradient(135deg, var(--venezia-secondary-dark), var(--venezia-secondary-dark));
}

.venezia-button-outline {
    background: white;
    color: var(--venezia-primary-dark);
    border: 2px solid var(--venezia-primary-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.venezia-button-outline:hover {
    background: rgba(138, 154, 91, 0.05);
    border-color: var(--venezia-primary);
}

/* Responsive */
@media (max-width: 992px) {

    /* PASO 4 - Resultado móvil (vertical) */
    .venezia-result-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .venezia-result-image-container {
        height: 200px;
    }

    .venezia-result-left,
    .venezia-result-right {
        width: 100%;
    }

    /* Botones móvil - Más grandes y accesibles */
    .venezia-buttons {
        padding: 12px 15px;
        gap: 10px;
        background: rgba(255, 255, 255, 0.98);
        border-top: 2px solid rgba(116, 122, 77, 0.2);
    }

    .venezia-button {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 8px;
    }

    /* Botones de resultado móvil */
    .venezia-result-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .venezia-result-actions .venezia-button {
        width: 100%;
        justify-content: center;
    }

    /* Toast móvil */
    .venezia-microkit-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 768px) {

    /* Modal móvil - Pantalla completa */
    .venezia-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        position: fixed;
    }

    /* Header móvil más compacto */
    .venezia-modal-header {
        padding: 10px 15px;
        min-height: 60px;
    }

    .venezia-modal-header p {
        font-size: 12px;
        margin: 5px 0 0 0;
    }

    .venezia-header-logo {
        max-width: 150px;
        max-height: 35px;
    }

    .venezia-main-logo {
        max-width: 250px;
        max-height: 60px;
    }

    .venezia-steps-progress {
        padding: 12px;
    }

    .venezia-step-indicator {
        margin: 0 10px;
    }

    .venezia-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 8px;
    }

    .venezia-step-label {
        font-size: 11px;
    }

    /* Contenido móvil */
    .venezia-step-content {
        padding: 10px 15px;
        overflow-y: auto;
    }

    .venezia-step-title {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    /* PASO 1 - Upload móvil (vertical) */
    .venezia-upload-container {
        grid-template-columns: 1fr;
        gap: 15px;
        height: auto;
    }

    .venezia-upload-right {
        max-height: 200px;
        margin-top: 15px;
    }

    .venezia-preview-image-container {
        height: 180px;
    }

    /* PASO 2 - Colores móvil */
    .venezia-revestimientos-tabs {
        margin-bottom: 8px;
        gap: 4px;
    }

    .venezia-tab {
        padding: 6px 10px;
        font-size: 11px;
        min-width: auto;
    }

    .venezia-colors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .venezia-color-item {
        height: 120px;
        border-radius: 8px;
    }

    /* PASO 4 - Resultado móvil optimizado */
    #venezia-step-4.active {
        padding: 10px 15px;
    }

    .venezia-result-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .venezia-result-left {
        order: 2;
        width: 100%;
    }

    .venezia-result-right {
        order: 1;
        width: 100%;
        margin-top: 0;
    }

    .venezia-result-image-container {
        height: 250px;
        margin-bottom: 15px;
    }

    .venezia-result-info {
        padding: 15px;
        margin-bottom: 15px;
    }

    .venezia-result-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .venezia-result-description {
        font-size: 12px;
        padding: 10px;
        margin-bottom: 15px;
    }

    .venezia-result-actions {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin-top: 0;
    }

    .venezia-result-actions .venezia-button {
        width: 100%;
        min-height: 48px;
        font-size: 14px;
        justify-content: center;
        padding: 14px 20px;
    }

    #venezia-step-2.active {
        max-height: calc(100vh - 150px);
    }

    .venezia-step-content {
        padding: 15px;
    }

    .venezia-steps-progress {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .venezia-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    .venezia-upload-title {
        font-size: 18px;
    }

    .venezia-upload-subtitle {
        font-size: 14px;
    }

    .venezia-upload-area {
        padding: 20px;
    }

    .venezia-upload-icon {
        width: 70px;
        height: 70px;
    }

    .venezia-upload-icon i {
        font-size: 30px;
    }

    .venezia-preview-image-container,
    .venezia-result-image-container {
        height: 250px;
    }
}

/* Notificaciones */
.venezia-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
}

.venezia-notification.venezia-notification-success {
    background-color: var(--venezia-primary);
}

.venezia-notification.venezia-notification-error {
    background-color: #e74c3c;
}

.venezia-notification.venezia-notification-info {
    background-color: #3498db;
}

.venezia-notification.venezia-notification-warning {
    background-color: #f39c12;
}

/* Iconos personalizados */
.venezia-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

.venezia-icon-upload:before {
    content: '\f093';
    font-family: 'FontAwesome', sans-serif;
}

/* Estilos responsivos para botones de resultado */
@media (max-width: 480px) {
    .venezia-download-button-main {
        padding: 16px 20px;
        gap: 12px;
    }

    .venezia-download-icon {
        width: 40px;
        height: 40px;
    }

    .venezia-download-icon i {
        font-size: 20px;
    }

    .venezia-download-title {
        font-size: 16px;
    }

    .venezia-download-subtitle {
        font-size: 13px;
    }

    .venezia-share-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .venezia-share-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .venezia-share-link i {
        font-size: 16px;
    }

    .venezia-share-title {
        font-size: 13px;
    }
}

/* Placeholder para el resultado */
.venezia-result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.venezia-result-placeholder i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #aaa;
    background-color: rgba(214, 140, 69, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venezia-result-placeholder p {
    font-size: 16px;
    font-weight: 500;
    color: #777;
    width: 100%;
    line-height: 1.5;
    margin: 0 auto;
    padding: 0 20px;
}

.venezia-loading-progress {
    width: 200px;
    height: 4px;
    background-color: rgba(138, 154, 91, 0.2);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.venezia-loading-progress:after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background-color: var(--venezia-primary);
    animation: venezia-progress 1.5s ease infinite;
}

@keyframes venezia-progress {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Animación de aplicación de revestimiento mejorada */
.venezia-processing-animation {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venezia-processing-house {
    width: 140px;
    height: 120px;
    background-color: #f5f5f5;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Techo de la casa */
.venezia-processing-house:before {
    content: '';
    position: absolute;
    top: -30px;
    left: 35px;
    width: 70px;
    height: 70px;
    background-color: #e0e0e0;
    transform: rotate(45deg);
    z-index: 1;
}

/* Puerta de la casa */
.venezia-processing-house:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 45px;
    background-color: #d0d0d0;
    border-radius: 3px 3px 0 0;
    z-index: 3;
}

/* Ventanas de la casa */
.venezia-processing-window-1,
.venezia-processing-window-2 {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #d0d0d0;
    border-radius: 2px;
    z-index: 3;
}

.venezia-processing-window-1 {
    top: 40px;
    left: 30px;
}

.venezia-processing-window-2 {
    top: 40px;
    right: 30px;
}

.venezia-processing-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--venezia-primary);
    animation: venezia-apply-texture 3s ease-in-out infinite;
    z-index: 4;
    opacity: 0.85;
}

.venezia-processing-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
}

.venezia-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--venezia-primary-light);
    opacity: 0;
    filter: blur(1px);
}

.venezia-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: venezia-particle 2s ease infinite;
    animation-delay: 0.2s;
}

.venezia-particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation: venezia-particle 2s ease infinite;
    animation-delay: 0.6s;
}

.venezia-particle:nth-child(3) {
    top: 40%;
    left: 40%;
    animation: venezia-particle 2s ease infinite;
    animation-delay: 0.4s;
}

.venezia-particle:nth-child(4) {
    top: 70%;
    left: 70%;
    animation: venezia-particle 2s ease infinite;
    animation-delay: 0.8s;
}

.venezia-particle:nth-child(5) {
    top: 30%;
    left: 80%;
    animation: venezia-particle 2s ease infinite;
    animation-delay: 0.5s;
}

/* Herramienta de pintura */
.venezia-processing-tool {
    position: absolute;
    top: 50%;
    left: -30px;
    width: 40px;
    height: 15px;
    background-color: #666;
    border-radius: 2px;
    transform: translateY(-50%);
    animation: venezia-tool-move 3s ease-in-out infinite;
    z-index: 6;
}

.venezia-processing-tool:before {
    content: '';
    position: absolute;
    top: -10px;
    right: 5px;
    width: 10px;
    height: 35px;
    background-color: #888;
    border-radius: 5px;
}

@keyframes venezia-tool-move {
    0% {
        left: -30px;
    }

    50% {
        left: 140px;
    }

    100% {
        left: -30px;
    }
}

@keyframes venezia-apply-texture {
    0% {
        left: -100%;
        opacity: 0.7;
    }

    50% {
        left: 0;
        opacity: 0.85;
    }

    100% {
        left: 100%;
        opacity: 0.7;
    }
}

@keyframes venezia-particle {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5) translateY(-20px);
        opacity: 0;
    }
}

/* Mejora del loading overlay */
.venezia-result-container .venezia-loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Texto de carga con animación */
.venezia-loading-text-animated {
    font-size: 18px;
    font-weight: 600;
    color: var(--venezia-primary-dark);
    text-align: center;
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

.venezia-loading-dots {
    display: inline-flex;
    margin-left: 5px;
}

.venezia-loading-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--venezia-primary-dark);
    margin: 0 2px;
    display: inline-block;
    opacity: 0;
    animation: venezia-dots 1.4s linear infinite;
}

.venezia-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.venezia-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes venezia-dots {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}