/* Estilos para el frontend del plugin Grabado Láser */

.grabado-laser-container {
    margin: 25px 0;
    padding: 25px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.grabado-laser-container:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.1);
}

.grabado-laser-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.grabado-laser-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa, #005177);
    border-radius: 2px;
}

.grabado-laser-field-group {
    margin-bottom: 20px;
}

.grabado-laser-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grabado-laser-select,
.grabado-laser-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.grabado-laser-select:focus,
.grabado-laser-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.grabado-laser-select:hover,
.grabado-laser-input:hover {
    border-color: #0073aa;
}

.grabado-laser-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e1e1e1;
    animation: slideDown 0.4s ease-out;
}
.variation-Textodelgrabado {
    font-size: 10px;
    color: #555;
}
.grabado-laser-block {
    font-size: 10px;
    color: #555;
}
.grabado-laser-cart-block {
    display: block;
    font-size: 10px;

    margin-bottom: 2px;
}
.grabado-laser-cart-small {
    font-size: 10px;
    color: #555;
}

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

.grabado-laser-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grabado-laser-left-section {
    flex: 1;
    margin-right: 20px;
}

.grabado-laser-price {
    font-size: 16px;
    margin-bottom: 15px;
}

.price-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-weight: 700;
    color: #033352;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.grabado-laser-photo {
    margin-left: 0;
    flex-shrink: 0;
}

.grabado-laser-lightbox {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grabado-laser-lightbox:hover {
    transform: scale(1.05);
}

.grabado-laser-photo img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
}

.character-counter {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 8px;
    text-align: right;
    font-weight: 500;
}

.character-counter.warning {
    color: #f39c12;
    font-weight: 600;
}

.character-counter.danger {
    color: #e74c3c;
    font-weight: 700;
    animation: pulse 1s ease-in-out infinite alternate;
}

.grabado-laser-conditions {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grabado-laser-conditions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

.grabado-laser-conditions p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #34495e;
}

.grabado-laser-loading {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    background: #ecf0f1;
    border-radius: 6px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}
.grabado-laser-cart-small {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.grabado-laser-error {
    padding: 15px;
    color: #e74c3c;
    background: #fdf2f2;
    border: 2px solid #fecaca;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.grabado-laser-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grabado-laser-container {
        margin: 20px 0;
        padding: 20px;
    }
    
    .grabado-laser-title {
        font-size: 18px;
    }
    
    .grabado-laser-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .grabado-laser-left-section {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .grabado-laser-photo {
        margin-left: 0;
        margin-top: 0;
    }
    
    .price-amount {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .grabado-laser-container {
        padding: 15px;
    }
    
    .grabado-laser-title {
        font-size: 16px;
    }
    
    .grabado-laser-select,
    .grabado-laser-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .grabado-laser-photo img {
        max-width: 100px;
        max-height: 100px;
    }
}

/* Mejoras de accesibilidad */
.grabado-laser-select:focus,
.grabado-laser-input:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Estados de hover mejorados */
.grabado-laser-container:hover .grabado-laser-title::after {
    width: 80px;
    transition: width 0.3s ease;
}

/* Animaciones suaves para mostrar/ocultar elementos */
.grabado-laser-details {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Estilos para impresión */
@media print {
    .grabado-laser-container {
        border: 1px solid #000;
        background: white;
        box-shadow: none;
    }
    
    .grabado-laser-photo img {
        max-width: 80px;
        max-height: 80px;
    }
}
