:root {
    --text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

body{
    font-family: "Playfair Display", sans-serif;
    margin: 0;
    background-color: #010101;
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
} 

main {
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    font-size: clamp(2.5rem, 4vw, 4rem); /* ~40px a 64px */
    line-height: 1.1;
}

h2 {
    font-size: 1.8rem;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* ~28px a 40px */
    line-height: 1.2;
}

p,
li{
    font-size: 1rem;
    font-size: clamp(1rem, 1.2vw, 1.3rem); /* ~16px a 20px */
    line-height: 1.5;
}

svg{
    width: 25px;
}

header{
    width: 1200px;
    max-width: 90%;
    margin: auto;
    display: grid;
    /* grid-template-columns: 50px 1fr 50px; */
    grid-template-columns: 50px 1fr;
    grid-template-rows: 50px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

header .logo img{
    width: 30px;
    height: auto; 
}

header .menu{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 500;
}

header .menu-item{
    position: relative;
}  

header .menu-button {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
}

/* sidebar */

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    list-style: none;
    margin: 0; 
    padding: 2rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.side-item{
    padding: 1rem 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(5px);     
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-logo{
    display: none;
    cursor: pointer;
} 

.close-btn{
    display: none;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 1001;
}  

body.menu-open {
    overflow: hidden;
}

body.menu-open .overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-button{
    text-decoration: none;
    cursor: pointer;
}

.sidebar-button:hover{
    background-color: #eeeeee79;
}

header.active .sidebar-logo {
    display: none;
}
header.active .close-btn {
    display: block;
    z-index: 1000;
}

.side-item a {
    display: block;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease;
}

.side-item a:hover {
    background-color: #eeeeee79;
}

.hero-content h1, .content h2, .hero-content p, .content p{
    text-shadow: var(--text-shadow);
}

/* slider */
.slider{
    /*height: 100vh;
    margin-top: -50px;*/
    /*margin-top: calc(-1 * 50px);
    min-height: calc(100vh + 50px);
    position: relative;*/
    overflow: hidden;
    z-index: 0;
    margin-top: 0;          /* JS lo reemplaza */
    min-height: 100vh;      /* JS lo ajustará según header */
    width: 100%;
}

.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 10%,
    transparent 60%,
    rgba(0, 0, 0, 0.9) 76%,
    rgba(0, 0, 0, 1) 100%);
}

.slider .list .item .content{
    position: absolute;
    left: 12%;
    top: 15%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}

.slider .list .item .content h2{
    margin: 0;
}

.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}

@keyframes showContent {
    to{
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item.active h2,
.slider .list .item.active p,
.slider .list .item.active .more{
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s .7s ease-in-out 1 forwards;
}

.slider .list .item.active h2{
    animation-delay: 1s;
}

.slider .list .item.active p{
    animation-delay: 1.3s;
}

.slider .list .item.active .more{
    animation-delay: 1.6s;
}

.more{
    font-family: "Playfair Display", sans-serif;
    font-size: 1rem;
    font-size: clamp(1rem, 1.2vw, 1.3rem); /* ~16px a 20px */
    line-height: 1.5;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    color: #eee;
    border-radius: 20px;
    border-color: #eee;
    padding: 2px 35px;
}
.more:hover{
    background-color: rgba(255, 255, 255, 0.4);
}

#prev {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

#next {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.arrows button{
    background-color: #eee5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    color: #eee;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;   
    padding: 0; 
}

.arrows button:hover{
    background-color: #eee;
    color: #010101;
}

.thumbnail{
    position: absolute;
    bottom: 10px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 250px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
}

.thumbnail::-webkit-scrollbar{
    width: 0;
}

.thumbnail .item{
    width: 150px;
    height: 220px;
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail .item.active{
    filter: brightness(1.5);
}

.thumbnail .item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 1;
}

.thumbnail .item .content{
    position: absolute;
    inset: auto 10px 10px 10px;
    z-index: 2;
}

/* listado según sección */
.list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, max-content));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; 
}

.card-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;       
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 0.5rem;
}

.card h2 {
    margin: 0 0 0.5rem;
    color: #000000;
}

.card svg{
    color: #000000;
}

.card p {
    margin: 0.2rem 0;
    color: #000000;
}

.card .more {
    margin-top: 0.5rem;
    background: #030303;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.card .more:hover {
    background: #e9eaec;
    color: #000;
}

.card-content .info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.card-content .info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-content .icon {
    flex-shrink: 0;
}

/*hero*/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: -50px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.85) 80%,
    rgba(0, 0, 0, 1) 100% 
    );
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 10%;
    left: 10%;
    text-align: justify;
    color: #fff;
    z-index: 2;
    max-width: 50%;
}

.hero-content h1{
    margin-bottom: 10px;
}

.hero-content p{
    margin-bottom: 15px;
}

/* travel-package */
.travel-package {
    text-align: center;
    padding: 2rem 1rem;
}

.travel-package h2 {
    margin-bottom: 2rem;
    font-weight: bold;
}

/* spot list */
.itinerary{
    max-width: 95%;
    margin: 0 auto;
}

.spot-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; 
}

.spot {
    position: relative;
    width: 300px;
    height: 400px; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.spot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.spot:hover {
    transform: translateY(-5px);
}

.spot-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

/* itinerary */
.grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem;
}

.grid-container h3 {
    margin: 0;
    font-size: 1.2rem;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
}

.grid-container > p {
    margin: 0;
}

.duration-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.duration-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.duration-container svg {
    flex-shrink: 0;
}

.duration-container p {
    margin: 0;
    white-space: nowrap;
}

/* data */
.content-container {
    display: flex;
    gap: 1rem;
    text-align: justify;
}

.left-column {
    flex: 1.5;
    border: 3px solid #eee;
    display: flex;
    flex-direction: column;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 3px solid #eee;
}

.data {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.data-content{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-by-side{
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
} 

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item p {
    margin: 0;
    line-height: 1.2;
}

.detail-item svg{
    flex-shrink: 0;
}

.data p{
    text-align: justify;
}

/* Asegura que el último (Importe) quede abajo */
.right-column .data:last-child {
    margin-top: auto;
}

.white{
    background-color: #eee;
    color: #000;
}

.importe
{
    font-size: 1.2rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bolder;
}

/* info section */
.details {
    margin: 50px 50px;
}

.details h1{
    padding-bottom: 15px;
    margin-bottom: 15px;
    position: relative;
}

.details h1::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: white;
}

.details ul{
    list-style-type: none;
}

.details ul .with-style{
    list-style-type: disc;
}

.spaced-list{
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* footer*/
footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #000;
    color: #eee;
}

footer .logo img {
    height: 30px;
    width: auto;
}

footer .info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

footer .info a{
    color: inherit;
    text-decoration: none;
}

footer .info a:hover{
    text-decoration: underline; 
}

footer .socials {
    display: flex;
    gap: 15px;
}

footer .socials svg {
    color: #eee;
    transition: transform 0.2s ease;
}

footer .socials svg:hover {
    transform: scale(1.3); 
}

/* wpp btn */
.floating-btn a{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: #23af29;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease;
    transition: transform 0.2s ease;
}

.floating-btn a svg {
    width: 60%;
    height: 60%;
}

.floating-btn a:hover{
    transform: scale(1.3); 
}

/* responsive */
@media screen and (max-width: 678px) {
    header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem; /* margen interno */
    position: relative;
    z-index: 1000;
    }

    .logo img {
    width: 40px;
    height: auto;
    }
    .sidebar-logo {
        display: block;
        cursor: pointer;
    }

    .thumbnail{
        justify-content: start;
    }

    h1 {
        font-size: 1.8rem;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    h2 {
        font-size: 1.4rem;
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    p, li {
        font-size: 1rem;
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .hero-content {
        left: 20%;
        max-width: 60%;
    }

    .more{
        font-size: 1rem;
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .hideOnMobile{
        display: none;
    }

    .spot{
        width: 200px;
        height: 300px;
    }

    .content-container {
        flex-direction: column;
    }

    .left-column, .right-column {
        flex: unset;
    }

    footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    footer .info{
        align-items: center;
        padding: 10px 10px;
    }
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    .thumbnail{
        justify-content: start;
    }

    .spot{
        width: 200px;
        height: 300px;
    }
}

@media screen and (orientation: landscape) and (max-width: 950px) {
    /*.slider {
       /* height: calc(100vh - 100px);
        /*position: relative;
        /*padding-bottom: 100px; 
    }*/

    .slider .list .item .content {
        width: auto;      
        max-width: 70%;    
        top: 15%;
    }

    h1 {
        font-size: 2.2rem;
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    h2 {
        font-size: 1.8rem;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        line-height: 0.9;
    }
    
    p, li {
        font-size: 1.1rem;
        font-size: clamp(1.1rem, 2vw, 1.3rem);
        line-height: 1;
    }

    .more{
        font-size: 1.1rem;
        font-size: clamp(1.1rem, 2vw, 1.3rem);
    }

    .thumbnail {
        height: 120px; 
        bottom: 30px; 
        padding: 0 20px; 
    }
    
    .thumbnail .item {
        width: 100px; 
        height: 100px; 
    }

    .spot{
        width: 150px;
        height: 250px;
    }
    
    footer {
        position: relative;
        z-index: 12; 
        padding: 15px 25px; 
        font-size: small;
    } 
}

@media screen and (orientation: landscape) and (max-width: 800px), 
screen and (orientation: landscape) and (max-height: 500px) {
    h1 { 
        font-size: clamp(1.5rem, 4vw, 2rem); 
        
    }
    h2 { 
        font-size: clamp(1.2rem, 3vw, 1.6rem); 
        
    }
    p, li, .more { 
        font-size: clamp(0.9rem, 2vw, 1rem); 
        
    }
    .slider .list .item .content {
        top: 15%;
        max-width: 85%;
    }
    
    .thumbnail {
        height: 100px;
        padding: 0 10px;
    }
    
    .thumbnail .item {
        width: 100px;
        height: 90px;
    }
} 

@media (min-width: 800px) and (min-height: 900px){
    h1 {
        font-size: 2.8rem;
        font-size: clamp(2.8rem, 4vw, 4rem);
    }

    h2 {
        font-size: 2rem;
        font-size: clamp(2rem, 3vw, 3rem);
    }
    
    p, li {
        font-size: 1.2rem;
        font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    }

    .more{
        font-size: 1.2rem;
        font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    }

    footer {
        font-size: larger;
    }
} 

@media screen and (min-width: 900px) {
    .list {
        grid-template-columns: repeat(2, minmax(400px, 1fr));
        justify-content: center; 
        align-items: center;
    } 

    .card {
        flex-direction: row;
        height: 320px;
    }

    .card img {
        width: 50%;
        height: 100%;
    }

    .card-content {
        width: 50%;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
}

@media screen and (min-width: 1200px) {
    .list {
        grid-template-columns: repeat(3, minmax(400px, 1fr));
        justify-content: center; 
        align-items: center;
    }

    
} 

@media screen and (min-width: 1280px) {
    .list {
        grid-template-columns: repeat(2, minmax(500px, 1fr));
        justify-content: center; 
        align-items: center;
        
    }
    
    .card{
        height: 450px;
    }
}