:root {
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    
    --primary: #00e676;
    --primary-hover: #00c853;
    --primary-glow: rgba(0, 230, 118, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #8b949e;
    
    --border-color: #30363d;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: rgba(0, 230, 118, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-medium);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 92px;
    width: auto;
    border-radius: 4px;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    padding-top: 170px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,17,23,0.7) 0%, rgba(13,17,23,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff, #8b949e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

/* Glassmorphism Booking Widget */
.glass-panel {
    background: rgba(22, 27, 34, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

#booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .material-icons-round {
    position: absolute;
    left: 12px;
    color: var(--primary);
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-with-icon input:focus, .date-time-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

.input-with-icon select {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 2.5rem;
    background-color: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    cursor: pointer;
}

.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

.input-with-icon select option {
    background: var(--bg-card);
    color: var(--text-main);
}

.date-time-inputs {
    display: flex;
    gap: 0.5rem;
}

.date-time-inputs input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    color-scheme: dark;
}

/* El input de fecha nativo se deja funcional (calendario, validación) pero
   sin texto visible, porque su formato depende del idioma del sistema
   operativo. Encima se muestra siempre en DD/MM/AAAA con este span. */
.date-field {
    position: relative;
    flex: 1;
}

.date-field input[type="date"] {
    width: 100%;
    color: transparent;
}

.date-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.date-field input[type="date"]::-webkit-datetime-edit-text,
.date-field input[type="date"]::-webkit-datetime-edit-month-field,
.date-field input[type="date"]::-webkit-datetime-edit-day-field,
.date-field input[type="date"]::-webkit-datetime-edit-year-field {
    color: transparent;
}

.date-display-text {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.time-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.time-select select {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 0.5rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    color-scheme: dark;
    cursor: pointer;
    transition: var(--transition-fast);
}

.time-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

.time-select .time-sep {
    color: var(--text-muted);
    font-weight: 700;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    user-select: none;
    margin-top: 0.5rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-darker);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

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

.benefit-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-medium);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.icon-circle .material-icons-round {
    font-size: 30px;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Fleet Section */
.fleet {
    padding: 6rem 0;
    background-color: var(--bg-darker);
}

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

.car-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-medium);
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.car-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #ffffff; /* Contrast for cars */
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-info {
    padding: 1.5rem;
}

.car-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.car-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.car-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature .material-icons-round {
    font-size: 1.1rem;
    color: var(--text-main);
}

.car-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

/* ---------- Modals ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 9, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.3s ease;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-info-box {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

#confirm-booking-form .form-group {
    margin-bottom: 1rem;
}

#confirm-booking-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

#confirm-booking-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

.status-message {
    display: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.status-message.success {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.status-message.error {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid #ff5252;
    color: #ff5252;
}

/* ---------- Fleet: filtered results & no-availability state ---------- */
.fleet-results-note {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.no-availability-panel {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 560px;
    margin: 0 auto;
}

.no-availability-panel .material-icons-round {
    font-size: 3rem;
    color: #ff5252;
    margin-bottom: 1rem;
}

.no-availability-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-availability-panel p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.no-availability-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- WhatsApp ---------- */
.btn-whatsapp {
    background-color: #25D366;
    color: #06210f;
}

.btn-whatsapp:hover {
    background-color: #1ebe5b;
    transform: translateY(-2px);
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.whatsapp-icon-float {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Modal divider between the form and the WhatsApp alternative */
.modal-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.modal-divider span {
    padding: 0 1rem;
}

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

.spin {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 65px;
    }

    .hero {
        padding-top: 145px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .date-time-inputs {
        flex-direction: column;
    }

    .logo-img {
        height: 45px;
    }

    .hero {
        padding-top: 125px;
    }
}
