/*
Theme Name: Ayuntamiento
Theme URI: https://mayaapp.com.mx/
Author: Ayuntamiento
Description: Tema institucional a la medida para el Ayuntamiento.
Version: 1.0
Text Domain: ayuntamiento
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #fff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons .fb {
    background: #1877f2;
}

.social-icons .ig {
    background: #e4405f;
}

.social-icons .tw {
    background: #1da1f2;
}

.social-icons .wa {
    background: #25d366;
}

.social-icons .yt {
    background: #ff0000;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.login-btn {
    background: var(--color-principal, #7ed321);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: color-mix(in srgb, var(--color-principal, #7ed321) 85%, black);
}

/* ===== STICKY NAV ===== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--color-secundario, #1a1a2e) 95%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.logo-section img {
    max-height: 55px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 20px 14px;
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu .dropdown::after {
    content: '▼';
    font-size: 8px;
    margin-left: 4px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO / CARRUSEL FULL ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 110px);
    min-height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 80px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    color: #fff;
}

.carousel-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    color: white;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 25px;
}

.carousel-next {
    right: 25px;
}

.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ===== SERVICES GRID ===== */
.services-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Colores fijos por tarjeta (marca de cada servicio) */
.service-card:nth-child(1) .service-icon {
    background: #ffe4e1;
}

.service-card:nth-child(2) .service-icon {
    background: #ffe4e1;
    color: #e74c3c;
}

.service-card:nth-child(3) .service-icon {
    background: #ffe4e1;
    color: #e74c3c;
}

.service-card:nth-child(4) .service-icon {
    background: #ffe4e1;
    color: #e74c3c;
}

.service-card:nth-child(5) .service-icon {
    background: #e8f5e9;
    color: #27ae60;
}

.service-card:nth-child(6) .service-icon {
    background: #e3f2fd;
    color: #2196f3;
}

.service-card:nth-child(7) .service-icon {
    background: #fce4ec;
    color: #e91e63;
}

.service-card:nth-child(8) .service-icon {
    background: #fff3e0;
    color: #ff9800;
}

.service-card:nth-child(9) .service-icon {
    background: #f3e5f5;
    color: #9c27b0;
}

.service-card:nth-child(10) .service-icon {
    background: #e8eaf6;
    color: #3f51b5;
}

.service-title {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    line-height: 1.3;
}

/* ===== GOBIERNO SECTION ===== */
.gobierno-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-principal, #7ed321);
    border-radius: 2px;
}

.gobierno-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gobierno-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gobierno-card:hover {
    transform: scale(1.02);
}

.gobierno-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gobierno-card:hover img {
    transform: scale(1.1);
}

.gobierno-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
}

.gobierno-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.gobierno-overlay .arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ===== BOLETINES ===== */
.boletines-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.boletines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.boletin-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.boletin-card:hover {
    transform: translateY(-5px);
}

.boletin-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.boletin-content {
    padding: 20px;
}

.boletin-tag {
    display: inline-block;
    background: var(--color-principal, #7ed321);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.boletin-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.boletin-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.boletin-link {
    color: var(--color-principal, #7ed321);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.boletin-date {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===== EMERGENCY NUMBERS ===== */
.emergency-section {
    background: #fff;
    padding: 50px 20px;
    margin-top: 40px;
}

.emergency-container {
    max-width: 1200px;
    margin: 0 auto;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: #f9f9f9;
    transition: background 0.3s;
}

.emergency-card:hover {
    background: #f0f0f0;
}

.emergency-icon {
    width: 50px;
    height: 50px;
    background: var(--color-principal, #7ed321);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.emergency-info h4 {
    font-size: 1rem;
    color: #e91e8c;
    font-weight: 700;
}

.emergency-info p {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-secundario, #1a1a2e);
    color: #fff;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #ccc;
}

.footer-contact-item .icon {
    width: 20px;
    color: var(--color-principal, #7ed321);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-principal, #7ed321);
}

.footer-map {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #ddd;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 12px;
    color: #888;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.award-badge .badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ===== ACCESSIBILITY ===== */
.accessibility-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e91e8c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.accessibility-btn:hover {
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-principal, #7ed321);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-principal, #7ed321) 40%, transparent);
    z-index: 999;
    display: none;
    transition: transform 0.3s;
}

.scroll-top:hover {
    transform: scale(1.1);
}

.scroll-top.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
    }

    .top-info {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-secundario, #1a1a2e);
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .logo-section img {
        max-height: 45px;
        max-width: 140px;
    }

    .hero-carousel {
        height: calc(100vh - 95px);
        min-height: 350px;
    }

    .carousel-content {
        padding: 30px 20px 60px;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gobierno-grid {
        grid-template-columns: 1fr;
    }

    .boletines-grid {
        grid-template-columns: 1fr;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card {
        padding: 15px 10px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .carousel-content h2 {
        font-size: 1.4rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }
}

/* ===== DROPDOWN SUBMENU ===== */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: color-mix(in srgb, var(--color-secundario, #1a1a2e) 95%, black);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    list-style: none;
    z-index: 1000;
}

.nav-menu li:hover>ul {
    display: block;
}

.nav-menu li ul li {
    position: relative;
}

.nav-menu li ul li a {
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #ddd;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu li ul li a:hover {
    background: color-mix(in srgb, var(--color-principal, #7ed321) 20%, transparent);
    color: var(--color-principal, #7ed321);
}

/* Sub-submenú (tercer nivel) */
.nav-menu li ul li ul {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 250px;
    border-radius: 0 8px 8px 8px;
}

.nav-menu li ul li ul li a {
    padding: 10px 20px;
    font-size: 10px;
}

.nav-menu li ul li.has-sub>a::after {
    content: '›';
    float: right;
    font-size: 14px;
    margin-left: 10px;
    color: var(--color-principal, #7ed321);
}

@media (max-width: 768px) {
    .nav-menu li ul {
        position: static;
        background: color-mix(in srgb, var(--color-secundario, #1a1a2e) 90%, black);
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }

    .nav-menu li:hover>ul {
        display: none;
    }

    .nav-menu li ul.active {
        display: block;
    }

    .nav-menu li ul li ul {
        position: static;
        padding-left: 15px;
        border-radius: 0;
    }

    .nav-menu li ul li.has-sub>a::after {
        content: '▼';
        float: right;
        font-size: 10px;
    }
}

/* ===== PRESIDENTE SECTION ===== */
.presidente-section {
    background: #fff;
    padding: 60px 20px;
    width: 100%;
}

.presidente-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
}

.presidente-image {
    flex: 0 0 400px;
    height: 450px;
    overflow: hidden;
}

.presidente-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presidente-content {
    flex: 1;
    padding: 40px 50px 40px 20px;
}

.presidente-content .tag {
    display: inline-block;
    background: var(--color-principal, #7ed321);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.presidente-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-secundario, #1a1a2e);
    margin-bottom: 8px;
    line-height: 1.2;
}

.presidente-content .subtitle {
    font-size: 1.1rem;
    color: var(--color-principal, #7ed321);
    font-weight: 600;
    margin-bottom: 20px;
}

.presidente-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.presidente-content .highlight {
    color: var(--color-principal, #7ed321);
    font-weight: 700;
}

.presidente-content .btn-leer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-principal, #7ed321);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.presidente-content .btn-leer:hover {
    background: color-mix(in srgb, var(--color-principal, #7ed321) 85%, black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--color-principal, #7ed321) 30%, transparent);
}

.presidente-content .btn-leer .arrow {
    transition: transform 0.3s;
}

.presidente-content .btn-leer:hover .arrow {
    transform: translateX(5px);
}

/* Valores / sellos */
.presidente-values {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-item .icon {
    font-size: 22px;
}

.value-item span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

@media (max-width: 992px) {
    .presidente-container {
        flex-direction: column;
        padding: 0;
    }

    .presidente-image {
        flex: 0 0 auto;
        width: 100%;
        height: 350px;
    }

    .presidente-content {
        padding: 30px;
    }

    .presidente-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .presidente-image {
        height: 280px;
    }

    .presidente-content {
        padding: 20px;
    }

    .presidente-content h2 {
        font-size: 1.4rem;
    }

    .presidente-content p {
        font-size: 0.95rem;
    }

    .presidente-values {
        flex-direction: column;
        gap: 12px;
    }

    .presidente-content .btn-leer {
        width: 100%;
        justify-content: center;
    }
}

/* Asegurar color limpio en tarjetas convertidas a enlaces */
a.service-card,
a.service-card:visited,
a.service-card:hover {
    text-decoration: none;
    color: inherit;
}

a.gobierno-card,
a.gobierno-card:visited,
a.gobierno-card:hover {
    text-decoration: none;
    color: #fff;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== SINGLE POST / NOTICIA INDIVIDUAL PROFESIONAL ===== */
.single-main {
    max-width: 1200px;
    /* Antes era 900px; súbelo a 1200px o 1320px si lo quieres aún más ancho */
    margin: 0 auto;
    padding: 50px 20px;
    min-height: 60vh;
}

.single-article {
    background: #fff;
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Botón de regresar */
.back-link {
    display: inline-block;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-principal, #7ed321);
}

/* Título */
.single-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-secundario, #1a1a2e);
    margin: 15px 0 20px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

/* Metadatos (fecha y autor) */
.single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #777;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

/* Imagen destacada */
.single-thumbnail {
    margin: 0 -50px 40px -50px;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Contenido del texto */
.single-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
}

.single-content p {
    margin-bottom: 25px;
}

.single-content h2,
.single-content h3 {
    color: var(--color-secundario, #1a1a2e);
    margin: 40px 0 15px 0;
    font-weight: 700;
}

.single-content a {
    color: var(--color-principal, #7ed321);
    text-decoration: none;
    font-weight: 600;
}

.single-content a:hover {
    text-decoration: underline;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Footer de la noticia y botones de compartir */
.single-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.single-footer p {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secundario, #1a1a2e);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-buttons a {
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.3s, filter 0.3s;
}

.share-buttons a:hover {
    transform: translateY(-2px);
    filter: brightness(0.9);
}

.share-fb {
    background: #1877f2;
}

.share-tw {
    background: #1da1f2;
}

.share-wa {
    background: #25d366;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .single-article {
        padding: 25px;
    }

    .single-title {
        font-size: 1.8rem;
    }

    .single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* En móvil quitamos el margen negativo de la imagen para que no se salga de la pantalla */
    .single-thumbnail {
        margin: 0 0 30px 0;
        border-radius: 8px;
    }

    .single-content {
        font-size: 1.05rem;
    }
}

/* ===== AMPLITUD Y LIGHTBOX EN NOTICIA INDIVIDUAL ===== */
.single-main {
    max-width: 1200px;
    /* Antes era 900px; súbelo a 1200px o 1320px si lo quieres aún más ancho */
    margin: 0 auto;
    padding: 50px 20px;
    min-height: 60vh;
}

.single-thumbnail img,
.single-content img {
    cursor: zoom-in;
}

.single-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.single-content .wp-block-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0;
}

.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.92);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(6px);
}

.img-lightbox.open {
    display: flex;
}

.img-lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    cursor: default;
}

.img-lightbox p {
    color: #e0e0e0;
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
    max-width: 700px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.lightbox-close:hover {
    background: var(--color-principal, #7ed321);
    transform: rotate(90deg);
}

/* ===== ÚLTIMAS NOTICIAS EN SINGLE.PHP ===== */
.related-posts-section {
    margin-top: 55px;
}

.award-badge .badge-img {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.single-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.single-top-bar .back-link {
    margin-bottom: 0;
}

.single-thumbnail {
    position: relative;
    margin: 0 -60px 40px -60px;
}

.zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    pointer-events: none;
}

.share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secundario, #1a1a2e);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a.award-badge {
    transition: opacity 0.3s, transform 0.3s;
}

a.award-badge:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}