/* ========================================================
   ESTILOS CSS PARA ORDENANZAS MUNICIPALES
   Color principal: #004d99 (azul corporativo igual que Acuerdos de Concejo)
   ======================================================== */
:root {
    --primary-color: #004d99;
    --primary-dark: #003366;
    --primary-light: #3399ff;
    --secondary-color: #ff9900;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

/* HERO SECTION - PORTADA MODIFICADA */
.hero-normas {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 77, 153, 0.7)), 
                url('../img/normas/portada-normas.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: -20px;
    position: relative;
}

.hero-normas .hero-overlay {
    width: 100%;
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.hero-normas .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-normas .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-normas .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-normas .hero-breadcrumb {
    font-size: 1.1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-normas .hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-normas .hero-breadcrumb a:hover {
    color: var(--secondary-color);
}

.hero-normas .hero-breadcrumb span {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-normas .hero-breadcrumb i {
    margin: 0 10px;
    opacity: 0.7;
}

/* CONTENIDO PRINCIPAL */
.normas-container {
    padding: 3rem 0;
    background: var(--bg-light);
}

.normas-container .container {
    max-width: 900px;
    margin: 0 auto;
}

.seccion-header {
    text-align: center;
    margin-bottom: 3rem;
}

.seccion-titulo {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.seccion-descripcion {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Norma específica - CUADRO CENTRADO */
.normas-grid {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.norma-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    max-width: 850px;
    width: 100%;
}

.norma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.norma-imagen {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.norma-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.norma-imagen:hover img {
    transform: scale(1.05);
}

.norma-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.norma-contenido {
    padding: 2.5rem;
}

.norma-titulo {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.norma-periodo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.norma-periodo i {
    color: var(--secondary-color);
}

.norma-descripcion {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.norma-detalles {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.detalle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.detalle-item i {
    color: var(--secondary-color);
}

.btn-norma {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-norma:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Información adicional */
.info-adicional {
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    border-left: 5px solid var(--primary-color);
}

.info-icono {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-contenido h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-contenido p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.lista-ordenanzas {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.lista-ordenanzas li {
    color: var(--text-dark);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
}

.lista-ordenanzas i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.info-contacto {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-contacto p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    margin: 0;
}

.info-contacto i {
    color: var(--secondary-color);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-normas .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-normas .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .normas-container .container {
        max-width: 95%;
    }
    
    .seccion-titulo {
        font-size: 2.2rem;
    }
    
    .norma-titulo {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-normas .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-normas .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-normas .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .norma-card {
        max-width: 95%;
    }
    
    .norma-contenido {
        padding: 1.5rem;
    }
    
    .info-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .seccion-titulo {
        font-size: 1.8rem;
    }
    
    .norma-detalles {
        flex-direction: column;
        gap: 10px;
    }
    
    .lista-ordenanzas li {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-normas .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-normas .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-normas {
        min-height: 50vh;
    }
    
    .hero-normas .hero-breadcrumb {
        font-size: 0.9rem;
    }
    
    .normas-grid {
        margin: 1rem 0;
    }
    
    .seccion-titulo {
        font-size: 1.6rem;
    }
    
    .norma-titulo {
        font-size: 1.5rem;
    }
    
    .btn-norma {
        width: 100%;
        justify-content: center;
    }
    
    .info-contacto {
        flex-direction: column;
        gap: 10px;
    }
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-normas .hero-content {
    animation: fadeInUp 1s ease-out;
}

.norma-card {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.info-card {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}