/* Styles for the laminas selector UI - CATEGORIZADO PROFESIONALMENTE */
.laminas-section {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F8FF 100%);
    border-bottom: 3px solid #FF6600;
}

.laminas-container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #0066CC;
    margin-bottom: 0.25rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.section-title + p {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* CATEGORÍAS DE LÁMINAS */
.laminas-category {
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066CC;
    margin: 0.5rem 0 0.5rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid #FF6600;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.laminas-wrap {
    display: block;
}

.laminas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem 0.8rem;
    width: 100%;
    padding: 0.8rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.1);
    margin: 0 auto;
}

.lamina-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
}

.lamina-card::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0), rgba(255, 102, 0, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.lamina-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.25);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.lamina-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.lamina-card:hover::before {
    opacity: 1;
}

.lamina-card:hover .lamina-thumb {
    transform: scale(1.12) rotateZ(-3deg);
    box-shadow: 0 25px 50px rgba(255, 102, 0, 0.35), 0 0 40px rgba(0, 102, 204, 0.2);
    border-color: #FF6600;
}

.lamina-meta {
    padding: 0.5rem 0.3rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.lamina-meta strong {
    font-size: 0.9rem;
    color: #0066CC;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.lamina-meta span {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

.lamina-card.selected .lamina-thumb {
    transform: scale(1.18);
    border-color: #FF6600;
    box-shadow: 0 30px 60px rgba(255, 102, 0, 0.5), 0 0 50px rgba(255, 102, 0, 0.3);
    animation: pulse 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.lamina-preview {
    display: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 30px 60px rgba(255, 102, 0, 0.5), 0 0 50px rgba(255, 102, 0, 0.3); }
    50% { box-shadow: 0 30px 60px rgba(255, 102, 0, 0.7), 0 0 70px rgba(255, 102, 0, 0.5); }
}

@media (max-width: 1400px) {
    .laminas-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.7rem 0.7rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .laminas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem 0.6rem;
        padding: 0.6rem;
    }
    
    .lamina-thumb {
        width: 80px;
        height: 80px;
    }
    
    .category-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .laminas-section {
        padding: 2.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .category-title {
        font-size: 1.2rem;
        margin: 2rem 0 1.2rem 0;
    }
    
    .laminas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
        padding: 1.5rem;
    }
    
    .lamina-thumb {
        width: 100px;
        height: 100px;
    }
    
    .lamina-meta strong {
        font-size: 0.9rem;
    }
    
    .lamina-meta span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .laminas-section {
        padding: 2rem 0.8rem;
    }
    
    .laminas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .lamina-thumb {
        width: 85px;
        height: 85px;
    }
    
    .category-title {
        font-size: 1.1rem;
        margin: 1.5rem 0 1rem 0;
    }
}

/* focus-visible */
.lamina-card:focus {
    outline: 2px solid #0066CC;
}

/* ========== COLOR PERSONALIZADO ========== */
.custom-color-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #F5F8FF 0%, #FFFFFF 100%);
    margin: 0;
}

.custom-color-container {
    max-width: 800px;
    margin: 0 auto;
}

.custom-color-subtitle {
    text-align: center;
    color: #888;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
}

.custom-color-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.1);
}

.color-selector-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.color-selector-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0066CC;
    font-size: 1.2rem;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.color-picker-custom {
    width: 100px;
    height: 100px;
    border: 3px solid #0066CC;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker-custom:hover {
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.3);
    transform: scale(1.08);
}

.color-code-custom {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FF6600;
    background: #f5f5f5;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #FF6600;
    min-width: 120px;
    text-align: center;
}

.color-circle-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.25);
    border: 4px solid white;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-color-box:hover .color-circle-preview {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(255, 102, 0, 0.35);
}

.btn-whatsapp-custom {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.3rem 2.5rem;
    background: linear-gradient(135deg, #25D366, #20BA58);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-custom:hover {
    background: linear-gradient(135deg, #20BA58, #25D366);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

.btn-whatsapp-custom:active {
    transform: translateY(-1px);
}

.btn-whatsapp-custom i {
    font-size: 1.3rem !important;
    color: white !important;
    fill: white !important;
    transition: color 0.3s ease !important;
    transition: fill 0.3s ease !important;
    display: inline-block !important;
}

#whatsappIcon {
    color: inherit !important;
    fill: inherit !important;
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-color-section {
        padding: 2rem 1rem;
    }

    .custom-color-box {
        padding: 2rem 1.5rem;
    }

    .color-picker-custom {
        width: 85px;
        height: 85px;
    }

    .color-code-custom {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
    }

    .color-circle-preview {
        width: 100px;
        height: 100px;
    }

    .btn-whatsapp-custom {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
    }
}

@media (max-width: 480px) {
    .color-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .color-picker-custom {
        width: 80px;
        height: 80px;
    }

    .color-code-custom {
        font-size: 1rem;
        min-width: 100px;
    }

    .color-circle-preview {
        width: 85px;
        height: 85px;
    }

    .btn-whatsapp-custom {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}


.preview-info {
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF, #E8F1FF);
    border-radius: 12px;
    display: none;
}

.preview-info h3 {
    margin: 0 0 0.8rem 0;
    color: #0066CC;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.preview-info p {
    margin: 0 0 1.2rem 0;
    color: #666;
    line-height: 1.5;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.preview-actions .btn {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0066CC, #FF6600);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.preview-actions .btn:hover {
    background: linear-gradient(135deg, #FF6600, #0066CC);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
}

/* subtle zoom-in for preview when changed */
.preview-surface.animate-in {
    animation: previewPop 0.45s ease forwards;
}

@keyframes previewPop {
    0% { transform: scale(0.98); opacity: 0; }
    60% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

#previewAddBtn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
