/**
 * CUSTOM STYLES FOR TRANSPORTES ARRUE
 * Bootstrap 5 Enhanced - Professional Design
 */

/* ========================================
   VARIABLES PERSONALIZADAS
   ======================================== */
:root {
    /* Colores principales - Esquema profesional */
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;

    /* Gradientes modernos */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-headings: 'Montserrat', sans-serif;

    /* Sombras mejoradas */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* Transiciones */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ESTILOS GLOBALES
   ======================================== */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ========================================
   NAVBAR PERSONALIZADO
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.05) rotate(5deg);
}

.brand-name {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark-color);
    display: block;
}

.brand-tagline {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-color);
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: #667eea !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: var(--transition-base);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: var(--transition-base);
}

.carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background-color: white;
}

/* ========================================
   STATS BANNER
   ======================================== */
.stats-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-item {
    position: relative;
    z-index: 2;
}

/* ========================================
   CARDS Y COMPONENTES
   ======================================== */
.card {
    border-radius: 16px;
    transition: var(--transition-base);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

.service-icon,
.feature-icon,
.icon-box {
    transition: var(--transition-base);
}

.card:hover .service-icon,
.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   FLEET CARDS
   ======================================== */
.vehicle-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: white;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vehicle-card .position-relative {
    background: #f8f9fa;
}

.vehicle-card img {
    transition: var(--transition-smooth);
    object-position: center;
}

.vehicle-card:hover img {
    transform: scale(1.05);
}

.vehicle-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem;
}

/* ========================================
   MOMENTS CAROUSEL
   ======================================== */
#momentsCarousel {
    border-radius: 20px;
    overflow: hidden;
}

#momentsCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    bottom: 2rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
}

#momentsCarousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#momentsCarousel .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
}

#momentsCarousel .carousel-control-prev,
#momentsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
}

#momentsCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#momentsCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
}

#momentsCarousel .carousel-indicators button.active {
    width: 30px;
}

/* ========================================
   DESTINATION CARDS
   ======================================== */
.destination-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    transition: var(--transition-base);
}

.destination-card:hover::before {
    background: linear-gradient(to top, rgba(102, 126, 234, 0.8), transparent);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 2;
}

.destination-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: #667eea;
    opacity: 0.1;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #667eea;
    object-fit: cover;
}

.rating-stars i {
    color: #ffc107;
}

/* ========================================
   FORMS
   ======================================== */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* ========================================
   SCROLL TO TOP
   ======================================== */
#scrollTop {
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

#scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

#scrollTop.show {
    display: block !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    height: 2px;
    width: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 70vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-link::after {
        display: none;
    }

    #momentsCarousel img {
        height: 450px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 60vh;
    }

    .display-3 {
        font-size: 2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    #momentsCarousel img {
        height: 350px !important;
    }

    #momentsCarousel .carousel-caption {
        bottom: 1rem;
        padding: 1rem;
    }

    #momentsCarousel .carousel-caption h5 {
        font-size: 1.2rem;
    }

    #momentsCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .destination-card {
        height: 250px;
    }

    #momentsCarousel img {
        height: 280px !important;
    }

    #momentsCarousel .carousel-caption {
        display: none !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .navbar,
    #scrollTop,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus visible para mejor accesibilidad */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}