/*
 Theme Name:   JUMAPAM Theme
 Theme URI:    https://jumapam.gob.mx
 Description:  Tema hijo de GeneratePress para JUMAPAM - Junta Municipal de Agua Potable y Alcantarillado de Mazatlán
 Author:       JUMAPAM
 Author URI:   https://jumapam.gob.mx
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  jumapam-theme
*/

/* ==========================================================================
   VARIABLES CSS - Paleta de colores JUMAPAM
   ========================================================================== */
:root {
    --jumapam-azul-servicios: #1a98e2;
    --jumapam-azul-titulos: #365ba6;
    --jumapam-fondo-gris-azulado: #EFF7FC;
    --jumapam-morado-acento: #3b297b;
    --jumapam-verde-acento: #4eb34d;
    --jumapam-blanco: #ffffff;
    --jumapam-gris-texto: #858585;
    --jumapam-negro: #333333;
}

/* ==========================================================================
   OVERRIDES GENERATEPRESS
   ========================================================================== */
.grid-container {
    max-width: 100% !important;
}

.site-content {
    display: block !important;
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--jumapam-negro);
    background-color: var(--jumapam-blanco) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--jumapam-azul-titulos);
    font-weight: 700;
}

/* ==========================================================================
   HEADER JUMAPAM - Diseño Profesional
   ========================================================================== */
.jumapam-header {
    background-color: var(--jumapam-blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.jumapam-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 20px;
}

/* Logo */
.jumapam-header-logo {
    flex-shrink: 0;
}

.jumapam-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.jumapam-logo-img {
    height: 50px;
    width: auto;
    max-width: 280px;
}

/* Navegación Principal */
.jumapam-main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.jumapam-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.jumapam-menu li {
    position: relative;
}

.jumapam-menu > li > a {
    display: block;
    padding: 12px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--jumapam-negro);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.jumapam-menu > li > a:hover,
.jumapam-menu > li.current-menu-item > a {
    color: var(--jumapam-azul-servicios);
}

/* Submenús */
.jumapam-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--jumapam-blanco);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    min-width: 250px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.jumapam-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jumapam-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--jumapam-negro);
    text-decoration: none;
    transition: all 0.3s ease;
}

.jumapam-menu .sub-menu li a:hover {
    background-color: var(--jumapam-fondo-gris-azulado);
    color: var(--jumapam-azul-servicios);
    padding-left: 25px;
}

/* Botón Pago en Línea */
.jumapam-menu .menu-item-pago-linea > a,
.jumapam-menu li:last-child > a[href*="pago"] {
    background-color: var(--jumapam-azul-servicios) !important;
    color: var(--jumapam-blanco) !important;
    border-radius: 5px;
    padding: 10px 20px !important;
    margin-left: 10px;
}

.jumapam-menu .menu-item-pago-linea > a:hover,
.jumapam-menu li:last-child > a[href*="pago"]:hover {
    background-color: var(--jumapam-azul-titulos) !important;
}

/* Búsqueda */
.jumapam-header-search {
    position: relative;
    flex-shrink: 0;
}

.jumapam-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--jumapam-negro);
    transition: color 0.3s ease;
}

.jumapam-search-toggle:hover {
    color: var(--jumapam-azul-servicios);
}

.jumapam-search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--jumapam-blanco);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 15px;
    min-width: 300px;
    z-index: 1000;
}

.jumapam-search-form-container input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Mobile Toggle */
.jumapam-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
}

.jumapam-mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--jumapam-negro);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.jumapam-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.jumapam-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.jumapam-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Header */
@media (max-width: 1200px) {
    .jumapam-menu > li > a {
        padding: 12px 10px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .jumapam-mobile-toggle {
        display: flex;
    }

    .jumapam-main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--jumapam-blanco);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 9998;
    }

    .jumapam-main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .jumapam-menu {
        flex-direction: column;
        gap: 0;
    }

    .jumapam-menu li {
        width: 100%;
    }

    .jumapam-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--jumapam-fondo-gris-azulado);
    }

    .jumapam-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: var(--jumapam-fondo-gris-azulado);
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        padding: 0;
    }

    .jumapam-menu .sub-menu li a {
        padding-left: 40px;
    }

    .jumapam-menu .menu-item-pago-linea > a,
    .jumapam-menu li:last-child > a[href*="pago"] {
        margin: 15px 20px;
        text-align: center;
        display: block;
    }
}

/* Ocultar header de GeneratePress por defecto */
.site-header:not(.jumapam-header) {
    display: none !important;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.wp-block-button__link,
button,
input[type="submit"],
.button {
    background-color: var(--jumapam-azul-servicios);
    color: var(--jumapam-blanco);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
.button:hover {
    background-color: var(--jumapam-azul-titulos);
    color: var(--jumapam-blanco);
}

/* Botón secundario */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid var(--jumapam-azul-servicios);
    color: var(--jumapam-azul-servicios);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--jumapam-azul-servicios);
    color: var(--jumapam-blanco);
}

/* ==========================================================================
   TARJETAS DE SERVICIOS
   ========================================================================== */
.servicio-card {
    background-color: var(--jumapam-fondo-gris-azulado);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 152, 226, 0.2);
}

.servicio-card h3 {
    color: var(--jumapam-azul-titulos);
    font-size: 18px;
    margin-top: 15px;
}

.servicio-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.servicio-card .icon svg {
    fill: var(--jumapam-azul-servicios);
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section-gris {
    background-color: var(--jumapam-fondo-gris-azulado);
}

.section-azul {
    background: linear-gradient(135deg, var(--jumapam-azul-titulos) 0%, var(--jumapam-azul-servicios) 100%);
    color: var(--jumapam-blanco);
}

.section-azul h2,
.section-azul h3 {
    color: var(--jumapam-blanco);
}

/* ==========================================================================
   ENLACES
   ========================================================================== */
a {
    color: var(--jumapam-azul-servicios);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--jumapam-azul-titulos);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--jumapam-azul-titulos) 23%, var(--jumapam-azul-servicios) 100%);
    color: var(--jumapam-blanco);
}

.site-footer a {
    color: var(--jumapam-blanco);
}

.site-footer a:hover {
    color: var(--jumapam-fondo-gris-azulado);
}

.site-footer h3,
.site-footer h4 {
    color: var(--jumapam-blanco);
}

.footer-logos img {
    max-height: 50px;
    margin: 10px;
    filter: brightness(0) invert(1);
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--jumapam-blanco);
    color: var(--jumapam-azul-servicios);
}

/* ==========================================================================
   ACORDEONES (para ubicaciones)
   ========================================================================== */
.wp-block-details {
    border: 1px solid var(--jumapam-azul-servicios);
    border-radius: 5px;
    margin-bottom: 10px;
}

.wp-block-details summary {
    background-color: var(--jumapam-fondo-gris-azulado);
    padding: 15px 20px;
    font-weight: 600;
    color: var(--jumapam-azul-titulos);
    cursor: pointer;
}

.wp-block-details[open] summary {
    background-color: var(--jumapam-azul-servicios);
    color: var(--jumapam-blanco);
}

/* ==========================================================================
   BLOG / NOTICIAS
   ========================================================================== */
.post-card {
    background-color: var(--jumapam-blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.post-card .post-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-date {
    color: var(--jumapam-gris-texto);
    font-size: 14px;
}

.post-card .post-title {
    color: var(--jumapam-azul-titulos);
    font-size: 18px;
    margin: 10px 0;
}

.post-card .post-title:hover {
    color: var(--jumapam-azul-servicios);
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    width: 100%;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--jumapam-azul-servicios);
    outline: none;
    box-shadow: 0 0 5px rgba(26, 152, 226, 0.3);
}

/* ==========================================================================
   HEADER STICKY
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--jumapam-blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN SECUNDARIA
   ========================================================================== */
.jumapam-barra-secundaria {
    background: var(--jumapam-azul-titulos);
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.jumapam-barra-secundaria a {
    font-size: 14px;
    color: var(--jumapam-blanco);
    margin: 0;
    padding: 0 20px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    line-height: 60px;
}

.jumapam-barra-secundaria a:last-child {
    border-right: none;
}

.jumapam-barra-secundaria a:hover {
    color: var(--jumapam-azul-servicios);
    text-decoration: none;
}

/* ==========================================================================
   TÍTULOS DE SECCIÓN
   ========================================================================== */
.jumapam-section-title {
    font-size: 42px;
    color: var(--jumapam-azul-titulos);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.jumapam-section-title-white {
    color: var(--jumapam-blanco);
}

/* ==========================================================================
   GRID DE SERVICIOS
   ========================================================================== */
.jumapam-servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.jumapam-servicio-card {
    background-color: var(--jumapam-fondo-gris-azulado);
    padding: 30px 20px;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    border-radius: 10px;
    text-decoration: none;
}

.jumapam-servicio-card:hover {
    text-decoration: none !important;
    background: linear-gradient(135deg, var(--jumapam-azul-titulos) 23%, var(--jumapam-azul-servicios) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 152, 226, 0.3);
}

.jumapam-servicio-card img,
.jumapam-servicio-card svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.jumapam-servicio-card:hover img {
    filter: brightness(0) invert(1);
}

.jumapam-servicio-card .servicio-titulo {
    color: var(--jumapam-azul-servicios);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    transition: all 0.3s ease;
}

.jumapam-servicio-card:hover .servicio-titulo {
    color: var(--jumapam-blanco);
}

/* ==========================================================================
   SECCIÓN NOTICIAS - Diseño Mejorado
   ========================================================================== */
.jumapam-noticias-section {
    padding: 80px 20px;
    background-color: #fff;
}

.jumapam-noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.jumapam-noticia-card {
    background-color: var(--jumapam-blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.jumapam-noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 152, 226, 0.2);
}

/* Contenedor de imagen con overlay */
.jumapam-noticia-card > a:first-child {
    position: relative;
    display: block;
    overflow: hidden;
}

.jumapam-noticia-card > a:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(54, 91, 166, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jumapam-noticia-card:hover > a:first-child::after {
    opacity: 1;
}

.jumapam-noticia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jumapam-noticia-card:hover img {
    transform: scale(1.05);
}

.jumapam-noticia-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.jumapam-noticia-fecha {
    color: var(--jumapam-azul-servicios);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jumapam-noticia-fecha::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--jumapam-azul-servicios);
}

.jumapam-noticia-titulo {
    color: var(--jumapam-azul-titulos);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.jumapam-noticia-titulo a {
    color: inherit;
    text-decoration: none;
}

.jumapam-noticia-titulo:hover,
.jumapam-noticia-titulo a:hover {
    color: var(--jumapam-azul-servicios);
}

/* Botón "Leer más" implícito en hover */
.jumapam-noticia-card::after {
    content: 'Leer más →';
    display: block;
    padding: 0 25px 20px;
    color: var(--jumapam-azul-servicios);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.jumapam-noticia-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ARTÍCULOS DE INTERÉS - Grid Full Width
   ========================================================================== */
.jumapam-articulos-section {
    background: #f2f2f2;
    padding: 60px 60px;
    width: 100%;
}

.jumapam-articulos-section .jumapam-section-title {
    padding: 0 20px;
    margin-bottom: 30px;
}

.jumapam-articulos-grid {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
    justify-content: center;
}

.jumapam-articulo-item {
    flex: 1 !important;
    height: 350px;
    overflow: hidden;
    position: relative;
    min-width: 0;
    max-width: 250px;
}

.jumapam-articulo-link,
.jumapam-articulo-link:visited,
.jumapam-articulo-link:focus {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    overflow: hidden;
}

.jumapam-articulo-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
    display: block !important;
}

.jumapam-articulo-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(54, 91, 166, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 25px !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.jumapam-articulo-link:hover .jumapam-articulo-overlay {
    opacity: 1;
}

.jumapam-articulo-link:hover img {
    transform: scale(1.05);
}

.jumapam-articulo-overlay h3 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.jumapam-articulo-overlay p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px !important;
    margin: 0 0 25px 0 !important;
    line-height: 1.5 !important;
}

.jumapam-articulo-btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    border: 2px solid #fff !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.jumapam-articulo-btn:hover {
    background: #fff !important;
    color: var(--jumapam-azul-titulos) !important;
}

/* Responsive Artículos */
@media (max-width: 1200px) {
    .jumapam-articulo-item:nth-child(5) {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .jumapam-articulo-item:nth-child(4) {
        display: none !important;
    }

    .jumapam-articulo-item {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .jumapam-articulos-grid {
        flex-wrap: wrap !important;
    }

    .jumapam-articulo-item {
        flex: 0 0 50% !important;
        height: 350px;
    }

    .jumapam-articulo-item:nth-child(3) {
        display: none !important;
    }

    .jumapam-articulo-overlay h3 {
        font-size: 18px !important;
    }

    .jumapam-articulo-overlay p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .jumapam-articulo-item {
        flex: 0 0 100% !important;
        height: 300px;
    }

    .jumapam-articulo-item:nth-child(2) {
        display: none !important;
    }
}

/* ==========================================================================
   DOCUMENTOS DE INTERÉS
   ========================================================================== */
.jumapam-documentos-section {
    background: #fff;
    padding: 60px 20px;
}

.jumapam-documentos-section .jumapam-section-title {
    color: var(--jumapam-azul-servicios);
}

.jumapam-documentos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.jumapam-documento-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 40px;
    font-size: 16px;
    color: var(--jumapam-azul-servicios);
    text-decoration: none;
    font-weight: 500;
    border-right: 3px solid #f5a623;
    transition: color 0.3s ease;
}

.jumapam-documento-btn:last-child {
    border-right: none;
}

/* ==========================================================================
   SLIDER WRAPPER
   ========================================================================== */
.jumapam-slider-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.jumapam-slider-wrapper .n2-ss-slider {
    margin: 0 !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .jumapam-servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jumapam-noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jumapam-section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .servicio-card {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .jumapam-servicios-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .jumapam-noticias-grid {
        grid-template-columns: 1fr;
    }

    .jumapam-barra-secundaria {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .jumapam-barra-secundaria a {
        padding: 10px 15px;
        line-height: 1.5;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: center;
    }

    .jumapam-documentos-grid {
        flex-direction: column;
        gap: 15px;
    }

    .jumapam-documento-btn {
        border-right: none;
        border-bottom: 2px solid #f5a623;
        padding: 15px 30px;
        width: 100%;
    }

    .jumapam-documento-btn:last-child {
        border-bottom: none;
    }

    .jumapam-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   HOMEPAGE TEMPLATE
   ========================================================================== */
.jumapam-homepage {
    padding: 0;
    margin: 0;
}

.jumapam-homepage .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.jumapam-servicios-section {
    background-color: var(--jumapam-blanco);
    padding: 60px 0;
}

.jumapam-barra-secundaria-wrapper {
    margin: 0;
    padding: 0;
}

/* Ajustes para GeneratePress */
.site-content {
    padding: 0 !important;
}

.separate-containers .site-main {
    margin: 0;
}

.jumapam-homepage .site-main {
    margin: 0;
    padding: 0;
}

/* Remove default content padding for homepage */
body.page-template-front-page .site-content,
body.home .site-content {
    padding-top: 0 !important;
}

body.page-template-front-page .entry-content,
body.home .entry-content {
    margin: 0;
    padding: 0;
}

/* Full width sections */
.jumapam-slider-wrapper,
.jumapam-barra-secundaria-wrapper,
.jumapam-documentos-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
.text-azul-servicios {
    color: var(--jumapam-azul-servicios);
}

.text-azul-titulos {
    color: var(--jumapam-azul-titulos);
}

.bg-azul-servicios {
    background-color: var(--jumapam-azul-servicios);
}

.bg-azul-titulos {
    background-color: var(--jumapam-azul-titulos);
}

.bg-gris-azulado {
    background-color: var(--jumapam-fondo-gris-azulado);
}

.gradient-azul {
    background: linear-gradient(135deg, var(--jumapam-azul-titulos) 23%, var(--jumapam-azul-servicios) 100%);
}

/* ==========================================================================
   ENTRADAS/NOTICIAS - DISEÑO EDITORIAL MODERNO (90% ancho)
   ========================================================================== */

/* Variables para diseño editorial */
body.single {
    --editorial-content-width: min(90vw, 1400px);
    --editorial-text-width: min(85vw, 850px);
    --editorial-spacing: clamp(3rem, 6vw, 5rem);
    --editorial-title-size: clamp(2.2rem, 5vw, 3.2rem);
    --editorial-body-size: 1.125rem;
    --editorial-shadow: 0 20px 60px rgba(54, 91, 166, 0.12);
}

/* ===== CONTENEDOR PRINCIPAL - 90% ANCHO ===== */
body.single .site-content {
    padding-top: 0 !important;
    max-width: var(--editorial-content-width);
    margin: 0 auto;
}

body.single .content-area {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.single .inside-article {
    max-width: none;
    padding: 0;
}

/* ===== HEADER DEL ARTÍCULO ===== */
body.single .entry-header {
    text-align: center;
    padding: var(--editorial-spacing) 5%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Badge de categoría */
body.single .cat-links {
    display: block;
    margin-bottom: 1.5rem;
}

body.single .cat-links a {
    display: inline-block;
    background: linear-gradient(135deg, var(--jumapam-azul-titulos), var(--jumapam-azul-servicios));
    color: var(--jumapam-blanco) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 152, 226, 0.3);
}

body.single .cat-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 152, 226, 0.4);
}

/* Título hero */
body.single .entry-title {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--editorial-title-size);
    font-weight: 800;
    line-height: 1.15;
    color: var(--jumapam-azul-titulos);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

/* Metadatos estilizados */
body.single .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--jumapam-gris-texto);
    font-size: 0.95rem;
    font-weight: 500;
}

body.single .entry-meta a {
    color: var(--jumapam-azul-servicios);
    text-decoration: none;
}

body.single .entry-meta a:hover {
    color: var(--jumapam-azul-titulos);
}

/* ===== IMAGEN DESTACADA HERO - ANCHO COMPLETO ===== */
body.single .post-image,
body.single .featured-image,
body.single .page-header-image-single {
    width: 100%;
    max-width: var(--editorial-content-width);
    margin: 0 auto var(--editorial-spacing);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--editorial-shadow);
}

body.single .post-image img,
body.single .featured-image img,
body.single .page-header-image-single img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== CONTENIDO DEL ARTÍCULO - TIPOGRAFÍA EDITORIAL ===== */
body.single .entry-content {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 5%;
    font-size: var(--editorial-body-size);
    line-height: 1.85;
    color: var(--jumapam-negro);
}

/* Primer párrafo destacado (lead) */
body.single .entry-content > p:first-of-type {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #444;
    font-weight: 400;
}

/* Drop cap - letra inicial decorativa */
body.single .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.75;
    margin: 0.1em 0.15em 0 0;
    color: var(--jumapam-azul-titulos);
}

/* Párrafos */
body.single .entry-content p {
    margin-bottom: 1.75em;
}

/* Subtítulos H2 */
body.single .entry-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--jumapam-azul-titulos);
    margin: 3rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--jumapam-fondo-gris-azulado);
}

/* Subtítulos H3 */
body.single .entry-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jumapam-azul-servicios);
    margin: 2.5rem 0 1rem;
}

/* Imágenes dentro del contenido */
body.single .entry-content img {
    border-radius: 15px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Imágenes que rompen el contenedor (breakout) */
body.single .entry-content .alignwide,
body.single .entry-content .alignfull {
    width: calc(100% + 10vw);
    max-width: var(--editorial-content-width);
    margin-left: -5vw;
    margin-right: -5vw;
}

/* Blockquotes editoriales */
body.single .entry-content blockquote {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 2.5rem 2rem 3rem;
    background: linear-gradient(135deg, var(--jumapam-fondo-gris-azulado) 0%, rgba(239, 247, 252, 0.5) 100%);
    border-left: 5px solid var(--jumapam-azul-servicios);
    border-radius: 0 15px 15px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

body.single .entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 15px;
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--jumapam-azul-servicios);
    opacity: 0.15;
    line-height: 1;
}

/* Listas estilizadas */
body.single .entry-content ul,
body.single .entry-content ol {
    margin: 1.5rem 0 2rem 1.5rem;
}

body.single .entry-content li {
    margin-bottom: 0.85rem;
    padding-left: 0.5rem;
}

body.single .entry-content ul li::marker {
    color: var(--jumapam-azul-servicios);
    font-size: 1.2em;
}

/* Enlaces dentro del contenido */
body.single .entry-content a {
    color: var(--jumapam-azul-servicios);
    text-decoration: underline;
    text-decoration-color: rgba(26, 152, 226, 0.3);
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

body.single .entry-content a:hover {
    color: var(--jumapam-azul-titulos);
    text-decoration-color: var(--jumapam-azul-titulos);
}

/* ===== OCULTAR ELEMENTOS NO DESEADOS ===== */
body.single #right-sidebar,
body.single .sidebar,
body.single aside.widget-area,
body.single .post-author,
body.single .comments-area {
    display: none !important;
}

/* ===== FOOTER DEL ARTÍCULO ===== */
body.single .entry-footer {
    max-width: var(--editorial-text-width);
    margin: var(--editorial-spacing) auto 0;
    padding: 2rem 5% 0;
    border-top: 2px solid var(--jumapam-fondo-gris-azulado);
}

/* Tags como pills */
body.single .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

body.single .tags-links a {
    background-color: var(--jumapam-fondo-gris-azulado);
    color: var(--jumapam-azul-servicios);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.single .tags-links a:hover {
    background-color: var(--jumapam-azul-servicios);
    color: var(--jumapam-blanco);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 152, 226, 0.3);
}

/* ===== NAVEGACIÓN ENTRE ARTÍCULOS ===== */
body.single .post-navigation {
    max-width: var(--editorial-content-width);
    margin: var(--editorial-spacing) auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

body.single .nav-previous,
body.single .nav-next {
    background: var(--jumapam-fondo-gris-azulado);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

body.single .nav-previous:hover,
body.single .nav-next:hover {
    background: linear-gradient(135deg, var(--jumapam-azul-titulos), var(--jumapam-azul-servicios));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 152, 226, 0.25);
}

body.single .nav-previous:hover a,
body.single .nav-next:hover a {
    color: var(--jumapam-blanco) !important;
}

body.single .post-navigation a {
    display: block;
    font-weight: 600;
    color: var(--jumapam-azul-titulos);
    text-decoration: none;
    line-height: 1.4;
}

body.single .nav-next {
    text-align: right;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    body.single {
        --editorial-title-size: clamp(1.8rem, 4vw, 2.5rem);
        --editorial-spacing: 3rem;
    }

    body.single .entry-header {
        padding: 2.5rem 5%;
    }

    body.single .post-image img,
    body.single .featured-image img {
        max-height: 50vh;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    body.single {
        --editorial-title-size: 1.75rem;
        --editorial-body-size: 1rem;
        --editorial-spacing: 2rem;
        --editorial-text-width: 100%;
    }

    body.single .entry-title {
        line-height: 1.25;
    }

    body.single .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    body.single .entry-content {
        padding: 0 1rem;
    }

    body.single .entry-content > p:first-of-type {
        font-size: 1.1rem;
    }

    body.single .entry-content > p:first-of-type::first-letter {
        font-size: 3.5rem;
    }

    body.single .entry-content h2 {
        font-size: 1.5rem;
    }

    body.single .entry-content blockquote {
        padding: 1.5rem;
        margin: 2rem -0.5rem;
        border-radius: 0 10px 10px 0;
    }

    body.single .post-navigation {
        grid-template-columns: 1fr;
    }

    body.single .nav-next {
        text-align: left;
    }

    body.single .post-image,
    body.single .featured-image {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: none;
    }

    body.single .post-image img,
    body.single .featured-image img {
        max-height: 40vh;
        border-radius: 0;
    }
}

/* ===== RESPONSIVE - MOBILE PEQUEÑO ===== */
@media (max-width: 480px) {
    body.single .entry-title {
        font-size: 1.5rem;
    }

    body.single .cat-links a {
        font-size: 11px;
        padding: 8px 16px;
        letter-spacing: 1px;
    }

    body.single .entry-content > p:first-of-type::first-letter {
        font-size: 3rem;
    }
}

/* ==========================================================================
   FOOTER JUMAPAM - Diseño Moderno
   ========================================================================== */

/* Ocultar footer original de GeneratePress pero mostrar el personalizado */
.site-info,
.footer-widgets-container:not(:has(.jumapam-footer)) {
    display: none !important;
}

/* Asegurar que el site-footer con nuestro footer sea visible */
.site-footer:has(.jumapam-footer) {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fallback para navegadores sin :has() */
.site-footer {
    background: transparent !important;
    padding: 0 !important;
}

/* Footer principal */
.jumapam-footer {
    background: linear-gradient(135deg, var(--jumapam-azul-titulos) 0%, #4a5da8 100%);
    color: var(--jumapam-blanco);
    padding: 60px 0 0;
    margin-top: 0;
}

.jumapam-footer-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Títulos del footer */
.jumapam-footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--jumapam-blanco);
    margin-bottom: 25px;
    position: relative;
}

/* Columna Contacto */
.jumapam-footer-contacto {
    text-align: left;
}

.jumapam-footer-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--jumapam-blanco);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.jumapam-footer-link:hover {
    color: #a8d4f5;
    transform: translateX(5px);
}

.jumapam-footer-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Columna Central */
.jumapam-footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jumapam-footer-logo-main {
    margin-bottom: 30px;
}

.jumapam-footer-logo-main img {
    max-width: 180px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.jumapam-footer-instituciones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jumapam-footer-instituciones img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.jumapam-footer-instituciones img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Columna Redes Sociales */
.jumapam-footer-social {
    text-align: right;
}

.jumapam-footer-social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}

.jumapam-footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--jumapam-blanco);
    border-radius: 50%;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.jumapam-footer-social-icons a:hover {
    background: var(--jumapam-blanco);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.jumapam-footer-social-icons img {
    width: 22px;
    height: 22px;
    filter: none;
    transition: filter 0.3s ease;
}

.jumapam-footer-social-icons a:hover img {
    filter: none;
}

/* Copyright */
.jumapam-footer-copyright {
    margin-top: 50px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
}

.jumapam-footer-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .jumapam-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .jumapam-footer-center {
        grid-column: 1 / -1;
        order: -1;
    }

    .jumapam-footer-social {
        text-align: left;
    }

    .jumapam-footer-social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .jumapam-footer {
        padding: 40px 0 0;
    }

    .jumapam-footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px;
        text-align: center;
    }

    .jumapam-footer-contacto,
    .jumapam-footer-social {
        text-align: center;
    }

    .jumapam-footer-link {
        justify-content: center;
    }

    .jumapam-footer-social-icons {
        justify-content: center;
    }

    .jumapam-footer-instituciones {
        gap: 15px;
    }

    .jumapam-footer-instituciones img {
        height: 35px;
    }

    .jumapam-footer-copyright {
        padding: 15px 20px;
    }
}

/* ==========================================================================
   LAYOUT FULL-WIDTH - Ocultar sidebar en todas las páginas
   ========================================================================== */

/* Ocultar sidebar */
#right-sidebar,
.sidebar,
.widget-area.sidebar {
    display: none !important;
}

/* Contenido a ancho completo */
.site-content .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ajustar contenedor cuando hay sidebar (forzar full-width) */
body.right-sidebar .site-content .content-area,
body.left-sidebar .site-content .content-area {
    width: 100% !important;
    float: none !important;
}

/* Asegurar que el contenido interno tenga ancho adecuado */
.inside-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   WPForms Theme Integration - JUMAPAM
   ==================================== */
.wp-justific{
    text-align: justify!important;
}
/* Container */
.wpforms-container {
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    margin: 0 auto;
}
.wpforms-one-half-right{
    float:right!important;
}  

/* Form Title */
.wpforms-container .wpforms-title {
    color: var(--jumapam-azul-titulos);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Labels */
.wpforms-container .wpforms-field-label {
    color: var(--jumapam-azul-titulos);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.wpforms-container .wpforms-field-sublabel {
    color: #666;
    font-size: 12px;
}

/* Required Asterisk */
.wpforms-container .wpforms-required-label {
    color: #dc3545;
}

/* Inputs */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="url"],
.wpforms-container textarea,
.wpforms-container select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
    border-color: var(--jumapam-azul-servicios);
    box-shadow: 0 0 0 4px rgba(26, 152, 226, 0.1);
    outline: none;
}

.wpforms-container textarea {
    min-height: 120px;
    resize: vertical;
}

/* Placeholder */
.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Field Container */
.wpforms-container .wpforms-field {
    margin-bottom: 20px;
}

/* Submit Button */
.wpforms-container .wpforms-submit-container {
    margin-top: 30px;
}

.wpforms-container .wpforms-submit {
    background: linear-gradient(135deg, var(--jumapam-azul-servicios), var(--jumapam-azul-titulos));
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}

.wpforms-container .wpforms-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 152, 226, 0.3);
}

.wpforms-container .wpforms-submit:active {
    transform: translateY(0);
}
.wpforms-container .wpforms-field-row.wpforms-field-medium {
    max-width: 100%!important;
}
.wpforms-container input.wpforms-field-medium {
    max-width: 100%!important;
}
.wpforms-container select.wpforms-field-medium {
    max-width: 100%!important;
    margin: 0 !important;
}
div.wpforms-container-full:not(:empty){
    margin: 0 auto;
}
/*.wpforms-container .wpforms-field-row .wpforms-field-medium*/
/* Two Column Layout */
.wpforms-form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.wpforms-form-two-columns .wpforms-column-1,
.wpforms-form-two-columns .wpforms-column-2 {
    background: var(--jumapam-fondo-gris-azulado);
    padding: 25px;
    border-radius: 12px;
}

.wpforms-form-two-columns .wpforms-column-title {
    color: var(--jumapam-azul-titulos);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jumapam-azul-servicios);
}

@media (max-width: 768px) {
    .wpforms-form-two-columns {
        grid-template-columns: 1fr;
    }
    
    .wpforms-form-two-columns .wpforms-column-1,
    .wpforms-form-two-columns .wpforms-column-2 {
        padding: 20px;
    }
}

/* File Upload */
.wpforms-container .wpforms-field-file-upload .wpforms-uploader {
    border: 2px dashed var(--jumapam-azul-servicios);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: var(--jumapam-fondo-gris-azulado);
    transition: all 0.3s ease;
}

.wpforms-container .wpforms-field-file-upload .wpforms-uploader:hover {
    border-color: var(--jumapam-azul-titulos);
    background: #e8f4fc;
}

.wpforms-container .wpforms-field-file-upload .wpforms-uploader-icon {
    color: var(--jumapam-azul-servicios);
    margin-bottom: 10px;
}

.wpforms-container .wpforms-field-file-upload .wpforms-uploader .fld {
    font-size: 14px;
    color: #666;
}

/* Error States */
.wpforms-container .wpforms-field.wpforms-has-error input,
.wpforms-container .wpforms-field.wpforms-has-error textarea {
    border-color: #dc3545;
}

.wpforms-container .wpforms-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* Success Message */
.wpforms-container .wpforms-confirmation-container-full {
    background: linear-gradient(135deg, var(--jumapam-verde-acento), #3a9c3a);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.wpforms-container .wpforms-confirmation-container-full p {
    font-size: 18px;
    margin: 0;
}

/* Checkbox and Radio */
.wpforms-container .wpforms-field-checkbox input,
.wpforms-container .wpforms-field-radio input {
    width: auto;
    margin-right: 8px;
}

.wpforms-container .wpforms-field-checkbox label,
.wpforms-container .wpforms-field-radio label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* GDPR/Consent */
.wpforms-container .wpforms-field-gdpr-checkbox {
    background: var(--jumapam-fondo-gris-azulado);
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
}

/* Description */
.wpforms-container .wpforms-field-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Loading State */
.wpforms-container .wpforms-submit.wpforms-submit-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Honeypot (hide) */
.wpforms-container .wpforms-field-hp {
    display: none !important;
}

/* ====================================
   DISEÑO MODERNO - TRÁMITES Y SERVICIOS
   ==================================== */

/* Acordeón de Trámites */
.tramites-accordion h3 {
    background: linear-gradient(135deg, var(--jumapam-azul-servicios), var(--jumapam-azul-titulos));
    color: #fff;
    padding: 18px 25px;
    margin: 10px 0 0 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tramites-accordion h3:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(26, 152, 226, 0.3);
}

.tramites-accordion h3::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.tramites-accordion h3.active::after {
    transform: rotate(45deg);
}

.tramites-accordion > div {
    background: var(--jumapam-fondo-gris-azulado);
    padding: 25px;
    border-radius: 0 0 8px 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--jumapam-azul-servicios);
}

/* Subtítulos dentro de trámites */
.subtitulos-tramiyservi,
h4.subtitulos-tramiyservi {
    color: var(--jumapam-azul-titulos);
    font-weight: 700;
    font-size: 15px;
    margin: 20px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid var(--jumapam-verde-acento);
}

/* Listas de requisitos */
.list-tramiyservi,
ul.list-tramiyservi {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.list-tramiyservi li {
    position: relative;
    padding: 10px 15px 10px 35px;
    margin: 8px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.list-tramiyservi li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.list-tramiyservi li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jumapam-verde-acento);
    font-weight: bold;
    font-size: 14px;
}

/* Texto informativo */
.text-tramiyservi,
p.text-tramiyservi {
    color: #555;
    line-height: 1.7;
    padding: 10px 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    margin: 10px 0;
}

/* Botón de descarga */
.div-descargar-archivo {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    border: 2px dashed var(--jumapam-azul-servicios);
    transition: all 0.3s ease;
}

.div-descargar-archivo:hover {
    border-style: solid;
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.button-descargar-arc,
a.button-descargar-arc {
    display: inline-block;
    background: linear-gradient(135deg, var(--jumapam-azul-servicios), var(--jumapam-azul-titulos));
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.button-descargar-arc:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 152, 226, 0.4);
}

.uno-titulo-descargar-arc,
.dos-titulo-descargar-arc {
    margin: 5px 0;
    color: var(--jumapam-azul-titulos);
    font-weight: 600;
}

/* ====================================
   DISEÑO - CONTRATACIÓN DE SERVICIOS
   ==================================== */

/* Timeline visual para proceso */
.jumapam-timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.jumapam-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--jumapam-azul-servicios), var(--jumapam-verde-acento));
    border-radius: 2px;
}

.jumapam-timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.jumapam-timeline-item::before {
    content: attr(data-step);
    position: absolute;
    left: 15px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--jumapam-azul-servicios);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(26, 152, 226, 0.3);
}

.jumapam-timeline-item h4 {
    color: var(--jumapam-azul-titulos);
    margin: 0 0 10px 0;
    font-size: 18px;
}

.jumapam-timeline-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Checklist visual */
.jumapam-checklist {
    background: var(--jumapam-fondo-gris-azulado);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.jumapam-checklist-title {
    color: var(--jumapam-azul-titulos);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jumapam-checklist-title::before {
    content: '📋';
    font-size: 24px;
}

.jumapam-checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.2s ease;
    gap: 12px;
}

.jumapam-checklist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.jumapam-checklist-item::before {
    content: '☐';
    color: var(--jumapam-azul-servicios);
    font-size: 20px;
    flex-shrink: 0;
}

/* ====================================
   TABLA DE TARIFAS
   ==================================== */

.jumapam-tarifas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.jumapam-tarifas-table thead {
    background: linear-gradient(135deg, var(--jumapam-azul-servicios), var(--jumapam-azul-titulos));
}

.jumapam-tarifas-table th {
    color: #fff;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jumapam-tarifas-table tbody tr {
    transition: all 0.2s ease;
}

.jumapam-tarifas-table tbody tr:nth-child(even) {
    background: var(--jumapam-fondo-gris-azulado);
}

.jumapam-tarifas-table tbody tr:hover {
    background: rgba(26, 152, 226, 0.1);
}

.jumapam-tarifas-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #444;
}

.jumapam-tarifas-table td:first-child {
    font-weight: 600;
    color: var(--jumapam-azul-titulos);
}

.jumapam-tarifas-table td.precio {
    font-weight: 700;
    color: var(--jumapam-verde-acento);
    font-size: 16px;
}

/* Responsive tabla */
@media (max-width: 768px) {
    .jumapam-tarifas-table {
        display: block;
        overflow-x: auto;
    }
    
    .jumapam-tarifas-table th,
    .jumapam-tarifas-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* ====================================
   PÁGINA UBICACIONES - CARDS Y MAPA
   ==================================== */

.jumapam-ubicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.jumapam-ubicacion-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--jumapam-azul-servicios);
}

.jumapam-ubicacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.jumapam-ubicacion-card.aquamatico {
    border-left-color: var(--jumapam-verde-acento);
}

.jumapam-ubicacion-card h3 {
    color: var(--jumapam-azul-titulos);
    font-size: 16px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jumapam-ubicacion-card h3::before {
    content: '📍';
    font-size: 20px;
}

.jumapam-ubicacion-card.aquamatico h3::before {
    content: '🏧';
}

.jumapam-ubicacion-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.jumapam-ubicacion-card .horario {
    display: inline-block;
    background: var(--jumapam-fondo-gris-azulado);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--jumapam-azul-titulos);
    margin-top: 10px;
}

/* Mapa contenedor */
.jumapam-mapa-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin: 30px 0;
}

.jumapam-mapa-container iframe,
.jumapam-mapa-container .leaflet-container {
    width: 100%;
    height: 450px;
    border: none;
}

/* Logos instituciones animados */
.jumapam-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background: var(--jumapam-fondo-gris-azulado);
    border-radius: 12px;
    margin: 30px 0;
}

.jumapam-logo-item {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(30%);
    opacity: 0.8;
}

.jumapam-logo-item:hover {
    transform: scale(1.15);
    filter: grayscale(0%);
    opacity: 1;
}

.jumapam-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ====================================
   CULTURA DEL AGUA - CALENDARIO
   ==================================== */

.jumapam-calendar-selector {
    background: var(--jumapam-fondo-gris-azulado);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.jumapam-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.jumapam-calendar-title {
    color: var(--jumapam-azul-titulos);
    font-size: 20px;
    font-weight: 700;
}

.jumapam-calendar-nav {
    display: flex;
    gap: 10px;
}

.jumapam-calendar-nav button {
    background: var(--jumapam-azul-servicios);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.jumapam-calendar-nav button:hover {
    background: var(--jumapam-azul-titulos);
    transform: scale(1.1);
}

.jumapam-date-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.jumapam-date-btn {
    background: #fff;
    border: 2px solid transparent;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.jumapam-date-btn:hover {
    border-color: var(--jumapam-azul-servicios);
    background: rgba(26, 152, 226, 0.05);
}

.jumapam-date-btn.active {
    background: var(--jumapam-azul-servicios);
    color: #fff;
}

.jumapam-date-btn.has-event {
    position: relative;
}

.jumapam-date-btn.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--jumapam-verde-acento);
    border-radius: 50%;
}

.jumapam-date-btn .day-name {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
}

.jumapam-date-btn .day-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--jumapam-azul-titulos);
}

.jumapam-date-btn.active .day-name,
.jumapam-date-btn.active .day-number {
    color: #fff;
}

/* ====================================
   ICONOS Y CARDS GENERALES
   ==================================== */

.jumapam-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.jumapam-icon-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.jumapam-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.jumapam-icon-card img,
.jumapam-icon-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.jumapam-icon-card:hover img,
.jumapam-icon-card:hover svg {
    transform: scale(1.1);
}

.jumapam-icon-card h4 {
    color: var(--jumapam-azul-titulos);
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

/* ====================================
   MEJORAS GENERALES DE PÁGINA
   ==================================== */

/* Sección con fondo */
.jumapam-section-highlight {
    background: linear-gradient(135deg, var(--jumapam-fondo-gris-azulado), #fff);
    padding: 40px 30px;
    border-radius: 16px;
    margin: 30px 0;
}

/* Título de sección */
.jumapam-section-title {
    color: var(--jumapam-azul-titulos);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.jumapam-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--jumapam-azul-servicios), var(--jumapam-verde-acento));
    border-radius: 2px;
}

/* CTA prominente */
.jumapam-cta-box {
    background: linear-gradient(135deg, var(--jumapam-azul-servicios), var(--jumapam-azul-titulos));
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
}

.jumapam-cta-box h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
}

.jumapam-cta-box p {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.jumapam-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--jumapam-azul-titulos);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jumapam-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jumapam-animate {
    animation: fadeInUp 0.5s ease forwards;
}

/* Badge de tiempo */
.jumapam-badge {
    display: inline-block;
    background: var(--jumapam-verde-acento);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.jumapam-badge.warning {
    background: #ffc107;
    color: #333;
}

.jumapam-badge.info {
    background: var(--jumapam-azul-servicios);
}
