#marine-designer-pro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    position: relative;
}

.designer-feedback {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.designer-feedback.success {
    background-color: #28a745;
}

.designer-feedback.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.designer-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://i.postimg.cc/C54J82dm/Gemini-Generated-Image-smfxfpsmfxfpsmfx.png') center/cover no-repeat;
}

.header-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 3;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.designer-header h2 {
    font-size: 2.8em;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
    color: white;
    font-family: 'Orbitron', sans-serif;
    background-color: transparent;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.designer-content {
    display: flex;
    gap: 30px;
}

.designer-controls {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.designer-preview {
    flex: 2;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 15px;
    padding: 20px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

.preview-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#boat-preview-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

#matricula-overlay {
    position: absolute;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    user-select: none;
    pointer-events: none;
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    left: 68.08%;
    top: 49.77%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 12px;
    color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

#nombre-barco-overlay {
    position: absolute;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    user-select: none;
    pointer-events: none;
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: black;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
}

.control-group {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.control-group.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #343a40;
}

.control-group select,
.control-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#matricula-text-input {
    font-family: 'Anton', monospace;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.control-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.info-message {
    color: #0066cc;
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

.matricula-format-info {
    background: #e7f5ff;
    border: 1px dashed #0066cc;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-size: 0.85em;
    line-height: 1.4;
}

.matricula-format-info h4 {
    margin: 0 0 8px 0;
    color: #004085;
    font-size: 1em;
}

.matricula-format-info ul {
    margin: 5px 0 5px 20px;
    padding: 0;
}

.matricula-format-info li {
    margin-bottom: 3px;
}

.example-format {
    background: #fff3cd;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
}

.price-display {
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background: #e9f5ff;
    border-radius: 10px;
    border: 1px solid #007bff;
}

.price-display p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #0056b3;
}

#price-amount {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    display: block;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.add-to-cart-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .designer-content {
        flex-direction: column;
    }
    
    .designer-controls,
    .designer-preview {
        flex: none;
        width: 100%;
        min-height: 300px;
    }
    
    .designer-header h2 {
        font-size: 2em;
        padding: 0;
    }
    
    .header-logo {
        top: 15px;
        right: 15px;
        width: 80px;
        height: 80px;
    }
    
    .add-to-cart-btn {
        padding: 15px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .designer-header {
        min-height: 150px;
        padding: 15px;
    }
    
    .designer-header h2 {
        font-size: 1.6em;
        padding: 0;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
    }
    
    #matricula-overlay {
        font-size: 10px;
    }
    
    #nombre-barco-overlay {
        font-size: 16px;
        padding: 6px 12px;
    }
}