.fama-escenarios-container {
    margin-bottom: 20px;
    font-family: 'Inter' !important;
}

.fama-escenario-image {
    width: 100%;
    height: 220px; 
    overflow: hidden;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.fama-escenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fama-provincia-title {
    text-align: left;
    font-family: 'Inter' !important;
    margin-bottom: 20px;
    font-size: 38px !important;
    line-height: 46px !important;
    color: #201751 !important;
}

.fama-escenarios-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.fama-escenario-card {
    border: 1px solid #D7CABD;
    padding: 25px;
    border-radius: 18px;
    background: #fff;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.fama-escenario-card h3 {
    color: #BA8455 !important;
    font-family: 'Inter';
    font-size: 20px !important;
    line-height: 24px !important;
    font-weight: 600 !important;
    margin: 0;
}

.fama-escenario-card p {
    color: #22231D !important;
    font-family: 'Inter';
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    margin: 0;
}

.fama-escenario-card a {
    color: #22231D !important;
    font-family: 'Inter';
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    margin: 0;
    text-decoration: underline !important;
}

.fama-escenario-card a:hover {
    text-decoration: underline;
    color: #BA8455 !important;
}

.fama-escenario-location, .fama-escenario-horario {
    display: flex;
    align-items: flex-start;
}

.fama-icon {
    width: 18px;
    vertical-align: middle;
    margin-right: 8px;
    transform: translateY(3px);
}

.fama-icon-big {
    width: 33px;
    vertical-align: middle;
    margin-right: 8px;
    transform: translateY(-6px);
}

.fama-pagination {
    text-align: left;
    margin-top: 60px;
    transform: translateX(-5px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.fama-pagination button {
    padding: 10px 20px !important;
    margin: 0 5px;
    background-color: #fff !important;
    color: #1A759E !important;
    border: 1px solid #1A759E !important;
    border-radius: 18px !important;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fama-pagination button:disabled {
    background-color: #fff !important;
    cursor: not-allowed;
    color: #BBB5A3 !important;
    border-color: #BBB5A3 !important;
}

.fama-pagination button:hover:not(:disabled) {
    background-color: #fff;
    color: #BA8455 !important;
    border-color: #BA8455 !important;
}

.fama-pagination button:hover:not(:disabled) svg path {
    fill: #BA8455;
    stroke: #BA8455;
}

.fama-pagination button.fama-prev svg {
    transform: rotate(180deg);
}

.fama-pagination button.fama-prev:disabled svg path {
    fill: #BBB5A3;
    stroke: #BBB5A3;
}

.tabbers .elementor-tab-title.elementor-tab-desktop-title.elementor-active {
    color: #201751;
    border: 0 !important;
    background-image: url('images/flechanew.png');
    background-repeat: no-repeat;
    background-position: 14px 20px;
    padding-left: 42px;
}

.tabbers .elementor-tabs-wrapper {
    margin-top: 5px;
}

.tabbers .elementor-tab-title.elementor-tab-desktop-title {
    color: #BA8455;
    font-size: 20px;
    border: 0 !important;
    padding: 15px 25px;
    background-image: url('images/guionew.png');
    background-repeat: no-repeat;
    background-position: 9px 27px;
}

.tabbers .elementor-tabs-content-wrapper, .tabbers .elementor-tab-content, .tabbers .elementor-tab-title:before, .tabbers .elementor-tab-title:after {
    border: 0 !important;
}

#lista .elementor-tabs .elementor-tabs-wrapper {
    display: block;
}

#lista .elementor-tab-mobile-title {
    display: none;
}

@media (max-width: 768px) {
    #lista .elementor-widget-tabs.elementor-tabs-view-vertical .elementor-tabs-wrapper {
        width: 100%;
    }

    #lista .elementor-tab-title {
        display: none;
    }

    .fama-escenarios-content {
        grid-template-columns: repeat(1, 1fr);
    }

    .fama-pagination {
        margin-top: 30px;
        transform: translateX(0px);
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fama-pagination button {
        width: 100%;
    }

    .fama-provincia-title {
        font-size: 24px !important;
        line-height: 30px !important;
    }
}

body.fama-popup-open {
    overflow: hidden;
    position: relative;
}

.fama-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fama-popup-content {
    background: white;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh; 
    border-radius: 10px;
    position: relative;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    overflow-y: auto; 
    padding-top: 50px;
}

.fama-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #a6713b;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: background 0.3s ease;
    border: none;
}

.fama-popup-close:hover {
    background: #ddd;
}

.fama-popup-text {
    font-family: 'Inter', sans-serif;
    color: #22231D;
    font-size: 16px;
    line-height: 1.6;
}

.fama-popup-text p {
    margin-bottom: 12px;
}

.fama-popup-text p:last-child {
    margin-bottom: 0;
}

.fama-popup-text span {
    all: unset;
    display: inline;
}

.fama-popup-text strong {
    font-weight: 600;
}

.fama-popup-text em {
    font-style: italic;
}

.fama-popup-text ul, 
.fama-popup-text ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.fama-popup-text ul li, 
.fama-popup-text ol li {
    margin-bottom: 6px;
}

.fama-ver-mas {
    all: unset !important;
    color: #BA8455 !important;
    font-size: 16px !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    display: block !important;
    font-weight: 500 !important;
    text-align: left !important;
}

.fama-ver-mas:hover {
    color: #8c5f3a !important; 
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    #tabs-dropdown,
    .elementor-tabs-dropdown {
        display: block !important;
        width: 100% !important; 
        max-width: 320px; 
        padding: 12px 20px;
        border: 1px solid #BA8455;
        border-radius: 12px;
        background: #fff;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        color: #BA8455;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg fill=\"%23BA8455\" height=\"14\" viewBox=\"0 0 24 24\" width=\"14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>');
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 14px;
        margin: 0 auto 20px auto;
        box-sizing: border-box;
    }

    #tabs-dropdown:focus,
    .elementor-tabs-dropdown:focus {
        border-color: #8c5f3a;
        color: #8c5f3a;
        background-image: url('data:image/svg+xml;utf8,<svg fill=\"%238c5f3a\" height=\"14\" viewBox=\"0 0 24 24\" width=\"14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>');
        outline: none;
    }
}