﻿.pcl-container {
    margin-top: 78px;
    padding: 0rem 0rem;
    background-color: var(--white);
    color: var(--gray-950);
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.pcl-header {
    max-width: 72rem;
    margin: 0;
    padding: 0rem 0rem 0rem;
}

/*    .pcl-header h1 {
        font-size: 1.875rem;
        font-weight: 700;
        color: var(--gray-900);
        font-family: 'Bree Serif', serif;
    }*/

.pcl-header-text {
    font-size: 1.125rem;
    color: var(--principal);
    text-decoration: underline;
    margin-top: 0.5rem;
}

/* Gallery Section */
.pcl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.pcl-image-container.first-large {
    grid-row: span 2;
}

.pcl-image-container {
    position: relative;
}

.pcl-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pcl-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #1f2937;
}

.pcl-gallery-button {
    position: absolute;
    background-color: white;
    color: var(--principal);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--principal);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
}

.pcl-button-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.show-on-desktop {
    top: 0.5rem;
    right: 0.5rem;
    display: block;
}

.show-on-mobile {
    bottom: 0.5rem;
    right: 0.5rem;
    display: none;
}


/* Pantallas pequeñas: estilo Imagen_2 */
@media (max-width: 375px), (max-height: 812px) {
    .pcl-gallery-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
        grid-template-rows: auto auto; /* Dos filas */
        gap: 0.75rem;
    }

    /* Imagen 1 ocupa toda la primera fila */
    .pcl-image-container.first-large {
        grid-column: 1 / span 2; /* Ocupa ambas columnas */
        grid-row: 1;
    }

    /* Imagen 2 ocupa la primera columna de la segunda fila */
    .pcl-image-container:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    /* Imagen 3 ocupa la segunda columna de la segunda fila */
    .pcl-image-container:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .pcl-gallery-button {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .show-on-desktop {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }
}



/* Main Content */
.pcl-main-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pcl-main-content {
        max-width: 64rem;
        margin: 0 auto;
        padding: 0 1rem;
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 767px) {
    .pcl-main-content {
        width: 100%;
        padding: 0.5rem;
        margin: 0;
    }
}
.pcl-description-wrapper {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: justify;
}

.pcl-description-wrapper h2 {
    font-size: 1.150rem;
    color: var(--gray-950);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: justify;
}


.pcl-main-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pcl-activities-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #374151;
}

    .pcl-activities-list li {
        margin-bottom: 0.25rem;
    }

/* Contact Form */
.pcl-contact-card {
    background-color: var(--gray-100);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    align-self: start;
}

    .pcl-contact-card h3 { 
        font-size: 1.25rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }
.pcl-contact-card-title {
    white-space: nowrap;
    overflow: hidden;
}
.pcl-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pcl-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.pcl-contact-text {
    color: #374151;
}

.pcl-contact-link {
    color: var(--principal);
    text-decoration: underline;
}

    .pcl-contact-link:hover {
        color: var(--principal-hover);
    }

.pcl-contact-button {
    width: 100%;
    background-color: var(--principal);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .pcl-contact-button:hover {
        background-color: var(--principal-hover);
    }

.pcl-gallery-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 2rem; 
}

.pcl-gallery-modal-close {
    position: static;
    align-self: flex-end;
    margin: 1.5rem 2rem 0 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
}

.pcl-gallery-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: none !important;
    box-shadow: none !important;
    padding: 0;
}

.pcl-gallery-modal-nav-row {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.pcl-gallery-modal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.pcl-gallery-modal-img {
    max-width: 80vw;
    max-height: 60vh;
    border-radius: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: #fff;
    display: block;
}

.pcl-gallery-modal-nav {
    background: rgba(0,0,0,0.15);
    border: none;
    border-radius: 50%;
    padding: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .pcl-gallery-modal-nav:hover {
        background: rgba(255,255,255,0.15);
    }

.pcl-gallery-modal-index {
    display: flex;
    align-items: center; 
    justify-content: center; 
    color: #FFFFFF8F;
    font-size: 0.7rem;
    width: 100%;
    text-align: center;
    gap: 0.3rem; 
}
.pcl-gallery-modal-index-actual {
    color: white !important;
}
.pcl-gallery-modal-caption {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    width: 100%;
    font-family: "Bree Serif";
}

@media (max-width: 400px) {
    .pcl-gallery-modal {
        gap: 1.2rem;
        padding: 0;
    }

    .pcl-gallery-modal-content {
        gap: 1rem;
        width: 100vw;
        min-width: 0;
        min-height: 0;
        padding: 0;
    }

    .pcl-gallery-modal-image-wrapper {
        gap: 0;
        width: 100vw;
        margin-top: 0;
    }

    .pcl-gallery-modal-img {
        width: 90vw;
        max-width: 90vw;
        max-height: 200px;
        border-radius: 0.7rem;
        margin: 0 auto;
        object-fit: cover;
    }

    .pcl-gallery-modal-nav-row {
        display: flex !important;
        margin-bottom: 0rem;
    }

    .pcl-gallery-modal-nav {
        position: static;
        margin: 0;
        width: 48px;
        height: 48px;
    }

    .pcl-gallery-modal-close {
        margin: 0rem 1.2rem 0 0;
        font-size: 1rem;
    }
}