/* 
 * Chile Travel - Custom Styles
 * Complete implementation with Bootstrap compatibility
 */

/* ============================
   FONTS & TYPOGRAPHY
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
    /* Colors */
    --header-bg: #222238;
    --subtitle-red: #d62a34;
    --white: #ffffff;
    --black: #000000;
    --mega-menu-border-top: #cbd6e3;
    --mega-menu-border-bottom: #dddedf;
    --zona-subtitle-color: #888888;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-manrope: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --header-height: 150px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Typography */
* {
    font-family: var(--font-family);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* ============================
   HEADER STYLES
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    transition: var(--transition-smooth);
}

/* Header on landing page - starts transparent */
.home .site-header {
	background: linear-gradient(0deg, rgba(34, 34, 56, 0) -4.29%, #222238 98.21%);

}

.nav-link{
font-family: Manrope;
font-weight: 600 !Important;
font-style: SemiBold !Important;
font-size: 18px !Important;
leading-trim: NONE !Important;
line-height: 30px;
letter-spacing: 0% !Important;
color: var(--white-silver, rgba(250, 252, 255, 1)) !Important;


}

.datos-utiles-detail .nav-link
{
 color: #002358 !Important;
}

.datos-utiles-detail .nav-underline{
 --bs-nav-underline-gap: 0px;
}

.datos-utiles-detail .nav-underline .nav-link.active{
 border-bottom-color: Salmon;
 color: Salmon !Important;
}



/* Header when scrolled or on other pages */
.site-header.scrolled,
.site-header:not(.home-header) {
    background-color: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header text colors */
.site-header.scrolled .navbar,
.site-header:not(.home-header) .navbar {
    --bs-navbar-color: var(--white);
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.8);
    --bs-navbar-active-color: var(--white);
}

.site-header.scrolled .nav-link,
.site-header:not(.home-header) .nav-link {
    color: var(--white) !important;
}

.site-header.scrolled .navbar-brand,
.site-header:not(.home-header) .navbar-brand {
    color: var(--white) !important;
}

/* Logo styling */
.navbar-brand .logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

/* ============================
   MEGA MENU STYLES
   ============================ */
.mega-navbar {
    border-bottom: none;
}

.mega-dropdown {
    position: static;
}

.mega-dropdown .dropdown-menu {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    transform: none !important;
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background-color: var(--header-bg);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border-top: 1.4px solid var(--mega-menu-border-top);
}

.mega-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

/* Mega menu content container */
.mega-dropdown .container-fluid {
}

/* ============================
   DESTINOS MEGA MENU SPECIFIC
   ============================ */

/* Main content area */
.mega-menu-main-content {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--mega-menu-border-bottom);
    margin-bottom: 2rem;
}

/* Section Titles */
.destinos-mega .mega-section-title {
    font-family: var(--font-manrope);
    font-weight: 800;
    font-size: 30px;
    line-height: 42px;
    letter-spacing: 0%;
    color: var(--white);
    margin-bottom: 2rem;
}

/* Map Container */
.mega-map-container {
    padding: 1rem;
}

.zona-map-placeholder {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

#zona-map-img {
    transition: opacity 0.3s ease;
}

.mega-map-container .small {
    color: rgba(255, 255, 255, 0.7);
}

/* Zonas List Styling */
.zonas-list {
    padding: 0 1rem;
}

.zona-item {
    transition: var(--transition-fast);
}

.zona-link {
    border-radius: 8px;
    transition: var(--transition-fast);
    border: none;
    background: transparent;
}

.zona-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px);
}

/* Zona Title */
.zona-title {
    font-family: var(--font-manrope);
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0%;
    color: var(--white);
    margin-bottom: 0.25rem;
}

/* Zona Subtitle (Paisajes) */
.zona-subtitle {
    font-family: var(--font-manrope);
    font-weight: 400;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0%;
    color: var(--zona-subtitle-color);
}

/* Paisajes Grid Styling */
.paisajes-grid {
}

.paisaje-item {
    border-radius: 8px;
    transition: var(--transition-fast);
    margin-bottom: 0.5rem !important;
}

.paisaje-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px);
}

/* Paisaje Icon */
.paisaje-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icons white */
}

.paisaje-icon .bi {
    color: var(--white) !important;
}

/* Paisaje Name */
.paisaje-name {
    font-family: var(--font-manrope);
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0%;
    color: var(--white) !important;
}

/* Footer Links */
.mega-menu-footer-link {
    font-family: var(--font-manrope);
    font-weight: 400;
    font-size: 13px;
    line-height: 30px;
    letter-spacing: 20%;
    text-transform: uppercase;
    text-decoration: underline;
    color: var(--white);
    transition: var(--transition-fast);
}

.mega-menu-footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Footer Section */
.destinos-mega .mega-menu-footer {
    padding-top: 1rem;
    text-align: center;
}

.destinos-mega .mega-menu-footer .row {
    justify-content: center;
}

.destinos-mega .mega-menu-footer .col-auto {
    margin: 0 1rem;
}

/* ============================
   HERO SECTION STYLES
   ============================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Video Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: -1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hero Typography */
.hero-title-part-1 {
    color: var(--white);
    font-weight: 500;
    font-style: italic;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: -10px;
}

.hero-title-part-2 {
    color: var(--white);
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    font-size: 4rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--subtitle-red);
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    font-size: 2rem;
}

.hero-description {
    color: var(--white);
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Hero Image */
.hero-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.hero-featured-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1199px) {
    .mega-dropdown .container-fluid {
        padding: 1rem;
    }
    
    .destinos-mega .mega-section-title {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 991px) {
    /* Mobile mega menu */
    .mega-dropdown .dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none;
        background-color: var(--header-bg);
        color: var(--white);
        margin-top: 0.5rem;
        border-radius: 8px;
        border-top: none;
    }
    
    .mega-dropdown .dropdown-menu .container-fluid {
        padding: 1rem;
    }
    
    /* Header adjustments */
    .site-header {
        background-color: var(--header-bg);
    }
    
    .home .site-header {
        background-color: var(--header-bg);
    }
    
    .destinos-mega .mega-section-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 1rem;
    }
    
    .zona-map-placeholder {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Hero typography responsive */
    .hero-title-part-1 {
        font-size: 2rem;
    }
    
    .hero-title-part-2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 100px 0 60px;
    }
    
    .destinos-mega .mega-section-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .zona-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .paisaje-name {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 576px) {
    .hero-title-part-1 {
        font-size: 1.5rem;
    }
    
    .hero-title-part-2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 80px 0 40px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-up-delay-1 { animation-delay: 0.2s; }
.fade-in-up-delay-2 { animation-delay: 0.4s; }
.fade-in-up-delay-3 { animation-delay: 0.6s; }

/* ============================
   UTILITY CLASSES
   ============================ */
.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* ============================
   PERFORMANCE OPTIMIZATIONS
   ============================ */
.hero-video,
.hero-featured-image {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


.title-header-card{
	font-family: Manrope;
	font-weight: 700;
	font-style: Bold;
	font-size: 18px;
	leading-trim: NONE;
	line-height: 30px;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: white;

}

.title-body-default{
font-family: Manrope;
font-size: 32px;
leading-trim: NONE;
line-height: 120%;
letter-spacing: -0.5%;
color: var(--Deep-blue, rgba(0, 25, 62, 1));

}

.text-salmon{
	color: var(--Salmon, rgba(254, 101, 101, 1));

}

.text-softblue{
	color: var(--Soft-blue, rgba(69, 106, 235, 1));

}

.text-deepblue{
	color: var(--Blue, rgba(0, 35, 88, 1));

}

.title-body-default span{
}

/* Blog Carousel Container */
.blog-carousel-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Scrollable Carousel */
.blog-carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
}

.blog-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.blog-carousel.grabbing {
    cursor: grabbing;
}

/* Cards Wrapper */
.blog-cards-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 10px;
    width: fit-content;
}

/* Individual Card Item */
.blog-card-item {
    flex: 0 0 auto;
    width: 730px; /* Wide rectangle as requested */
    height: 160px;
    box-shadow: -4px -4px 12px 0px rgba(229, 233, 238, 0.5);
}

.blog-card-item .card {
    width: 100%;
    height: 100%;
}

/* Blog card styling */
.blog-card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.blog-small-title {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.1rem;
    line-height: 1.3;
    color: #333;
}

/* Image hover effect */
.blog-card-hover .img-fluid {
    transition: transform 0.3s ease;
}

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

/* Navigation Controls - Fixed Layout */
.blog-carousel-controls {
    padding: 0 10px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* Navigation Buttons Container */
.carousel-nav-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Rounded Navigation Buttons */
.blog-carousel-controls .carousel-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important; /* Force circular shape */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid var(--Soft-blue, rgba(69, 106, 235, 1)) !important;
    background-color: transparent !important;
    color: var(--Soft-blue, rgba(69, 106, 235, 1)) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    font-size: 16px;
}

.blog-carousel-controls .carousel-btn:hover:not(:disabled) {
    background-color: var(--Soft-blue, rgba(69, 106, 235, 1)) !important;
    color: white !important;
    transform: scale(1.05);
    border-color: var(--Soft-blue, rgba(69, 106, 235, 1)) !important;
}

.blog-carousel-controls .carousel-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background-color: transparent !important;
    border-color: var(--silver, rgba(203, 214, 227, 1)) !important;
    color: var(--silver, rgba(203, 214, 227, 1)) !important;
}

.blog-carousel-controls .carousel-btn:disabled:hover {
    transform: none !important;
}

/* Blog Indicators Container - Custom naming to avoid Bootstrap conflicts */
.blog-indicators {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-grow: 1 !important;
    margin-left: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Individual Blog Indicators */
.blog-indicator {
    width: 80px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background-color: var(--silver, rgba(203, 214, 227, 1)) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0;
}

.blog-indicator.active {
    background-color: var(--Soft-blue, rgba(69, 106, 235, 1)) !important;
    transform: scaleY(1.2);
}

.blog-indicator:hover {
    opacity: 0.8 !important;
    background-color: var(--Soft-blue, rgba(69, 106, 235, 1)) !important;
}

/* Remove any Bootstrap carousel interference */
.blog-carousel-container .carousel-indicators,
.blog-carousel-container [data-bs-target] {
    position: static !important;
    margin: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-card-item {
        width: 500px;
        height: 160px;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-small-title {
        font-size: 0.65rem;
    }
    
    .blog-carousel-controls {
        flex-direction: column;
        gap: 15px;
        align-items: center !important;
    }
    
    .blog-indicators {
        margin-left: 0 !important;
        justify-content: center !important;
    }
    
    .carousel-nav-buttons {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog-card-item {
        width: 730px;
        height: 160px;
    }
    
    .blog-cards-wrapper {
        gap: 15px;
    }
    
    .blog-indicator {
        width: 24px !important;
        height: 3px !important;
    }
    
    .blog-carousel-controls .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px;
    }
}


.background-blue{
	background: var(--Blue, rgba(0, 35, 88, 1));

}

.body-url-link{
font-family: Manrope;
font-size: 18px;
line-height: 30px;
letter-spacing: 0%;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-offset: 0%;
text-decoration-thickness: 0%;

}


.datos-utiles-detail .nav-link{
overflow: hidden;
color: var(--Dark--blue, var(--dark-blue, #222238)) !Important;
text-overflow: ellipsis;
white-space: nowrap;
font-family: Manrope;
font-size: 16px !Important;
font-style: normal;
font-weight: 500 !Important;
line-height: 28px; /* 175% */
letter-spacing: 1.2px;
text-transform: uppercase;
}

.datos-utiles-detail .section-nav-link.active{
color: var(--Soft-blue, #456AEB) !Important;
font-weight: 650 !Important;
text-transform: uppercase;
}

/*******************************************/
/*******************************************/
/*****BOOTSTRAP OVERDRIVES******************/
/*****************************MIAU**********/

.container-fluid-right {
  width: 100%;
  padding-right: 0;
  padding-left: 15px; /* or var(--bs-gutter-x, 0.75rem) for Bootstrap 5 */
  margin-left: auto;
  margin-right: 0;
  max-width: none;
}

@media (min-width: 1400px) {
  .container { max-width: 1244px !Important; }
}



/* For Bootstrap 5, adjust the padding */
@media (min-width: 576px) {
  .container-fluid-right {
    padding-left: calc(50vw - 570px + 15px); /* 1140px/2 = 570px */
  }
}

@media (min-width: 768px) {
  .container-fluid-right {
    padding-left: calc(50vw - 360px + 15px); /* 720px/2 = 360px */
  }
}

@media (min-width: 992px) {
  .container-fluid-right {
    padding-left: calc(50vw - 480px + 15px); /* 960px/2 = 480px */
  }
}

@media (min-width: 1200px) {
  .container-fluid-right {
    padding-left: calc(50vw - 570px + 15px); /* 1140px/2 = 570px */
  }
}

@media (min-width: 1400px) {
  .container-fluid-right {
    padding-left: calc(50vw - 660px + 15px); /* 1320px/2 = 660px */
  }
}

.datos-utiles-card-title{
color: var(--Deep-blue, #00193E);

/* Body/Mobile-H2/ExtraBold */
font-family: Manrope;
font-size: 24px;
font-style: normal;
font-weight: 800;
line-height: 150%; /* 36px */
}
