/*===========================================
  HOME
  Estilos exclusivos de la página de inicio:
  carrusel hero, sección "Sobre Nosotros", tours
  populares, "Explora Nuevos Horizontes" y el
  carrusel de tarifas especiales.
===========================================*/
.custom-icon {
    color: var(--secondary-color);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

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

@keyframes heroKenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.09);
    }
}

/*===========================================
  HERO CAROUSEL
===========================================*/
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 640px;
}

.hero-carousel>.carousel,
.hero-carousel .carousel-inner {
    height: 100%;
}

.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 640px;
    position: relative;
    overflow: hidden;
}

/* Fondo con zoom lento (Ken Burns) para los slides de tarifas especiales,
   aislado en un pseudo-elemento para no animar el texto que va encima. */
.hero-carousel .tarifa-item {
    background-size: cover;
    background-position: center;
}

.hero-carousel .tarifa-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    animation: heroKenBurns 18s var(--ease-default) infinite alternate;
}

.hero-carousel .tarifa-overlay,
.hero-carousel .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 9, 18, 0.35) 0%, rgba(10, 9, 18, 0.5) 55%, rgba(10, 9, 18, 0.78) 100%);
    z-index: 1;
}

.hero-carousel .video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-carousel .custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-content,
.hero-carousel .tarifa-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Entrada suave y escalonada del contenido de cada slide; se reactiva
   cada vez que Bootstrap marca el slide como .active. */
.hero-carousel .carousel-item .hero-title,
.hero-carousel .carousel-item .hero-subtitle,
.hero-carousel .carousel-item .badge-stars,
.hero-carousel .carousel-item .tarifa-description,
.hero-carousel .carousel-item .amenity-badge,
.hero-carousel .carousel-item .btn-carousel-cta,
.hero-carousel .carousel-item .date-wrap,
.hero-carousel .carousel-item .location-wrap,
.hero-carousel .carousel-item .social-share {
    opacity: 0;
}

.hero-carousel .carousel-item.active .hero-title {
    animation: heroFadeUp 0.7s var(--ease-default) 0.05s both;
}

.hero-carousel .carousel-item.active .hero-subtitle {
    animation: heroFadeUp 0.7s var(--ease-default) 0.15s both;
}

.hero-carousel .carousel-item.active .badge-stars {
    animation: heroFadeUp 0.7s var(--ease-default) 0.15s both;
}

.hero-carousel .carousel-item.active .tarifa-description {
    animation: heroFadeUp 0.7s var(--ease-default) 0.25s both;
}

.hero-carousel .carousel-item.active .amenity-badge {
    animation: heroFadeUp 0.7s var(--ease-default) 0.35s both;
}

.hero-carousel .carousel-item.active .btn-carousel-cta {
    animation: heroFadeUp 0.7s var(--ease-default) 0.45s both;
}

.hero-carousel .carousel-item.active .date-wrap,
.hero-carousel .carousel-item.active .location-wrap,
.hero-carousel .carousel-item.active .social-share {
    animation: heroFadeUp 0.7s var(--ease-default) 0.3s both;
}

.hero-carousel .hero-title {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-carousel .tarifa-description {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    margin: 0 auto 1.75rem;
    max-width: 640px;
    line-height: 1.65;
    font-weight: var(--font-weight-light);
}

.hero-carousel .badge-stars {
    display: inline-flex;
    gap: 0.15rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
}

.hero-carousel .amenity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    margin: 0.35rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.92rem;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero-carousel .amenity-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-carousel .btn-carousel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: var(--font-weight-semibold);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-accent);
    margin-top: 1.75rem;
    white-space: nowrap;
}

.hero-carousel .btn-carousel-cta:hover,
.hero-carousel .btn-carousel-cta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(238, 80, 7, 0.5);
    background: linear-gradient(135deg, var(--secondary-color-light) 0%, var(--secondary-color) 100%);
    color: white;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 80px;
    opacity: 1;
    z-index: 3;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 10px;
    transition: all var(--transition-fast);
}

.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.08);
}

/* Slide "Explora Oaxaca": fecha/ubicación como chips, en línea con el
   lenguaje visual de las insignias de los otros dos slides. */
.hero-carousel .date-wrap,
.hero-carousel .location-wrap {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0.35rem;
}

.hero-carousel .date-wrap h5,
.hero-carousel .location-wrap h5 {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0;
    white-space: nowrap;
}

.hero-carousel .location-wrap a:hover h5 {
    color: var(--secondary-color-light);
}

.hero-carousel .social-share {
    margin: 0.35rem;
}

/*===========================================
  ABOUT SECTION
===========================================*/
.about-section {
    position: relative;
}

.services-info {
    position: relative;
    padding-left: clamp(0, 1rem, 1.5rem);
}

.services-info h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
}

.services-info h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-color-light));
}

.services-info p {
    text-align: justify;
    position: relative;
    padding-left: 1.25rem;
    border-left: 3px solid var(--secondary-color);
}

.carousel-nosotros {
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 8px rgba(238, 80, 7, 0.06);
}

/*===========================================
  TOURS POPULARES
===========================================*/
.tours-populares {
    position: relative;
}

.tour-card-wrapper {
    height: 500px;
}

.tour-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 7px solid var(--dark-color);
    background-clip: padding-box;
}

.tour-card img {
    transition: transform var(--transition-base);
}

.tour-card .card-img-overlay {
    background: linear-gradient(180deg, rgba(10, 9, 18, 0.05) 0%, rgba(10, 9, 18, 0.35) 55%, rgba(10, 9, 18, 0.78) 100%);
    transition: background var(--transition-base);
    border-radius: calc(var(--radius-md) - 7px);
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.tour-card:hover img {
    transform: scale(1.06);
}

.tour-card:hover .card-img-overlay {
    background: linear-gradient(180deg, rgba(10, 9, 18, 0.15) 0%, rgba(10, 9, 18, 0.45) 55%, rgba(10, 9, 18, 0.85) 100%);
}

.tour-card-title {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem !important;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.tour-card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-color-light));
}

/*===========================================
  EXPLORA NUEVOS HORIZONTES
===========================================*/
.tour-card-horizontal {
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    border: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tour-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tour-card-horizontal .carousel-inner {
    overflow: hidden;
}

.carousel-img {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.tour-card-horizontal:hover .carousel-img {
    transform: scale(1.07);
}

.card-location {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--font-weight-medium);
    color: var(--p-color);
}

.card-location i {
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

.card-info {
    font-size: 15px;
    line-height: 1.8;
}

.card-info i {
    color: var(--secondary-color);
    width: 1.2em;
    text-align: center;
}

/* Color de acento del título de cada tarjeta (una por destino) */
.card-accent-orange {
    color: var(--secondary-color);
}

.card-accent-yellow {
    /* Versión más oscura del amarillo original (#cec703) para cumplir
       contraste mínimo AA sobre fondo blanco (antes 1.78:1, ahora 5.1:1). */
    color: #7a6f00;
}

.card-accent-blue {
    color: #068fb5;
}

.card-accent-navy {
    color: var(--primary-color);
}

/*===========================================
  CARRUSEL HERO: transición entre slides
===========================================*/
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/*===========================================
  SOCIAL ICONS
===========================================*/
.social-icon {
    margin: 0;
    padding: 0;
}

.social-icon-item {
    list-style: none;
    display: inline-block;
    vertical-align: top;
}

.social-icon-link {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: 16px;
    display: block;
    margin-right: 10px;
    text-align: center;
    width: 38px;
    height: 38px;
    line-height: 38px;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon-link:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.social-icon-link span {
    display: block;
}

/*===========================================
  RESPONSIVE (específico del hero de home)
===========================================*/
@media (max-width: 991px) {
    .services-info {
        padding-left: 0;
    }

    .carousel-nosotros {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        min-height: 560px;
    }

    .hero-carousel .tarifa-description {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-carousel .amenity-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin: 0.3rem;
    }

    .hero-carousel .btn-carousel-cta {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: 280px;
    }

    .hero-carousel .btn-carousel-cta i {
        font-size: 0.9rem;
    }

    .hero-carousel .date-wrap,
    .hero-carousel .location-wrap {
        padding: 0.5rem 1rem;
    }

    .tour-card {
        border-width: 4px;
    }
}

@media (max-width: 480px) {
    .hero-carousel .btn-carousel-cta {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        max-width: 250px;
    }

    .hero-carousel .btn-carousel-cta span {
        display: inline-block;
    }
}
