#front-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    background-color: #fff; 
}

#front-page .container-fluid {
    position: relative;
    overflow: hidden;
}

#front-page img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 992px) {
    #front-page .container-fluid {
        max-width: 100%;
        margin: 0 auto;
        text-align: center; 
        background-color: #f8f8f8; 
    }
    
    #front-page img {
        width: 100%;
        height: 75%;
        object-fit:cover;
        display: block; 
    }
}

.wave {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1000,0 L1000,95 C900,98 850,96 750,98 C650,99 600,96 500,97 C400,98 350,96 250,97 C150,98 100,97 0,95 L0,0 Z' fill='%23000'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1000,0 L1000,95 C900,98 850,96 750,98 C650,99 600,96 500,97 C400,98 350,96 250,97 C150,98 100,97 0,95 L0,0 Z' fill='%23000'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;
}

@supports not (mask-image: url('')) {
    .wave {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 95%,
            75% 97%,
            50% 95%,
            25% 97%,
            0 95%
        );
    }
    
    @supports not (clip-path: polygon(0 0)) {
        .wave-container {
            position: relative;
        }
        
        .wave-container:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 15px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V2.5C200,10,400,8,600,10,800,12,1000,8,1200,10V0Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E");
            background-size: cover;
            z-index: 1;
        }
    }
}

.copper-line {
    height: 0.125rem;  
    background-color: rgb(174, 135, 112);
    width: 10%;
    margin: 0.625rem auto;  
    padding: 0;
}
.p-2{
    color: rgb(174, 135, 112);
}
.image-container {
    position: relative;
    overflow: hidden;
    padding-top: 3rem; 
}

.bg-image {
    height: 18.75rem;  
    width: 100%;
    display: block;
    margin-top: -3rem; 
}

.restaurant-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 1.875rem; 
    height: auto; 
    margin: 0;
    padding: 0.5rem 0.9375rem; 
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    z-index: 2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2; 
    white-space: normal; 
}

.restaurant-content {
    padding: 0.9375rem;  
}

.restaurant {
    margin-bottom: 1.875rem; 
    border-radius: 0.3125rem;  
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
}

.restaurant h3 {
    padding: 0.9375rem 0.9375rem 0.625rem 0.9375rem; 
    margin-bottom: 0.625rem;  
    font-size: 1.125rem;
}

.restaurant p {
    margin-bottom: 0;
}

.description-preview {
    margin-bottom: 0;
}

.description-full {
    margin-top: 0.3125rem; 
}
.first-line {
    margin-bottom: 0;
    font-weight: 500;
}

.description-expandable {
    margin-top: 0;
}

.description-expandable p {
    margin-top: 0;
    padding-top: 0;
}

.toggle-description {
    color: rgba(192, 31, 94, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 0;
}

.toggle-description:hover {
    text-decoration: none;
    color: rgba(192, 31, 94, 1);
}

.show-less {
    display: none;
}

.toggle-description .show-more {
    display: inline;
}

.toggle-description .show-less {
    display: none;
}

.special-dish {
    border-top: 0.0625rem solid #eaeaea;  
    padding-top: 0.625rem;
}

.special-dish h5 {
    color: rgba(192, 31, 94, 0.8);
    font-size: 1rem; 
    font-weight: 600;
    margin-bottom: 0.3125rem; 
}

.special-dish p {
    font-style: italic;
}


.special-dish-item {
    display: flex;
    width: 100%;
    align-items: baseline;
    position: relative;
    margin-bottom: 0;
}

.dish-name {
    position: relative;
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
    padding-right: 0.3125rem;
}

.dish-name:after {
    content: "";
    position: absolute;
    bottom: 0.25rem;
    margin-left: 0.3125rem;
    width: 100%;
    border-bottom: 0.125rem dotted #999;
}

.dish-price {
    padding-left: 0.3125rem;
    white-space: nowrap;
    font-weight: 600;
}

.ingredients {
    margin-top: 0.3125rem; 
    font-size: 0.875rem; 
    color: #666;
    margin-left: 0.3125rem;
}

.place{
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: end;
}

.place a{
    margin-top: 0.625rem; 
    font-size: 0.875rem; 
    color: #666;
    text-align: center;
    text-decoration: underline;
}

.background-image-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 18.75rem;
    height: auto;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .background-image-sticky {
        width: 9.375rem;  
        height: 9.375rem;
    }
}

#tradicions {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.tradicio-card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.3125rem;
    overflow: hidden;
    margin-bottom: 1.875rem;
    padding: 1.5rem;
}

.tradicio-title {
    color: rgba(192, 31, 94, 0.8);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.tradicio-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tradicio-source {
    font-size: 0.875rem;
    color: #666;
    text-align: right;
    margin-top: 1.5rem;
    border-top: 0.0625rem solid #eaeaea;
    padding-top: 0.625rem;
}

.text-secondary{
    font-size: 1rem;
    font-weight: 900;

}

.txtGray{
    color: #666;
    font-size: 0.875rem;
}

.site-footer{
    z-index: -10;
}

.animate-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-down.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

#toquen-closca {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.closca-info {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.3125rem;
    overflow: hidden;
    margin-bottom: 1.875rem;
    padding: 2rem 1.5rem;
}

.closca-dates {
    margin-bottom: 2rem;
}

.closca-dates h3 {
    color: rgba(192, 31, 94, 0.9);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.closca-dates .lead {
    font-size: 1.25rem;
    color: #333;
    font-weight: 500;
}

.participants {
    margin-top: 1.5rem;
}

.participant-card {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.0625rem solid #eaeaea;
}

.participant-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.participant-card h4 {
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.3125rem;
}

.participant-card .specialty {
    color: rgba(192, 31, 94, 0.8);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Estilos para el modal de imágenes */
#imageModal .modal-title {
    color: rgba(192, 31, 94, 0.8);
    font-weight: 600;
}

#imageModal .close {
    color: rgba(192, 31, 94, 0.8);
    opacity: 0.8;
}

#imageModal .close:hover {
    color: rgba(192, 31, 94, 1);
    opacity: 1;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .closca-dates h3 {
        font-size: 1.25rem;
    }
    
    .closca-dates .lead {
        font-size: 1.1rem;
    }
    
    .participant-card {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .participants .col-md-6:first-child {
        position: relative;
        margin-bottom: 1.5rem;
        padding-bottom: 0;
    }
    
    .participants .col-md-6:first-child .participant-card:last-child {
        position: relative;
        border-bottom: none;
        padding-bottom: 1.5rem;
    }
    
    .participants .col-md-6:first-child .participant-card:last-child::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 0.0625rem;
        background-color: #eaeaea;
    }
    
    .participants .col-md-6:last-child {
        margin-top: 1rem;
    }
}