/* ============================================
   M BUSES LANCO - CUSTOM STYLES
   ============================================ */

:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --success-color: #10b981;
    --danger-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-m {
    color: var(--primary-color);
}

.brand-buses {
    color: var(--accent-color);
}

.brand-lanco {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link i {
    margin-right: 5px;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-carousel {
    margin-top: 0;
    position: relative;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 64, 175, 0.7), rgba(30, 64, 175, 0.5));
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn-hero {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    color: var(--white);
}

/* ============================================
   INFO BANNER
   ============================================ */

.info-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.mv-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    height: 100%;
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mv-card h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ============================================
   FLEET SECTION
   ============================================ */

.fleet-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.fleet-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.fleet-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.fleet-info {
    padding: 1.5rem;
}

.fleet-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.video-container {
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    background: #000;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 500px;
    display: block;
}

/* Estilos para YouTube Shorts (videos verticales) */
@media (min-width: 768px) {
    .video-container {
        max-width: 600px; /* Más angosto para videos verticales */
    }
    
    .video-container iframe {
        height: 650px; /* Más alto para formato vertical */
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    height: 100%;
}

.contact-info-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    padding: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

/* ============================================
   DIGITAL CARD
   ============================================ */

.digital-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.card-content {
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.qr-code-container {
    width: 250px;
    height: 250px;
    background: var(--white);
    margin: 2rem auto;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.qr-code-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 10px;
}

.card-actions .btn {
    background: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-actions .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5f;
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-color);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* ============================================
   UTILITIES
   ============================================ */

.bg-light-custom {
    background-color: var(--light-color);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .video-container iframe,
    .video-container video {
        height: 450px; /* Más alto para videos verticales en móviles */
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-border-custom {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
}

/* ============================================
   ALERT CUSTOM
   ============================================ */

.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}
