/*Generales*/
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, Roboto, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    text-decoration: none;
    list-style: none;
    font-size: 1em;
}
/*Encabezados*/
h1 {
    font-size: 1.75em;
    margin-top: -0.3em;
    margin-bottom: 0.65em;
    margin-left: 1em;
    font-weight: bold;
    text-align: left;
}
h2 {
    font-size: 1.35em;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
    font-weight: bold;
}
h3 {
    font-size: 1.15em;
    margin-top: 1em;
    margin-bottom: 1em;
    font-weight: bold;
}
h4 {
    font-size: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.2em;
    font-weight: bold;
}
h5 {
    font-size: 0.83em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    font-weight: bold;
}
p {
    margin-top: 1em;
    margin-bottom: 1em;
}
.breadcrumb {
    margin-top: 0.5em;
    margin-left: 1.9em;
}
/*Layout*/
header {
    grid-area: header
}
main {
    grid-area: main
}
footer {
    grid-area: footer
}
.container {
    display: grid;
    grid-template-columns: 33.3% 33.3% 33.3%;
    grid-template-areas: 'header header header'
        'main main main'
        'footer footer footer';
}
/*Start Menu*/
header {
    height: 68px;
    position: fixed;
    /* Set the navbar to fixed position */
    top: 0;
    /* Position the navbar at the top of the page */
    width: 100%;
    /* Full width */
    background: #F58E03;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1000;
}
.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding: 5px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.logo img {
    padding-bottom: 4px;
    width: 98%;
}
.social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.social img {
    padding-top: 5px;
    padding-right: 15px;
    width: 90%;
}
.logo img:hover, h1:hover, .social img:hover {
    opacity: 0.85;
}
header h1 {
    font-size: 1em;
    padding-left: 5px;
}
header h1 a {
    color: #fff;
}
header h2 {
    font-size: 1em;
    padding-left: 5px;
}
header h2 a {
    color: #fff;
}
header ul li a {
    font-weight: 550;
}
.logo img {
    padding-top: 4px;
}
#btn-menu {
    display: none;
}
header label {
    font-size: 30px;
    cursor: pointer;
    display: none;
}
.menu ul {
    background: #F58E03;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.menu ul ul {
    display: none;
}
.menu ul ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.menu a {
    display: block;
    padding: 15px 10px;
    color: #fff;
}
.menu a:hover {
    background: rgba(0, 0, 0, 0.3);
}
.menu a span {
    margin-left: 5px;
}
.menu ul li:hover ul {
    display: block;
    position: absolute;
}
/*End Menu NAV*/
/*MAIN-CONTAINER*/
main ul {
    padding-left: 40px;
}
main ul li {
    list-style-type: disc;
}
main ul li ul li {
    list-style-type: circle;
}
.emoj {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.3em
}
/*Layout main*/
.tour-hero {
    grid-area: hero
}
.why-choose-section {
    grid-area: why
}
.video-pilgrimage {
    grid-area: video
}
.testimonials-section {
    grid-area: testimonials
}
.popular-pilgrimage-tours {
    grid-area: popular;
    display: grid;
    grid-template-areas:
        "title title title"
        "tour1 tour2 tour3"
        "tour4 tour6 tour5";
    gap: 1.2em
}
.popular-pilgrimage-tours article {
    border: 1px solid #F58E03;
    border-radius: 0.5em;
    padding: 0.8em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center
}
.popular-pilgrimage-tours article h3 {
    text-align: center;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    background-color: #F58E03;
    border-radius: 0.5em;
    padding: 0.5em;
}
.popular-pilgrimage-tours article h3 a {
    color: #000;
}
.popular-pilgrimage-tours article p {
    text-align: justify;
}
.popular-pilgrimage-title {
    grid-area: title;
    text-align: center;
}
.tour-item1 {
    grid-area: tour1;
}
.tour-item2 {
    grid-area: tour2;
}
.tour-item3 {
    grid-area: tour3;
}
.tour-item4 {
    grid-area: tour4;
}
.tour-item5 {
    grid-area: tour5;
}
.tour-item6 {
    grid-area: tour6;
    /*visibility: hidden;*/
}
.sacred-sites-section {
    grid-area: sacred
}
.who-for-section {
    grid-area: who
}
.what-to-expect-section {
    grid-area: what
}
.priests-support-section {
    grid-area: priest
}
.custom-pilgrimages-section {
    grid-area: custom
}
.why-mexico-section {
    grid-area: mexico
}
.faq-section {
    grid-area: faq;
    margin-top: 0.2em
}
.final-cta-section {
    grid-area: cta
}
.aside {
    grid-area: aside
}
.pilgrimage-tour-page {
    position: relative;
    z-index: 1;
    width: 90%;
    margin-top: 68px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 1.5em;
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr 0.9fr 1.2fr;
    grid-template-areas:
        "hero hero hero hero hero"
        "why why why why aside"
        "video video testimonials testimonials aside"
        "popular popular popular popular aside"
        "what what what what aside"
        "who who custom custom aside"
        "priest priest mexico mexico aside"
        "cta cta cta cta aside"
        "faq faq faq faq faq"
    ;
    gap: 1em;
}
/*SLIDER*/
.slider {
    width: 90%;
    margin: auto;
}
.slider img {
    width: 100%;
    border: 1px solid #459D37;
}
.tour-cta {
    text-align: center;
    width: 25%;
    background: #F58E03;
    margin: auto;
    border-radius: 0.5em;
    -webkit-transition-duration: 0.4s;
    -o-transition-duration: 0.4s;
    transition-duration: 0.4s;
}
.tour-cta a {
    display: block;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 0.5em;
}
.tour-cta:hover {
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.button {
    background: #F58E03;
    width: 85%;
    border-radius: 0.5em;
    -webkit-transition-duration: 0.4s;
    -o-transition-duration: 0.4s;
    transition-duration: 0.4s;
    flex-grow: 0;
    margin-top: auto;
}
.button a {
    display: block;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 0.5em;
}
.button:hover {
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    /*box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);*/
}
.popular-pilgrimage-tours ul {
    margin-bottom: 1em;
}
.img-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center; /* centra horizontalmente */
    height: 100%; /* o 100vh, o la altura que necesites */
}
.img-wrapper img {
    max-width: 100%;
    height: auto;
}
/*FAQ SECTION*/
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: system-ui, sans-serif;
}
.faq-title {
    text-align: center;
    font-size: 2em;
    margin-top: -1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
}
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
.faq-question {
    width: 100%;
    background-color: #FFFFFF;
    border: none;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #FFFFFF;
}
.faq-answer p {
    margin: 15px 0 0;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-item.active .faq-icon {
    background-color: #FFFFFF;
    transform: rotate(45deg);
}
/*VIDEO CLASES
/* Thumbnail estilizado */
.video-thumbnail {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.thumbnail-img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    color: #c62828;
    font-size: 48px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}
.video-thumbnail:hover .play-button {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}
/* Modal móvil */
.mobile-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999999 !important;
}
.mobile-video-modal.show {
    opacity: 1;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    background: #000;
    padding: 10px;
    border-radius: 10px;
}
.close-modal {
    color: #fff;
    font-size: 32px;
    float: right;
    cursor: pointer;
    margin-bottom: 10px;
}
.testimonials-wrapper em {
    display: inline-block;
    font-size: 0.8em;
    margin-top: 0.8em;
    text-align: justify;
}
/*TESTIMONIALS*/
.testimonials-wrapper {
    width: 100%;
}
.testimonials-wrapper em {
    display: inline-block;
    font-size: 0.8em;
    margin-top: 0.8em;
    text-align: justify;
}
.pilgrimage-testimonials {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.testimonial-box {
    position: relative;
    background-color: #f5f3f0 !important;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: -2px 4px 12px 13px rgba(0, 0, 0, 0.05);
    min-height: 280px;
    overflow: hidden;
}
.testimonial-text {
    font-size: 1rem;
    line-height: 1.25;
    color: #000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-text.is-active {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-author {
    margin-top: 10px;
    font-weight: 600;
    color: #222;
}
.testimonial-meta {
    font-size: 0.85rem;
    color: #777;
}
.testimonial-indicators {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}
.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: background 0.3s ease, transform 0.3s ease;
}
.indicator-dot.active {
    background: #ff7a3c;
    transform: scale(1.2);
}
/*ASIDE*/
aside {
    text-align: center;
    border: 1px solid #459D37;
    background: #CCC;
}
aside h2 {
    font-size: 1.1em;
    margin-top: 0;
    background: #459D37;
    height: auto;
    min-height: 3em;
    padding: 0.15em;
    width: 100%;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 0.5em;
}
aside h3 {
    text-align: center;
    padding-left: 0.4em;
    padding-right: 0.4em
}
aside p {
    text-align: left;
    padding: .5em;
    font-size: 0.90em;
}
aside em {
    font-weight: 600;
    display: block;
    text-align: center;
}
aside ul li {
    font-size: 0.9em;
    margin-left: -1em;
    list-style-type: disc;
    text-align: left;
    padding-right: 0.3em;
    line-height: 1.35em;
}
aside .emoj {
    margin-right: -0.6em;
}
/*FOOTER*/
.slogan {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 5;
    grid-area: slogan;
}
.asta {
    -ms-grid-row: 3;
    -ms-grid-column: 5;
    grid-area: asta;
}
.address {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-area: address;
}
.copy {
    -ms-grid-row: 5;
    -ms-grid-column: 1;
    -ms-grid-column-span: 5;
    grid-area: copy;
}
footer {
    margin-top: 0.5em;
    background: rgba(0, 0, 0, 0.9);
    padding: 0em;
    color: #fff;
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 0.2fr 0.3fr 0.2fr;
    grid-template-areas: 'slogan slogan slogan'
        'address address address'
        'copy copy copy';
    gap: 0em;
}
footer p {
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 0.5em
}
footer a {
    color: #fff;
}
footer img {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4em;
}
.address, .slogan, .copy {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
/*RESPONSIVE*/
/*Start Menu*/
@media (max-width: 768px) {
    h1 {
        font-size: 1.40em;
        margin-top: 0em;
        margin-bottom: 0.60em;
        margin-left: 0em;
        text-align: center;
    }
    h2 {
        font-size: 1.25em;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }
    /*Main Container*/
    .container {
        width: 100%;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: 'header'
            'main'
            'footer';
    }
    main ul {
        padding-left: 20px;
    }
    section {
        padding: 0.3em
    }
    header label {
        display: block;
    }
    * {
        font-size: 14px;
    }
    header h1 {
        display: none;
    }
    header h2 {
        display: none;
    }
    .menu {
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
    }
    .menu ul {
        display: block;
        background: #555;
    }
    .menu ul li:hover ul {
        display: none;
        position: static;
    }
    .menu a span {
        position: absolute;
        right: 5px;
    }
    .social img {
        width: 83%;
        padding-right: 5px;
    }
    #btn-menu:checked ~ .menu {
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
        transform: translateX(0%);
    }
    .menu ul ul {
        background: rgba(0, 0, 0, 0.6);
        position: static;
    }
    .menu ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
    .menu ul ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
    .menu ul ul a {
        padding: 15px 40px;
    }
    header ul li a {
        font-weight: 500;
    }
    /*End Menu*/
    .breadcrumb {
        margin-left: -0.5em;
        margin-bottom: 0.5em;
        text-align: left;
    }
    .tour-cta {
        width: 75%;
    }
    .slider {
        -ms-grid-column-align: center;
        justify-self: center;
        width: 100%;
    }
    /*SECTION*/
    .included-services {
        margin-top: 1em;
    }
    .pilgrimage-tour-page {
        grid-template-columns: 1fr;
        -ms-grid-rows: auto;
        gap: 10px;
        grid-template-areas:
            'hero'
            'why'
            'video'
            'testimonials'
            'popular'
            'what'
            'who'
            'custom'
            'priest'
            'mexico'
            'cta'
            'faq'
            'aside';
        gap: 0.5em;
    }
    .items_container {
        grid-template-columns: 1fr;
        gap: 0.5em;
    }
    .button {
        width: 75%;
    }
    .faq-item h3 {
        margin-top: 0.3em;
        margin-bottom: 0.5em;
    }
    .popular-pilgrimage-tours {
        grid-template-areas:
            "title"
            "tour1"
            "tour2"
            "tour3"
            "tour4"
            "tour5"
            "tour6";
        gap: 0.5em
    }
	
	
	.img-wrapper {    
    height: 400px;
    width: 100%;
    overflow: hidden; /* evita desbordes visibles */
}

.img-wrapper img {
    max-height: 100%; /* la clave */
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain; /* asegura que no se recorte */
}

    /*ASIDE*/
    aside ul {
        margin-left: 1.3em;
    }
    /*FOOTER*/
    footer {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        -ms-grid-rows: 0.5fr 0.5fr 0.5fr;
        grid-template-rows: 0.5fr 0.5fr 0.5fr;
        grid-template-areas: 'slogan'
            'address'
            'copy';
    }
}