/**
 * Estilos para la Landing Page - Diseño Moderno
 * Ruta Las Playas S.A.
 * 
 * @author Ruta Las Playas S.A.
 * @version 2.0
 */

/* Variables CSS - Colores de la marca */
:root {
    --rlp-orange: #fd7e14;
    --rlp-orange-dark: #e8681a;
    --rlp-orange-light: #ffbe85;
    --rlp-blue: #212529;
    --rlp-blue-light: #495057;
    --rlp-charcoal: #333333;
    --rlp-white: #ffffff;
    --rlp-red: #dc3545;
    --rlp-green: #198754;
    --rlp-green-light: #25d366;
    --rlp-primary: #0d6efd;
    --rlp-secondary: #6c757d;
    --rlp-warning: #ffc107;
    --rlp-dark: #212529;
    --rlp-light: #f8f9fa;
    
    /* Gradientes */
    --gradient-rlp-nosotros: linear-gradient(135deg, #212529 0%, #495057 50%, #6c757d 100%);
}

/* Estilos generales */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilidades */
.min-vh-100 {
    min-height: 100vh;
}

.object-fit-cover {
    object-fit: cover;
}

.text-warning-light {
    color: var(--rlp-orange-light) !important;
}

.shadow-rlp {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.1) !important;
}

/* Hero Section Moderno */
#inicio {
    min-height: 100vh;
}

#inicio .carousel-item img {
    height: 100vh;
    object-fit: cover;
    width: 100%;
}

#inicio .carousel-indicators {
    position: absolute !important;
    bottom: 2rem !important;
    right: 2rem !important;
    left: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: auto !important;
    height: auto !important;
}

#inicio .carousel-indicators button {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    border: none !important;
    margin: 0 !important;
    margin-right: 0.5rem !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    text-indent: unset !important;
}

#inicio .carousel-indicators button:last-child {
    margin-right: 0 !important;
}

#inicio .carousel-indicators button.active {
    background-color: var(--rlp-orange);
    transform: scale(1.2);
}

#inicio .carousel-indicators button:hover {
    background-color: rgba(var(--rlp-orange), 0.8);
}

/* Efectos de texto con sombra */
.text-shadow-hero {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
}

.text-shadow-soft {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 15px rgba(0,0,0,0.4);
}

/* Botones mejorados */
.btn-warning {
    background-color: var(--rlp-orange);
    border-color: var(--rlp-orange);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: var(--rlp-orange-dark);
    border-color: var(--rlp-orange-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

.btn-outline-warning {
    border-color: var(--rlp-orange);
    color: var(--rlp-orange);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: var(--rlp-orange);
    border-color: var(--rlp-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

/* Cards mejoradas */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Efectos de gradiente para las tarjetas de recorridos */
.gradient-30mb {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.gradient-30qr {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.gradient-30ne {
    background: linear-gradient(135deg, #6f42c1 0%, #5a35a3 100%);
}

.gradient-30zh {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

/* Efectos de hover para estadísticas */
.stats-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stats-item:hover {
    transform: scale(1.05);
}

.stats-item:hover .stats-number {
    color: var(--rlp-orange) !important;
}

.stats-item:hover .stats-divider {
    background-color: var(--rlp-orange) !important;
}

/* Sección Nosotros con elementos decorativos */
#nosotros {
    background: var(--gradient-rlp-nosotros);
    position: relative;
    overflow: hidden;
}

/* Efectos de backdrop-filter */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos para los valores/características */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    background-color: rgba(255,255,255,0.2) !important;
    transform: translateY(-3px);
}

/* Responsividad mejorada */
@media (max-width: 768px) {
    #inicio {
        min-height: 80vh;
    }
    
    #inicio .carousel-item img {
        height: 80vh;
    }
    
    #inicio h1 {
        font-size: 2.5rem;
    }
    
    #inicio .lead {
        font-size: 1.1rem;
    }
    
    #inicio .carousel-indicators {
        bottom: 1rem;
        right: 1rem;
    }
    
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .fs-3 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    #inicio h1 {
        font-size: 2rem;
    }
    
    #inicio .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .display-1 {
        font-size: 2rem;
    }
}

/* Colores personalizados de Bootstrap */
.text-primary {
    color: var(--rlp-primary) !important;
}

.bg-primary {
    background-color: var(--rlp-primary) !important;
}

.border-primary {
    border-color: var(--rlp-primary) !important;
}

.text-warning {
    color: var(--rlp-orange) !important;
}

.bg-warning {
    background-color: var(--rlp-orange) !important;
}

.border-warning {
    border-color: var(--rlp-orange) !important;
}

/* Mejoras en la navegación */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Efectos de carga suave */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Carousel personalizado */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Botones */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--rlp-orange);
    border-color: var(--rlp-orange);
}

.btn-outline-primary:hover {
    background-color: var(--rlp-orange);
    border-color: var(--rlp-orange);
}

/* Estadísticas */
#estadisticas .display-4 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--rlp-dark) 0%, #343a40 100%);
}

/* Animaciones */
@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) {
    .hero-section {
        min-height: 50vh;
    }
    
    .carousel-item img {
        height: 50vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Utilidades */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--rlp-blue) 0%, var(--rlp-charcoal) 100%);
}

.text-rlp-orange {
    color: var(--rlp-orange);
}
