:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --accent: #f39c12;
    --accent-hover: #e67e22;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navbar */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

nav a:hover, nav a.active {
    background: var(--primary);
    color: white;
}

/* Main Container */
.container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    animation: fadeIn 0.4s ease-out;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 6px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(46, 125, 50, 0.85)), url('img/hero-bg.jpg') center/cover;
    color: white;
    padding: 50px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.hero h2 { color: white; }
.hero h2::after { margin: 6px auto; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Tarjeta de Vehículo Modernizada */
.vehicle-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    align-items: center;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    background: #e2e8f0;
}

.vehicle-info {
    padding: 20px 25px 20px 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-yes { background: #dcfce7; color: #15803d; }
.badge-no { background: #fee2e2; color: #b91c1c; }

/* Formulario */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    background: white;
}

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

@media (max-width: 768px) {
    .grid-2, .vehicle-card { grid-template-columns: 1fr; }
    .vehicle-info { padding: 20px; }
}
