/* Variables CSS */
:root {
    --primary-color: #0071A1;
	--bs-primary-rgb: 0, 113, 161;
	--bs-danger-rgb: 185, 34, 41;
    --secondary-color: #1F85B5;
    --accent-color: #2A72A5;
    --dark-color: #17315A;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
	--bs-info-bg-subtle: #2A72A5;
	--bs-info-text-emphasis: #fff;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
    background: #fff;
}
.imglogo{
	max-height:80px;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: url('https://portales.vanguardia.com/ciudadkids/assets/public/img/fondo-ciudadkids.jpg');
	background-position:center;
	background-size:cover;
	background-repeat:no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
	padding-bottom: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
    color: var(--white);
}

/* Station Cards */
.station-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.station-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /*background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));*/
	background:white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color:black;
    font-size: 2rem;
}
.color1{
	background:rgb(185,34,41);
}
.color2{
	background:rgb(241,220,39);
}
.color3{
	background:rgb(213,162,49);
}
.color4{
	background:rgb(0,64,103);
}
.color5{
	background:rgb(85,51,125);
}
.color6{
	background:rgb(107,159,69);
}
.color7{
	background:rgb(213,162,49);
}

.station-card h5 {
    color:white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.station-card p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Schedule Table */
.schedule-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.schedule-table th {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.schedule-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.schedule-table tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.text-subtitulos{
	color:var(--dark-color);
}

/* Price Cards */
.price-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

/* Booking Form */
.booking-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(23, 49, 90, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Payment Methods */
.payment-option {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.payment-option .form-check-input:checked ~ .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.payment-form {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Order Summary */
.total-summary, .order-summary {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
	color:#fff;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.summary-item:not(:last-child){
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-item:nth-child(5n) {
    border-bottom:0;
}

.summary-item.total {
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.2);
}

/* Confirmation Modal */
.confirmation-details {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

.confirmation-details .row {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.confirmation-details .row:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .station-card {
        margin-bottom: 1rem;
    }
    
    .booking-form {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .station-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .booking-form {
        padding: 1rem 0.5rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}


/* Schedule Cards for Mobile */
.schedule-cards {
    display: none;
}

@media (max-width: 768px) {
    .schedule-table-container {
        display: none;
    }
    
    .schedule-cards {
        display: block;
    }
    
    .schedule-card {
        background: var(--white);
        border-radius: var(--border-radius);
        padding: 1.5rem;
        margin-bottom: 1rem;
        box-shadow: var(--box-shadow);
        border-left: 4px solid var(--primary-color);
    }
    
    .schedule-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .schedule-card-title {
        font-weight: 600;
        color: var(--dark-color);
        margin: 0;
    }
    
    .schedule-card-time {
        font-size: 0.9rem;
        color: #6c757d;
    }
    
    .schedule-card-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .schedule-detail {
        text-align: center;
    }
    
    .schedule-detail-label {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        font-weight: 600;
    }
    
    .schedule-detail-value {
        font-weight: 600;
        color: var(--dark-color);
    }
    
    .schedule-price {
        color: var(--primary-color);
        font-size: 1.1rem;
    }
}



/* Carousel Styles */
#stationCarousel .carousel-control-prev,
#stationCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

#stationCarousel .carousel-control-prev-icon,
#stationCarousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
}

#stationCarousel .carousel-item {
    padding: 20px 0;
	gap:10px;
}

#stationCarousel .carousel-item .col-md-3 {
	flex: 1 0 calc(25% - 10px);
	max-width: 100%;
}

@media (max-width: 767px) {
    .carousel-inner .carousel-item > div {
        display: none;
    }
    .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

@media (max-width: 992px) {
	.carousel-item > div:nth-child(3), .carousel-item > div:nth-child(4){
		display:none;
	}
}

@media (max-width: 768px) {
	#stationCarousel .carousel-control-prev,
    #stationCarousel .carousel-control-next {
        width: 10%;
    }
}

@media (min-width: 768px) {
	.carousel-inner .carousel-item-end.active,
	.carousel-inner .carousel-item-next {
		transform: translateX(50%);
	}
	
	.carousel-inner .carousel-item-start.active, 
	.carousel-inner .carousel-item-prev {
		transform: translateX(-50%);
	}
	.carousel-inner .carousel-item-end,
	.carousel-inner .carousel-item-start { 
		transform: translateX(0%);
	}
}
@media (min-width: 993px) {
	.carousel-inner .carousel-item-end.active,
	.carousel-inner .carousel-item-next {
		transform: translateX(25%);
	}
	
	.carousel-inner .carousel-item-start.active, 
	.carousel-inner .carousel-item-prev {
		transform: translateX(-25%);
	}
	.carousel-inner .carousel-item-end,
	.carousel-inner .carousel-item-start { 
		transform: translateX(0);
	}
}