html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-image: url("https://content.nationalgeographic.com.es/medio/2025/01/18/himalaya_68c32f8b_250118135441_1280x720.webp");
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
    background-attachment: fixed;  
    font-family: Arial, sans-serif;
    padding-top: 70px;
}

.main-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 8px;
}

/* =========================================
   HOME PAGE
========================================= */

/* Intro */

.home-intro {
    max-width: 1000px;

    text-align: justify;
    text-align-last: center;

    line-height: 1.7;

    margin-bottom: 0;
}

.home-intro h2 {
    font-weight: 800;
    color: #212529;
}

.home-intro p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* =========================================
   HERO CAROUSEL
========================================= */

.home-carousel {
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 15px 35px rgba(0,0,0,0.15);

    margin-bottom: 4rem;
}

.home-carousel .carousel-item {
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
}

.home-carousel .carousel-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* .home-carousel .carousel-caption {
    top: 2rem;
    bottom: auto;

    left: 5%;
    right: 5%;

    text-align: left;

    padding: 0;
} */

.home-carousel-overlay {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.55)
        );

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 2rem;
}

.home-carousel-content {
    max-width: 850px;
}

.home-carousel-content h1 {
    color: white;

    font-weight: 800;

    font-size: clamp(2rem, 5vw, 4rem);

    margin-bottom: 1rem;

    text-shadow: 0 3px 15px rgba(0,0,0,0.4);
}

.home-carousel-content p {
    color: rgba(255,255,255,0.95);

    font-size: 1.2rem;

    margin-bottom: 2rem;
}

/* =========================================
   HERO CAPTIONS
========================================= */

/* Posiciona el texto arriba */
.home-carousel .carousel-caption {
    top: 2rem;
    bottom: auto;

    left: 5%;
    right: 5%;

    padding: 0;
}

/* Caja semitransparente */
.hero-caption-card {
    display: inline-block;

    max-width: 650px;

    background: rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(1px);

    padding: 1.5rem 2rem;

    border-radius: 16px;

    /* border-left: 5px solid #20c997; */
}

/* Título */
.hero-caption-card h1 {
    color: #ffffff;

    text-shadow:
        0 2px 10px rgba(0,0,0,0.7);

    margin-bottom: 0.5rem;
}

/* Subtítulo */
.hero-caption-card p {
    color: rgba(255,255,255,0.95);

    margin-bottom: 0;
}

/* Alternancia izquierda-derecha */
.caption-left {
    text-align: left;
}

.caption-right {
    text-align: right;
}

.caption-right .hero-caption-card {
    margin-left: auto;
}

/* =========================================
   SECTION TITLE
========================================= */

.home-section-title {
    text-align: center;

    margin-bottom: 3rem;
}

.home-section-title h2 {
    font-weight: 800;
}

.home-section-title p {
    color: #6c757d;
}

/* =========================================
   ROUTE CARDS
========================================= */

.route-card {
    border: none;

    border-radius: 18px;

    overflow: hidden;

    transition: all 0.3s ease;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.route-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.route-card img {
    height: 240px;

    object-fit: cover;
}

.route-card .card-body {
    padding: 1.5rem;
}

.route-card .card-title {
    font-weight: 700;

    margin-bottom: 1rem;
}

.route-card .btn {
    border-radius: 10px;
}

/* =========================================
   ROUTE FILTERS
========================================= */

.filter-card {
    background-color: rgba(255,255,255,0.92);

    border-radius: 18px;

    padding: 1.5rem;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    border: 1px solid rgba(0,0,0,0.05);
}

.filter-card .form-select {
    min-height: 48px;
}

/* =========================================
   ROUTE PAGE
========================================= */

.route-page-title {
    font-weight: 800;
}

.route-card .card-text {
    line-height: 1.6;

    color: #6c757d;
}

.route-card ul li {
    margin-bottom: 0.35rem;
}

/* =========================================
   INFO STRIP
========================================= */

.home-info-strip {
    background:
        linear-gradient(
            135deg,
            rgba(25,135,84,0.95),
            rgba(21,115,71,0.95)
        );

    color: white;

    border-radius: 20px;

    padding: 3rem 2rem;

    margin: 4rem 0;
}

.home-info-strip i {
    font-size: 2rem;

    margin-bottom: 1rem;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .home-carousel .carousel-item {
        height: 55vh;
        min-height: 420px;
    }

    .home-carousel-content p {
        font-size: 1rem;
    }
}

.route-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.route-card img {
    height: 200px;
    object-fit: cover;
}

.card-body ul {
    margin-top: 10px;
}

.navbar {
    height: 70px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand {
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    padding-top: 10px;
    height: 150px;
    width: 150px;
} 


.navbar-sticky {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    z-index: 1030;

    backdrop-filter: blur(8px);

    transition:
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

/* =========================================
   FOOTER
========================================= */

.footer-compact {
    font-size: 0.9rem;
}

/* =========================================
   LOGO
========================================= */

.footer-logo {
    height: 250px;
    width: auto;

    object-fit: contain;

    margin-top: -35px;
    margin-bottom: -35px;
}

/* =========================================
   TEXTOS
========================================= */

.footer-compact p,
.footer-compact li,
.footer-compact a,
.footer-compact small {
    line-height: 1.3;
}

.footer-compact h5 {
    margin-bottom: 1rem;
    
}

.footer-compact ul li {
    margin-bottom: 0.80rem;
}

/* =========================================
   LINKS
========================================= */

.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff !important;
}

/* =========================================
   SOCIAL BUTTONS
========================================= */

.footer-social-btn {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: #ffffff !important;

    text-decoration: none !important;

    transition: all 0.25s ease;

    flex-shrink: 0;
}

/* ICONOS */
.footer-social-btn i {
    font-size: 1.9rem;

    color: inherit;

    line-height: 1;
}

/* HOVER GENERAL */
.footer-social-btn:hover {
    transform: translateY(-3px);

    background-color: #ffffff;

    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* COLORES REDES */
.footer-facebook:hover {
    color: #1877f2 !important;
}

.footer-instagram:hover {
    color: #e4405f !important;
}

.footer-youtube:hover {
    color: #ff0000 !important;
}

.text-justify {
    text-align: left;

    text-wrap: pretty;

    line-height: 1.7;
}

/* =========================================
   CONTACTO
========================================= */

.contact-icon {
    width: 50px;
    height: 50px;

    border-radius: 12px;

    background-color: rgba(33, 37, 41, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.2rem;

    color: #212529;

    flex-shrink: 0;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

textarea.form-control {
    resize: none;
}

/* =========================================
   QUIÉNES SOMOS
========================================= */

.about-card {
    background-color: white;

    border-radius: 16px;

    padding: 2rem;

    border: 1px solid rgba(0,0,0,0.06);

    transition: all 0.25s ease;
}

.about-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.about-icon {
    width: 64px;
    height: 64px;

    border-radius: 16px;

    background-color: rgba(33, 37, 41, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;

    color: #212529;
}

.about-highlight {
    background: rgba(33, 37, 41, 0.04);

    border-left: 5px solid #212529;

    padding: 2rem;

    border-radius: 14px;
}

.lead-custom {
    line-height: 1.9;

    text-align: justify;

    text-wrap: pretty;
}


/* =========================================
   LEGAL PAGES
========================================= */

.legal-hero-card {
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.92),
            rgba(22, 101, 52, 0.88)
        ),
        url("/static/img/hero.jpg") center/cover no-repeat;

    border-radius: 20px;
}

.legal-hero-overlay {
    min-height: 260px;

    display: flex;
    align-items: center;
}

.legal-hero-icon {
    font-size: 7rem;
    color: rgba(255,255,255,0.16);
}

.legal-badge {
    background-color: rgba(25, 135, 84, 0.12);

    color: #198754;

    border: 1px solid rgba(25, 135, 84, 0.25);

    padding: 0.7rem 1rem;

    border-radius: 12px;

    font-size: 0.9rem;
    font-weight: 600;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-title {
    font-size: 1.5rem;
    font-weight: 700;

    margin-bottom: 1.5rem;

    color: #212529;

    display: flex;
    align-items: center;
}

.legal-title i {
    color: #198754;
}

.legal-text p {
    color: #495057;

    line-height: 1.85;

    text-align: justify;

    text-wrap: pretty;

    margin-bottom: 1.2rem;
}

.legal-feature-card {
    height: 100%;

    background: #f8f9fa;

    border: 1px solid #dee2e6;

    border-radius: 16px;

    padding: 1.8rem;

    transition: all 0.25s ease;
}

.legal-feature-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.legal-feature-card i {
    font-size: 2rem;

    color: #198754;

    margin-bottom: 1rem;

    display: inline-block;
}

.legal-feature-card h5 {
    font-weight: 700;

    margin-bottom: 0.8rem;
}

.legal-feature-card p {
    margin-bottom: 0;

    color: #6c757d;

    line-height: 1.6;
}


/* =========================================
   EXTRA LEGAL COMPONENTS
========================================= */

.legal-card {
    border-radius: 20px;
    overflow: hidden;

    border: none;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    backdrop-filter: blur(6px);
}

/* Listados legales */
.legal-list {
    padding-left: 1.2rem;
}

.legal-list li {
    margin-bottom: 1rem;

    color: #495057;

    line-height: 1.8;

    text-align: justify;

    text-wrap: pretty;
}

/* Pasos de reservas */
.reservation-steps {
    display: flex;
    flex-direction: column;

    gap: 1.5rem;
}

.reservation-step {
    display: flex;

    align-items: flex-start;

    gap: 1.2rem;

    background-color: #f8f9fa;

    border: 1px solid #dee2e6;

    border-radius: 16px;

    padding: 1.5rem;

    transition: all 0.25s ease;
}

.reservation-step:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

/* Número del paso */
.reservation-step-number {
    min-width: 46px;
    height: 46px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #198754,
        #157347
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;

    font-size: 1rem;

    box-shadow: 0 4px 10px rgba(25,135,84,0.3);
}

/* Caja de contacto */
.legal-contact-box {
    background:
        linear-gradient(
            135deg,
            #212529,
            #343a40
        );

    color: white;

    border-radius: 18px;

    padding: 2rem;
}

.legal-contact-box i {
    color: #20c997;
}

/* Responsive */
@media (max-width: 768px) {

    .reservation-step {
        flex-direction: column;
    }

    .legal-hero-overlay {
        min-height: auto;

        padding: 2rem 0;
    }

    .legal-title {
        font-size: 1.25rem;
    }

}

/* =========================================
   ROUTE DETAIL PAGE
========================================= */

.route-detail-title {
    font-weight: 800;
}

.route-detail-image-card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.route-detail-image {
    width: 100%;

    height: 450px;

    object-fit: cover;
}

.route-detail-card {
    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    padding: 2rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    height: 100%;
}

.route-detail-description {
    line-height: 1.8;

    text-align: justify;

    color: #495057;
}

.route-detail-info li {
    margin-bottom: 0.8rem;

    color: #495057;
}

/* =========================================
   CALENDAR CARDS
========================================= */

.calendar-card-modern {
    background: rgba(255,255,255,0.95);

    border-radius: 18px;

    padding: 1.5rem;

    height: 100%;

    border: 1px solid rgba(0,0,0,0.05);

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    transition: all 0.3s ease;
}

.calendar-card-modern:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.calendar-date {
    font-weight: 700;

    font-size: 1.1rem;

    margin-bottom: 0.5rem;
}

.calendar-places {
    color: #6c757d;
}

.calendar-card-modern .btn {
    border-radius: 10px;
}

/* =========================================
   ROUTE FORM PAGE
========================================= */

.route-form-card {
    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    padding: 2rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    border: 1px solid rgba(0,0,0,0.05);
}

.route-form-card .form-control,
.route-form-card .form-select {
    min-height: 48px;

    border-radius: 10px;
}

.route-form-card textarea {
    min-height: 180px;
}

.route-form-card label {
    font-weight: 600;

    color: #212529;

    margin-bottom: 0.4rem;
}

.route-form-card .btn {
    border-radius: 10px;

    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* =========================================
   ROUTE DELETE PAGE
========================================= */

.route-delete-card {
    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    padding: 2.5rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    border: 1px solid rgba(0,0,0,0.05);
}

.route-delete-icon {
    width: 90px;
    height: 90px;

    margin: 0 auto 1.5rem;

    border-radius: 50%;

    background: rgba(220,53,69,0.12);

    display: flex;
    align-items: center;
    justify-content: center;
}

.route-delete-icon i {
    font-size: 2.8rem;

    color: #dc3545;
}

.route-delete-title {
    font-weight: 800;

    margin-bottom: 0.75rem;
}

.route-delete-subtitle {
    color: #6c757d;

    margin-bottom: 0;
}

.route-delete-card .btn {
    border-radius: 10px;
}

/* =========================================
   CALENDAR LIST PAGE
========================================= */

.status-text {
    font-weight: 600;
}

.calendar-card-modern .btn {
    min-width: 120px;
}

/* =========================================
   CALENDAR FORM PAGE
========================================= */

.calendar-form-card {
    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    padding: 2rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    border: 1px solid rgba(0,0,0,0.05);
}

.calendar-form-card .form-control,
.calendar-form-card .form-select {
    min-height: 48px;

    border-radius: 10px;
}

.calendar-form-card textarea {
    min-height: 180px;
}

.calendar-form-card label {
    font-weight: 600;

    color: #212529;

    margin-bottom: 0.4rem;
}

.calendar-form-card .btn {
    border-radius: 10px;

    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.route-list-container {
    border: none !important;
    background: transparent;
}

/* =========================================
   ROUTE DETAIL PREMIUM
========================================= */

.route-hero-card {

    position: relative;

    height: 350px;

    border-radius: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(25,135,84,0.90),
            rgba(33,37,41,0.85)
        );

    box-shadow:
        0 15px 35px rgba(0,0,0,0.15);
}

.route-hero-overlay {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 2rem;
}

/* .route-feature-card {

    background: rgba(255,255,255,0.95);

    border-radius: 18px;

    padding: 1.5rem;

    height: 100%;

    border: 1px solid rgba(0,0,0,0.05);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.08);

    transition: all 0.3s ease;
} */

.route-feature-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.12);
}

/* .feature-icon {

    font-size: 2rem;

    margin-bottom: 0.75rem;
} */

.route-feature-card h6 {

    font-weight: 700;

    margin-bottom: 0.5rem;
}

.route-feature-card p {

    color: #6c757d;
}

.route-description-card {

    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    padding: 2rem;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);

    border: 1px solid rgba(0,0,0,0.05);
}

.route-description-card h2 {

    font-weight: 800;
}

.route-detail-card ul {

    padding-left: 1.2rem;
}

.route-detail-card ul li {

    margin-bottom: 0.8rem;

    color: #495057;

    line-height: 1.6;
}

.route-detail-image-card {

    overflow: hidden;
}

.route-detail-image {

    width: 100%;

    height: 550px;

    object-fit: cover;
}

@media (max-width: 768px) {

    .route-hero-card {

        height: 250px;
    }

    .route-detail-image {

        height: 320px;
    }

}

/* =========================================
   ROUTE HERO V2
========================================= */

.route-hero-card {

    position: relative;

    height: 220px;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.15);
}

.route-hero-image {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.route-hero-overlay {

    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            rgba(0,0,0,0.30),
            rgba(0,0,0,0.40)
        );
}

.route-hero-caption {

    background: rgba(0,0,0,0.45);

    backdrop-filter: blur(2px);

    padding: 1.25rem 2rem;

    border-radius: 16px;

    max-width: 800px;
}

.route-hero-caption h1 {

    color: white;

    text-shadow:
        0 2px 10px rgba(0,0,0,0.7);
}

/* =========================================
   ROUTE STATS BAR
========================================= */

.route-stats-card {

    background: rgba(255,255,255,0.95);

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid rgba(0,0,0,0.05);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}

.route-stat-item {

    padding: 1.5rem;

    height: 100%;
}

.route-stat-item h6 {

    font-weight: 700;

    color: #212529;

    margin-bottom: 0.5rem;

    text-transform: uppercase;

    font-size: 0.85rem;

    letter-spacing: 0.5px;
}

.route-stat-item p {

    margin-bottom: 0;

    color: #6c757d;

    font-size: 1.05rem;
}

@media (min-width: 768px) {

    .route-stat-item {

        border-right:
            1px solid rgba(0,0,0,0.08);
    }

    .route-stat-item:last-child {

        border-right: none;
    }
}


/* =========================================
   ROUTE GALLERY PREVIEW
========================================= */

.route-gallery-preview img {

    width: 100%;

    height: 180px;

    object-fit: cover;

    border-radius: 12px;

    transition: transform 0.3s ease;
}

.route-gallery-preview img:hover {

    transform: scale(1.03);
}

.js-calendar-card.is-hydrating .actions-container,
.js-calendar-card.is-hydrating .status-text {
  opacity: 0;
}

.js-calendar-card.is-hydrating {
  visibility: hidden;
}


/* =========================================
   HEADER RESPONSIVE MOBILE
========================================= */

@media (max-width: 991.98px) {

    /* Navbar principal */
    .navbar {
        min-height: 70px;
        background: rgba(33, 37, 41, 0.98) !important;
        backdrop-filter: none;
    }

    /* Logo más equilibrado */
    .navbar-logo {
        width: 110px;
        height: 110px;
        padding-top: 0;
    }

    /* Botón hamburguesa */
    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.25);
        padding: 0.45rem 0.65rem;
        border-radius: 12px;
        background-color: rgba(255,255,255,0.08);
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Menú desplegable */
    .navbar-collapse {

        margin-top: 1rem;

        padding: 1rem;

        border-radius: 16px;

        background: rgba(33, 37, 41, 0.98);

        box-shadow:
            0 15px 35px rgba(0,0,0,0.25);

        border:
            1px solid rgba(255,255,255,0.08);
    }

    /* Enlaces */
    .navbar-nav .nav-link {

        color: #ffffff !important;

        font-weight: 600;

        padding: 0.9rem 1rem;

        border-radius: 10px;

        transition: all 0.25s ease;
    }

    .navbar-nav .nav-link:hover {

        background-color:
            rgba(255,255,255,0.08);

        color:
            #20c997 !important;
    }

    /* Dropdown usuario */
    .dropdown-menu {

        background:
            #2b3035;

        border:
            1px solid rgba(255,255,255,0.08);

        border-radius:
            14px;

        overflow:
            hidden;
    }

    .dropdown-item {

        color:
            #f8f9fa;

        padding:
            0.85rem 1rem;
    }

    .dropdown-item:hover {

        background:
            rgba(255,255,255,0.08);

        color:
            #20c997;
    }

    /* Botones login y registro */
    .navbar .btn {

        width:
            100%;

        margin-bottom:
            0.75rem;
    }

    .navbar .btn:last-child {
        margin-bottom: 0;
    }
}
