:root {
    --primary: #8e9173;
    --primary-dark: #686b51;
    --forest: #2e3a2b;
    --forest-soft: #3f4d3a;
    --gold: #b17a45;
    --sand: #f5f3ed;
    --sand-2: #e9e3d5;
    --text: #2f3329;
    --muted: #6f7469;
    --white: #ffffff;
    --line: #e8e3d8;
    --shadow: 0 12px 35px rgba(46, 58, 43, 0.12);
    --shadow-hover: 0 20px 45px rgba(46, 58, 43, 0.20);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(177,122,69,0.10), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, var(--sand) 55%, #ffffff 100%);
    overflow-x: hidden;
}

a { text-decoration: none; }

.page-shell {
    width: 100%;
    overflow: hidden;
}

/* Hero / carrusel */
.home-hero-mini {
    padding: 0 0 28px;
}

.carousel {
    border-radius: 0 0 34px 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: relative;
    min-height: 430px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 7%;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(46,58,43,0.88), rgba(104,107,81,0.52), rgba(255,255,255,0.04));
}

.hero-caption-card {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: white;
    animation: fadeUp 0.75s ease both;
}

.hero-caption-card span,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.hero-caption-card span {
    background: rgba(177,122,69,0.96);
}

.hero-caption-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 5px 22px rgba(0,0,0,0.30);
}

.hero-caption-card p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    top: 50%;
    margin: 0 18px;
    background: rgba(46,58,43,0.55);
    backdrop-filter: blur(6px);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--sand);
}

/* Secciones */
.section-block {
    width: 92%;
    max-width: 1180px;
    margin: 34px auto;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(232,227,216,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.section-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--forest));
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 26px;
}

.eyebrow {
    background: rgba(142,145,115,0.14);
    color: var(--primary-dark);
}

.section-heading h2 {
    margin: 12px 0 0;
    color: var(--forest);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 900;
}

.section-link,
.section-note {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--gold);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    background: linear-gradient(180deg, #ffffff, #fbfaf6);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.service-card:hover,
.news-card:hover,
.call-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--forest));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 18px;
}

.service-card h3 {
    color: var(--forest);
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
}

.card-btn,
.read-more,
.call-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s ease;
}

.card-btn:hover,
.read-more:hover,
.call-info a:hover {
    background: var(--forest);
    color: white;
    transform: translateY(-2px);
}

/* Noticias */
.news-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.875fr 0.875fr;
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 22px;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: 0.3s ease;
}

.news-img-wrap {
    position: relative;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-news .news-img {
    height: 330px;
}

.news-card:hover .news-img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: white;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 800;
}

.news-body {
    padding: 22px;
}

.news-date {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-body h3 {
    margin: 10px 0;
    color: var(--forest);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.featured-news .news-body h3 {
    font-size: 24px;
}

.news-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-grid img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(46,58,43,0.11);
    transition: 0.3s ease;
    background: var(--sand-2);
}

.gallery-grid img:hover {
    transform: scale(1.035);
    box-shadow: var(--shadow-hover);
}

.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15,18,14,0.92);
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.lightbox-content {
    max-width: 92%;
    max-height: 84vh;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 34px;
    font-size: 42px;
    color: white;
    cursor: pointer;
}

/* Convocatorias */
.calls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.call-card {
    display: grid;
    grid-template-columns: 42% 58%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s ease;
}

.call-card img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    background: var(--sand-2);
}

.call-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.call-info span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.call-info h3 {
    color: var(--forest);
    font-size: 21px;
    font-weight: 900;
    margin: 8px 0 10px;
}

.call-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Footer */
.modern-footer {
    width: 92%;
    max-width: 1180px;
    margin: 42px auto 0;
    background: linear-gradient(135deg, var(--forest), var(--primary-dark));
    color: white;
    border-radius: 28px 28px 0 0;
    padding: 34px;
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 34px;
}

.footer-brand img {
    max-width: 260px;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.2));
}

.footer-brand p {
    margin: 16px 0 0;
    font-weight: 700;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-links h4 {
    color: #f3d0a2;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    margin-bottom: 8px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto 26px;
    background: #d9d3c4;
    color: var(--forest);
    text-align: center;
    padding: 14px;
    border-radius: 0 0 20px 20px;
    font-size: 12px;
    font-weight: 800;
}

.footer-bottom p { margin: 3px 0; }

/* Animación */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-news {
        grid-column: 1 / -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modern-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 390px;
        padding: 40px 24px;
    }

    .section-block {
        width: 94%;
        padding: 24px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid,
    .news-grid,
    .calls-grid {
        grid-template-columns: 1fr;
    }

    .call-card {
        grid-template-columns: 1fr;
    }

    .call-card img {
        height: 230px;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .hero-caption-card p {
        font-size: 15px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .gallery-grid img {
        height: 150px;
    }

    .section-link,
    .section-note {
        white-space: normal;
    }
}
/* =========================================================
   ATENCIÓN CIUDADANA
========================================================= */
.citizen-help-section{
    margin-top:70px;
    background:
        linear-gradient(135deg, rgba(46,58,43,.96), rgba(67,83,75,.95)),
        url('/Pantepec_2024_2027/img/cintillo-1.jpg');
    background-size:cover;
    background-position:center;
    position:relative;
    padding:70px 7%;
    overflow:hidden;
}

.citizen-help-section::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.18);
}

.citizen-help-container{
    position:relative;
    z-index:2;
    max-width:1280px;
    margin:0 auto;
}

.citizen-help-section h2{
    text-align:center;
    font-size:clamp(34px,4vw,50px);
    font-weight:900;
    color:white;
    margin:0 0 50px;
    text-shadow:0 4px 18px rgba(0,0,0,.30);
}

.citizen-help-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
}

.citizen-help-card{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.14);
    border-radius:26px;
    padding:28px 22px;
    backdrop-filter:blur(10px);
    transition:.35s ease;
    display:flex;
    gap:18px;
    align-items:flex-start;
    min-height:230px;
    box-shadow:0 12px 30px rgba(0,0,0,.16);
}

.citizen-help-card:hover{
    transform:translateY(-8px);
    background:rgba(255,255,255,.16);
}

.citizen-help-icon{
    min-width:62px;
    width:62px;
    height:62px;
    border-radius:50%;
    background:white;
    color:#b17a45;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    box-shadow:0 10px 20px rgba(0,0,0,.18);
}

.citizen-help-content{
    flex:1;
}

.citizen-help-content h3{
    color:white;
    margin:0 0 10px;
    font-size:22px;
    font-weight:900;
}

.citizen-help-content p{
    color:rgba(255,255,255,.84);
    line-height:1.7;
    font-size:14px;
    margin:0 0 18px;
}

.citizen-help-content a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#f4d1a5;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.4px;
    transition:.3s ease;
}

.citizen-help-content a:hover{
    color:white;
    transform:translateX(4px);
}

/* =========================================================
   FOOTER ESTILO PUEBLA CAPITAL
========================================================= */
.pantepec-footer{
    background:#ece7da;
    padding:55px 7% 35px;
    text-align:center;
}

.footer-logo-area img{
    max-width:250px;
    width:100%;
    height:auto;
    margin:0 auto 16px;
    display:block;
    filter:drop-shadow(0 8px 18px rgba(0,0,0,.12));
}

.footer-social{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
}

.footer-social a{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#2e3a2b;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    transition:.3s ease;
}

.footer-social a:hover{
    background:#b17a45;
    transform:translateY(-4px);
}

.footer-divider{
    max-width:900px;
    height:1px;
    background:#cfc5af;
    margin:30px auto;
    position:relative;
}

.footer-divider span{
    width:14px;
    height:14px;
    background:#cfc5af;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%) rotate(45deg);
}

.footer-menu{
    max-width:950px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    text-align:left;
}

.footer-menu h4{
    color:#2e3a2b;
    font-size:15px;
    font-weight:900;
    margin-bottom:14px;
}

.footer-menu a{
    display:block;
    color:#465245;
    font-size:13px;
    margin-bottom:10px;
    transition:.3s ease;
    text-decoration:none;
}

.footer-menu a:hover{
    color:#b17a45;
    transform:translateX(4px);
}

.footer-address{
    max-width:900px;
    margin:35px auto 0;
    padding-top:22px;
    border-top:1px solid #cfc5af;
    font-size:13px;
    line-height:1.8;
    color:#4f5848;
}

.footer-address strong{
    display:block;
    color:#2e3a2b;
    margin-bottom:8px;
    font-size:14px;
}

.footer-address p{
    margin:2px 0;
}

.footer-strip{
    background:#8e9173;
    color:white;
    text-align:center;
    padding:14px 20px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.3px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:1100px){

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

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

@media(max-width:768px){

    .citizen-help-section{
        padding:55px 22px;
    }

    .citizen-help-grid{
        grid-template-columns:1fr;
    }

    .citizen-help-card{
        flex-direction:column;
        text-align:center;
        align-items:center;
        min-height:auto;
    }

    .footer-menu{
        grid-template-columns:1fr;
        text-align:center;
        gap:26px;
    }

    .pantepec-footer{
        padding:45px 24px 30px;
    }

    .footer-address{
        font-size:12px;
    }
}
