:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-color: #333;
    --bg-white: #ffffff;
    --bg-black: #1a1a1a;
    --footer-bg: #111;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header */
header {
    background: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

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

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section with Slider */
.hero {
    height: 75vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-color: var(--secondary-color); /* Fondo oscuro por defecto */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Cambiado de -1 a 1 para que sea visible sobre el fondo */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

/* Search Bar Container */
.search-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    margin: -60px auto 0;
    position: relative;
    z-index: 100;
    max-width: 1100px;
}

.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.search-group input, .search-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background: #c92f3b;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--secondary-color);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* Fleet Carousel with Arrows */
.fleet-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.fleet-carousel {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    width: 100%;
}

.fleet-item {
    min-width: 320px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-align: center;
    padding-bottom: 25px;
}

.fleet-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.img-caption {
    font-size: 0.7rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

.fleet-item h3 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.btn-rh {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-arrow.prev { left: -25px; }
.nav-arrow.next { right: -25px; }

/* Car Card for Services */
.car-card {
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Footer */
footer {
    background: var(--bg-black);
    color: white;
    padding: 60px 10% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .search-container { margin-top: 20px; padding: 20px; width: 92%; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .nav-arrow { display: none; }
    .fleet-carousel { overflow-x: auto; scrollbar-width: none; }
}
