/* ==========================================
   OBRAS PÚBLICAS - H. AYUNTAMIENTO DE ATZALAN
   ========================================== */

/* HERO OBRAS PUBLICAS */
.obras-hero {
    background: linear-gradient(135deg, #0d3b2e 0%, #1a5e45 100%);
    position: relative;
    padding: 140px 0 160px 0;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.obras-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.obras-hero h1 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #D4AF37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.obras-hero p {
    font-weight: 400;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    color: #e8f5e9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #f8f9fa;
}

/* TARJETAS DE EVIDENCIAS */
.evidencia-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.evidencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.evidencia-img-wrapper {
    height: 160px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .evidencia-img-wrapper {
        height: 200px;
    }
}

.evidencia-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evidencia-card:hover .evidencia-img-wrapper img {
    transform: scale(1.05);
}

.evidencia-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(191, 149, 63, 0.95);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ACORDEONES DE OBRAS */
.accordion-obras .accordion-button {
    background-color: #ffffff;
    color: #212529;
    font-weight: 600;
    border-radius: 8px !important;
    border: 1px solid #dee2e6;
}

.accordion-obras .accordion-button:not(.collapsed) {
    background-color: #fbf5b7;
    color: #0d3b2e;
    box-shadow: inset 0 -2px 0 #b38728;
    border-color: #e0d08b;
}

.accordion-obras .accordion-item {
    border: none;
    margin-bottom: 12px;
    overflow: hidden;
}

.hover-elevate {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

/* DETALLE DE OBRA */
.obra-header {
    background-color: #0d3b2e;
    color: #ffffff;
    padding: 60px 0;
    border-bottom: 5px solid #D4AF37;
}

.obra-title {
    font-weight: 800;
    color: #D4AF37;
}

.galeria-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.galeria-img:hover {
    transform: scale(1.02);
}

.contenido-obra {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #4a4a4a;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
