/* =============================================
   SECCIONAL - Info institucional + Galería desde DB
   ============================================= */

.secc-section { padding: 40px 0 50px; }

.secc-header { text-align: center; margin-bottom: 36px; }
.secc-header-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #f0faf2; border-radius: 50%; margin-bottom: 14px; }
.secc-header-icon i { font-size: 28px; color: #0B5C21; }
.secc-header h1 { font-family: 'Lato', sans-serif; font-size: 30px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px 0; }
.secc-header p { font-size: 15px; color: #666; margin: 0 auto; max-width: 600px; }

/* =====================
   HERO: título + imagen flotante + texto
   ===================== */

.secc-hero {
    margin-bottom: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 32px 36px 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.secc-hero-title {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0B5C21;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8f5ea;
}

.secc-hero-content {
    overflow: hidden; /* clearfix */
}

.secc-hero-img {
    float: left;
    width: 380px;
    margin: 0 28px 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.secc-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.secc-hero-body {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
}

.secc-hero-body p { margin-bottom: 8px; }

.secc-text-heading {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0B5C21;
    margin: 20px 0 10px 0;
}

/* =====================
   GALERÍA
   ===================== */

.secc-gallery-section { margin-top: 10px; }

.secc-gallery-title {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Filtros */
.secc-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }

.secc-filter-btn {
    padding: 9px 22px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.secc-filter-btn:hover { border-color: #0B5C21; color: #0B5C21; }
.secc-filter-btn.active { background: #0B5C21; color: #fff; border-color: #0B5C21; }

/* Grid de fotos con efecto masonry visual */
.secc-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.secc-photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.secc-photo-item.hidden { display: none; }

.secc-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secc-photo-item:hover img { transform: scale(1.08); }

/* Overlay con efecto */
.secc-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,92,33,0.7) 0%, rgba(11,92,33,0) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 14px;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.secc-photo-item:hover .secc-photo-overlay { opacity: 1; }

.secc-photo-overlay i {
    color: #fff;
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    transition: transform 0.3s;
}

.secc-photo-item:hover .secc-photo-overlay i { transform: translate(-50%, -50%) scale(1); }

.secc-photo-overlay span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Contador */
.secc-photo-count { text-align: center; margin-top: 16px; font-size: 13px; color: #888; }

/* =====================
   DETALLE EN LIGHTBOX
   ===================== */

.secc-lb-detail {
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 1100px) {
    .secc-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .secc-hero { padding: 24px; }
    .secc-hero-img { width: 300px; margin-right: 20px; }
    .secc-hero-title { font-size: 21px; }
    .secc-photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .secc-section { padding: 24px 0 36px; }
    .secc-header h1 { font-size: 22px; }
    .secc-hero { padding: 18px; margin-bottom: 32px; }
    .secc-hero-title { font-size: 18px; padding-bottom: 12px; margin-bottom: 16px; }
    /* En móvil imagen arriba centrada, texto abajo */
    .secc-hero-img {
        float: none;
        width: 100%;
        max-width: 360px;
        margin: 0 auto 16px auto;
    }
    .secc-hero-body { font-size: 13px; }
    .secc-text-heading { font-size: 16px; }
    .secc-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .secc-filter-btn { padding: 7px 14px; font-size: 12px; }
    .secc-filters { gap: 6px; }
    .secc-gallery-title { font-size: 20px; }
    .secc-lb-detail { font-size: 12px; padding: 8px 14px; }
}
