/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    color: var(--primary-color);
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Banner En Construcción */
.banner {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e67e22 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255,255,255,.05) 35px,
        rgba(255,255,255,.05) 70px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.construction-badge {
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.construction-badge i {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Secciones */
.vehiculos-section,
.contacto-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Grid de Vehículos */
.vehiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.vehiculo-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.vehiculo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vehiculo-imagen {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vehiculo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehiculo-card:hover .vehiculo-imagen img {
    transform: scale(1.1);
}

.vehiculo-imagen .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vehiculo-content {
    padding: 1.5rem;
}

.vehiculo-titulo {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    min-height: 60px;
}

.vehiculo-detalles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.detalle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.detalle-item i {
    color: var(--accent-color);
    width: 20px;
}

.vehiculo-precio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.precio {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-ver-mas {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-ver-mas:hover {
    background: #2980b9;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.error-message i {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-retry {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-retry:hover {
    background: #2980b9;
}

/* Contacto */
.contacto-section {
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contacto-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contacto-card:hover {
    transform: translateY(-5px);
}

.contacto-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contacto-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contacto-card p {
    color: #666;
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-note {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .banner h2 {
        font-size: 1.8rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .vehiculos-grid {
        grid-template-columns: 1fr;
    }

    .vehiculo-precio {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .banner h2 {
        font-size: 1.5rem;
    }

    .vehiculo-titulo {
        font-size: 1.1rem;
        min-height: auto;
    }

    .precio {
        font-size: 1.5rem;
    }
}
