:root {
    --primary-color: #1a4612; /* Vento Green */
    --primary-color-hover: #0a900a;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

main {
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(350px, 50%);
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
}

/* Left Section: Image */
.izquierda {
    background-image: url('../images/moto.jpg'); /* Adjusted path for css file location */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    position: sticky;
    top: 0;
}

/* Right Section: Form */
.derecha {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.derecha img.logo {
    display: block;
    max-height: 80px;
    margin: 10px auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

select, input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid #333;
    background-color: var(--surface-color);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

select:focus, input:focus {
    border-color: var(--primary-color);
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

button[type="submit"]:hover {
    background-color: #0a900a;
}

/* Custom Selector Trigger */
.bike-selector-trigger {
    background-color: var(--surface-color);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    min-height: 60px;
}

.bike-selector-trigger:hover {
    border-color: #555;
}

.bike-selector-trigger.selected {
    border-color: var(--primary-color-hover);
}

.bike-selector-placeholder {
    color: var(--text-muted);
}

.selected-bike-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.selected-bike-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.selected-bike-info {
    flex: 1;
}

.selected-bike-name {
    display: block;
    font-weight: bold;
    font-size: 1rem;
}

.selected-bike-price {
    display: block;
    color: var(--primary-color-hover);
    font-size: 0.9rem;
}

/* Full Screen Overlay */
.overlay-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.overlay-selector.active {
    display: block;
    opacity: 1;
}

.overlay-header {
    position: sticky;
    top: 0;
    background-color: rgba(26, 26, 26, 0.95);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.close-overlay {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.overlay-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.bikes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Bike Card */
.bike-card {
    background-color: #252525;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.bike-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.bike-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #333;
}

.bike-card-body {
    padding: 20px;
}

.bike-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.bike-card-price {
    font-size: 1.2rem;
    color: var(--primary-color-hover);
    font-weight: bold;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .izquierda {
        position: relative;
    }

    .derecha {
        padding: 30px 20px 50px;
    }
}

