/* =========================================================================
   H. Ayuntamiento de Agua Dulce — hoja de estilos
   Paleta institucional: guinda + dorado. Movimiento sobrio (transform/opacity)
   y desactivado con prefers-reduced-motion.
   ========================================================================= */

/* --- VARIABLES --- */
:root {
    --primary: #7f2032;
    --primary-dark: #62022e;
    --primary-deep: #3d0119;
    --gold: #b6a07a;
    --gold-soft: #d1be99;
    --text-dark: #262a33;
    --text-muted: #6b7180;
    --bg-light: #f6f4f2;
    --line: #ece7e2;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(40, 20, 30, .06);
    --shadow: 0 12px 32px rgba(40, 20, 30, .09);
    --shadow-lg: 0 24px 56px rgba(40, 20, 30, .16);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: 'Poppins', sans-serif; color: var(--text-dark);
    background: #fff; overflow-x: hidden; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
ul { list-style: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.section-padding { padding: 96px 0; }
.bg-light { background: var(--bg-light); }

/* --- BOTONES --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border: 0; border-radius: 50px; cursor: pointer;
    font: 700 .95rem 'Poppins', sans-serif;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
    box-shadow: 0 8px 22px rgba(127, 32, 50, .32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(127, 32, 50, .42); }
.btn-primary:active { transform: translateY(0); }

/* --- REVEAL AL HACER SCROLL --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- NAVBAR --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 12px 0;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
    transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.glass-nav.scrolled { padding: 7px 0; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 24px rgba(40, 20, 30, .09); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.logo-img { height: 46px; transform-origin: left center; transition: transform .4s var(--ease); }
.scrolled .logo-img { transform: scale(.85); }
.logo-text h1 { font-size: 1.1rem; letter-spacing: .5px; }
.logo-text span { font-size: .62rem; color: var(--gold); font-weight: 800; display: block; letter-spacing: 1.6px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a {
    position: relative; display: block; padding: 10px 14px;
    font-size: .88rem; font-weight: 600; color: #3b3f4a;
}
.nav-links > li:not(:last-child) > a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary); }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links .fa-chevron-down { font-size: .6rem; margin-left: 4px; transition: transform .3s var(--ease); }
.dropdown:hover .fa-chevron-down, .dropdown:focus-within .fa-chevron-down { transform: rotate(180deg); }

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important; padding: 11px 22px !important; border-radius: 50px; margin-left: 8px;
    font-size: .85rem !important; box-shadow: 0 6px 18px rgba(127, 32, 50, .3);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(127, 32, 50, .4); }

/* Dropdowns: siempre en el DOM, se animan con opacity/transform */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu li a { display: block; padding: 11px 14px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: #3b3f4a; }
.dropdown-menu li a:hover { background: #f8f1ef; color: var(--primary); }

/* --- HERO --- */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    color: #fff; overflow: hidden; isolation: isolate; padding: 120px 0 130px;
}
.hero::before {                      /* foto con zoom lento */
    content: ''; position: absolute; inset: 0; z-index: -3;
    background: url('imagesh/fondo.png') center/cover no-repeat;
    animation: kenburns 24s ease-in-out infinite alternate;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 80% at 15% 50%, rgba(61, 1, 25, .55), transparent 70%),
        linear-gradient(100deg, rgba(61, 1, 25, .92) 0%, rgba(127, 32, 50, .70) 48%, rgba(127, 32, 50, .22) 100%);
}
.hero-orb {                          /* destellos dorados flotando */
    position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
    background: radial-gradient(circle, rgba(182, 160, 122, .55), transparent 70%);
    animation: float 14s ease-in-out infinite alternate;
}
.hero-orb.o1 { width: 420px; height: 420px; right: 8%; top: 12%; }
.hero-orb.o2 { width: 300px; height: 300px; right: 30%; bottom: -8%; animation-delay: -6s; opacity: .7; }

.hero-content { max-width: 760px; margin-left: 0; }
.hero-content > * { opacity: 0; animation: rise .9s var(--ease) forwards; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: 7px 18px; font-size: .78rem; border-radius: 50px; font-weight: 700; letter-spacing: 2px;
    animation-delay: .1s;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(212, 183, 138, .3); }
.hero h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.5px; margin: 22px 0 18px; animation-delay: .25s; }
.hero h2 .text-gold { color: #d9c7a0; }
.hero p { font-size: 1.15rem; max-width: 560px; opacity: .92; animation-delay: .4s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation-delay: .55s; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }
.hero .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.hero .btn-primary:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .32); }

.scroll-cue {
    position: absolute; bottom: 88px; left: 50%; width: 26px; height: 42px; margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; opacity: .8;
}
.scroll-cue::after {
    content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    background: #fff; border-radius: 4px; animation: wheel 1.8s ease-in-out infinite;
}

/* --- ACCESOS RÁPIDOS --- */
.quick-access { margin-top: -84px; position: relative; z-index: 10; margin-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.service-card {
    position: relative; overflow: hidden; background: #fff; padding: 32px 28px; border-radius: var(--radius);
    box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.service-card::before {              /* barra dorada que crece */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left;
    transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #1f2230; }
.service-card p { font-size: .92rem; color: var(--text-muted); }

.icon-box {
    width: 58px; height: 58px; background: #f8f1ef; color: var(--primary); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 22px;
    transition: transform .5s var(--ease), background .4s, color .4s;
}
.service-card:hover .icon-box { background: var(--primary); color: #fff; transform: rotate(-6deg) scale(1.08); }
.link-arrow { font-size: .82rem; font-weight: 700; color: var(--primary); margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow i { transition: transform .4s var(--ease); }
.service-card:hover .link-arrow i { transform: translateX(6px); }

.service-card.featured { background: linear-gradient(140deg, var(--primary) 0%, var(--primary-deep) 100%); border: 0; color: #fff; }
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255, 255, 255, .85); }
.service-card.featured .icon-box { background: rgba(255, 255, 255, .16); color: #fff; }
.service-card.featured:hover .icon-box { background: var(--gold); }
.service-card.featured .link-arrow { color: var(--gold-soft); }
.service-card.featured::after {      /* brillo decorativo */
    content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 160, 122, .5), transparent 70%);
    transition: transform .8s var(--ease);
}
.service-card.featured:hover::after { transform: scale(1.5); }

/* --- ENCABEZADO DE SECCIÓN --- */
.section-header { margin-bottom: 48px; }
.subtitle { display: inline-block; font: 800 .75rem 'Poppins', sans-serif; letter-spacing: 3px; color: var(--gold); margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #1f2230; }
.line-center { width: 56px; height: 4px; margin: 18px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.section-header p { margin-top: 14px; color: var(--text-muted); }

/* --- AVISOS (mosaico) --- */
.avisos-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 18px; }
.aviso-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.aviso-item:nth-child(4) { grid-column: span 2; }
.aviso-item {
    position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #1f2230;
    box-shadow: var(--shadow-sm); transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.aviso-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s var(--ease); }
.aviso-item::before {
    content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0;
    background: linear-gradient(to top, rgba(61, 1, 25, .85), rgba(61, 1, 25, .1) 60%);
    transition: opacity .5s var(--ease);
}
.aviso-item::after {
    content: '\f00e'; font-family: "Font Awesome 6 Free"; font-weight: 900; z-index: 2;
    position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transform: translateY(12px); transition: .5s var(--ease);
}
.aviso-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.aviso-item:hover img { transform: scale(1.07); }
.aviso-item:hover::before, .aviso-item:hover::after { opacity: 1; transform: none; }

/* --- GACETA --- */
.file-folder-container { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.file-item {
    display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.file-item:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.file-icon-box {
    flex: none; width: 52px; height: 52px; background: #fbeeee; border-radius: 14px; color: #d64545;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.file-info h4 { font-size: 1rem; margin-bottom: 4px; color: #1f2230; }
.file-info span { font-size: .8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.btn-download {
    margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    border: 1.5px solid var(--primary); background: transparent; color: var(--primary);
    padding: 9px 18px; border-radius: 50px; font: 700 .82rem 'Poppins', sans-serif;
    transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn-download:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* --- NOTICIAS --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; height: 216px; overflow: hidden; }
.news-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s var(--ease); }
.news-card:hover .news-img-bg { transform: scale(1.08); }
.category-badge {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    background: rgba(255, 255, 255, .92); color: var(--primary); padding: 6px 12px; border-radius: 50px;
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.news-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-content h3 { font-size: 1.08rem; margin-bottom: 18px; line-height: 1.4; color: #1f2230; }
.news-footer {
    margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px;
    display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted);
}
.news-date { display: flex; align-items: center; gap: 6px; }
.read-more { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.read-more i { transition: transform .4s var(--ease); }
.news-card:hover .read-more i { transform: translateX(5px); }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px;
    background: rgba(31, 12, 20, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: #fff; width: 100%; max-width: 520px; border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column; max-height: 94vh; box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(.96); transition: transform .5s var(--ease);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-lg { max-width: 860px; }
.modal-header { padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.1rem; color: var(--primary); }
.modal-header .category { font: 800 .72rem 'Poppins', sans-serif; letter-spacing: 2px; color: var(--gold); }
.modal-body { padding: 24px; }
.close-modal {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    font-size: 1.05rem; color: #888; transition: background .3s, color .3s, transform .4s var(--ease);
}
.close-modal:hover { background: #f8f1ef; color: var(--primary); transform: rotate(90deg); }
.modal-body-scroll { padding: 28px; overflow-y: auto; }
.modal-news-image { width: 100%; height: auto; border-radius: 12px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.title-like-container { margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.title-like-container h2 { font-size: 1.7rem; color: var(--primary); margin-bottom: 16px; }
.like-btn {
    background: #fff; border: 1.5px solid #ddd; padding: 9px 22px; border-radius: 50px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px; font: 700 .92rem 'Poppins', sans-serif; color: #555;
    transition: .3s var(--ease);
}
.like-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.like-btn.liked { background: var(--primary); border-color: var(--primary); color: #fff; }
.like-btn.liked i { animation: pop .5s var(--ease); }
.news-text-body { font-size: 1.05rem; line-height: 1.85; color: #444; }
.news-text-body p { margin-bottom: 16px; }
.gallery-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; }
.gallery-thumb { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; transition: .3s var(--ease); }
.gallery-thumb:hover { opacity: 1; transform: scale(1.05); }

/* --- FOOTER --- */
footer {
    position: relative; margin-top: 40px; padding-top: 72px; color: #cfc7cb; overflow: hidden;
    background: linear-gradient(180deg, #2a0e19, #170710);
}
footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary)); }
.contact-card-wrapper {
    display: flex; flex-wrap: wrap; margin-bottom: 40px; overflow: hidden;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px;
}
.contact-info-box, .footer-form { flex: 1; padding: 44px; min-width: 300px; }
.contact-info-box h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.contact-info-box > p { margin-bottom: 26px; }
.info-list li { margin-bottom: 16px; display: flex; gap: 14px; align-items: center; }
.info-list i {
    flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(182, 160, 122, .18); color: var(--gold-soft); font-size: .9rem;
}
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 140px; }
.footer-form input, .footer-form textarea {
    width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    color: #fff; border-radius: 12px; margin-bottom: 14px; outline: none; font: inherit; resize: vertical;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #9a9096; }
.footer-form input:focus, .footer-form textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(182, 160, 122, .18); }
.footer-form .btn { width: 100%; }
.footer-bottom { padding: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; opacity: .7; }

.input-full {
    width: 100%; padding: 13px 15px; border: 1px solid #ddd; border-radius: 12px; margin-bottom: 14px; font: inherit;
    transition: border-color .3s, box-shadow .3s;
}
.input-full:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(127, 32, 50, .1); }
.modal-body .btn { width: 100%; }

/* --- ANIMACIONES --- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes float { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 40% { transform: scale(1.5) rotate(-12deg); } }

/* --- RESPONSIVE --- */
.hamburger {
    display: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; cursor: pointer;
    font-size: 1.4rem; color: var(--primary); background: none; border: 0;
}
@media (max-width: 1000px) {
    .avisos-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .aviso-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .aviso-item:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 900px) {
    .hamburger { display: grid; }
    .nav-links {
        position: fixed; top: 0; right: 0; width: min(340px, 86vw); height: 100vh; padding: 90px 26px 30px;
        flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto;
        background: #fff; box-shadow: -20px 0 50px rgba(0, 0, 0, .14);
        transform: translateX(105%); transition: transform .5s var(--ease); visibility: hidden;
    }
    .nav-links.active { transform: none; visibility: visible; }
    .nav-links > li > a { padding: 14px 8px; font-size: 1rem; }
    .nav-links > li > a::after { display: none; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 14px; }
    .btn-nav { text-align: center; margin: 14px 0 0; }
    .glass-nav { z-index: 1100; }
    .hamburger { position: relative; z-index: 1200; }
    .hero { min-height: 82vh; }
    .scroll-cue { display: none; }
    .section-padding { padding: 68px 0; }
}
@media (max-width: 560px) {
    .avisos-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
    .aviso-item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .file-item { flex-wrap: wrap; }
    .btn-download { margin-left: 70px; }
    .contact-info-box, .footer-form { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-content > * { opacity: 1; }
}

/* =========================================================================
   TURISMO
   ========================================================================= */
body.pagina-turismo { padding-top: 0; }

.turismo-hero {
    position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center;
    color: #fff; overflow: hidden; isolation: isolate; padding: 130px 20px 110px;
}
.turismo-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: url('turismo/turismofondo.jpg') center/cover no-repeat;
    animation: kenburns 24s ease-in-out infinite alternate;
}
.turismo-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(20, 8, 14, .35), rgba(20, 8, 14, .15) 40%, rgba(20, 8, 14, .7));
}
.turismo-kicker {
    display: inline-block; font: 800 .78rem 'Poppins', sans-serif; letter-spacing: 4px;
    padding: 8px 20px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50px;
    background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; animation: rise .9s var(--ease) .1s forwards;
}
.turismo-title-main {
    font-size: clamp(3rem, 10vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -1px;
    text-transform: uppercase; margin: 22px 0 18px; text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    opacity: 0; animation: rise 1s var(--ease) .25s forwards;
}
.turismo-title-main em { font-style: normal; color: #d9c7a0; }
.turismo-lead { max-width: 560px; margin: 0 auto; font-size: 1.15rem; opacity: 0; animation: rise 1s var(--ease) .4s forwards; }

.section-header-turismo { padding: 88px 24px 48px; text-align: center; background: #fff; }
.section-header-turismo h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #1f2230; margin: 0; }
.section-header-turismo p { margin-top: 14px; color: var(--text-muted); }

/* Galería en mosaico */
.turismo-gallery {
    display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 18px;
    max-width: 1300px; margin: 0 auto; padding: 0 24px 90px;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; border-radius: 20px; grid-column: span 3; box-shadow: var(--shadow); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s var(--ease); }
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 26px;
    background: linear-gradient(to top, rgba(26, 8, 16, .82), rgba(26, 8, 16, .05) 60%);
}
.gallery-overlay::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease);
    background: linear-gradient(to top, rgba(61, 1, 25, .92), rgba(61, 1, 25, .15) 65%);
}
.gallery-item:hover .gallery-overlay::before { opacity: 1; }
.gallery-text { position: relative; color: #fff; transform: translateY(14px); transition: transform .6s var(--ease); }
.gallery-item:hover .gallery-text, .gallery-item:focus-visible .gallery-text { transform: none; }
.gallery-text h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); margin-bottom: 10px; text-shadow: 0 3px 14px rgba(0, 0, 0, .5); }
.gallery-text span {
    display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem 'Poppins', sans-serif; letter-spacing: .5px;
    background: var(--gold); padding: 7px 16px; border-radius: 50px; opacity: 0; transition: opacity .5s var(--ease);
}
.gallery-item:hover .gallery-text span, .gallery-item:focus-visible .gallery-text span { opacity: 1; }
@media (hover: none) { .gallery-text { transform: none; } .gallery-text span { opacity: 1; } }

/* Ficha de lugar (modal) */
.lugar-hero {
    position: relative; min-height: 240px; display: flex; align-items: flex-end; padding: 28px; color: #fff;
    background-size: cover; background-position: center; flex: none;
}
.lugar-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 8, 16, .85), rgba(26, 8, 16, .1)); }
.lugar-hero > div { position: relative; }
.lugar-hero .chip { display: inline-block; background: var(--gold); padding: 5px 14px; border-radius: 50px; font: 700 .78rem 'Poppins', sans-serif; margin-bottom: 10px; }
.lugar-hero h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.lugar-close { position: absolute; top: 14px; right: 14px; z-index: 2; border: 0; background: rgba(255, 255, 255, .92); color: var(--primary); }
.lugar-body { padding: 30px; overflow-y: auto; }
.lugar-body .intro { font-size: 1.15rem; margin-bottom: 26px; line-height: 1.7; color: #262a33; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.detail-box { padding: 18px; border-radius: 14px; background: var(--bg-light); }
.detail-box h4 { color: var(--primary); margin-bottom: 8px; font-size: .98rem; }
.detail-box p { font-size: .92rem; color: #555; }
.detail-box.tip { background: #fffbf0; border: 1px solid #ecdcb8; }
.detail-box.warn { background: #fff1f1; border: 1px solid #f5c7c7; }

@media (max-width: 900px) {
    .turismo-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; padding-bottom: 60px; }
    .gallery-item:nth-child(n) { grid-column: span 1; grid-row: auto; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 560px) {
    .turismo-gallery { grid-template-columns: 1fr; }
    .gallery-item:nth-child(n) { grid-column: auto; }
}

/* Acciones de la ficha: anterior / mapa / siguiente */
.lugar-acciones {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 24px; border-top: 1px solid var(--line); background: #fff; flex: none;
}
.lugar-nav {
    display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer;
    font: 700 .85rem 'Poppins', sans-serif; color: var(--text-muted); padding: 10px 8px; border-radius: 10px;
    transition: color .3s, transform .4s var(--ease);
}
.lugar-nav:hover { color: var(--primary); }
#lugar-prev:hover { transform: translateX(-4px); }
#lugar-next:hover { transform: translateX(4px); }
.lugar-acciones .btn { padding: 11px 22px; font-size: .88rem; }

/* Consejos por destino */
.consejos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.consejo {
    display: flex; gap: 16px; align-items: flex-start; text-align: left; cursor: pointer; font: inherit; color: inherit;
    padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.consejo:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.consejo > i {
    flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: #fbf3e4; color: #a37a3a; font-size: 1.05rem;
}
.consejo.warn > i { background: #fbeeee; color: #c23b3b; }
.consejo .lugar { display: block; font: 800 .68rem 'Poppins', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.consejo strong { display: block; font: 700 1rem 'Poppins', sans-serif; color: #1f2230; margin-bottom: 4px; }
.consejo p { font-size: .9rem; color: var(--text-muted); }
@media (max-width: 560px) { .lugar-acciones { justify-content: center; } .lugar-nav span { display: none; } }

/* =========================================================================
   REDISEÑO SEGÚN EL SITIO ACTUAL (aguadulce.gob.mx)
   Paleta: guinda profundo #62022e / #7f2032, arena #caba9f, gris #6d6e71.
   Tipografía: Poppins. Cabecera blanca con el logo a color, hero con la foto
   del Presidente sobre el guinda, secciones limpias y amplias.
   ========================================================================= */
:root { --sand: #caba9f; --sand-soft: #efe9de; --guinda-profundo: #62022e; }

/* --- Cabecera --- */
.glass-nav { background: rgba(255, 255, 255, .97); }
.logo-full { height: 46px; width: auto; display: block; transform-origin: left center; transition: transform .4s var(--ease); }
.scrolled .logo-full { transform: scale(.86); }
.nav-links > li > a { color: #55565a; font-weight: 600; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary); }

/* --- Botones extra --- */
.btn-claro { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.btn-claro:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32); }
.btn-borde { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-borde:hover { background: #fff; color: var(--primary-dark); transform: translateY(-3px); }
.btn-linea { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-linea:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* --- Portada: foto del Presidente + mensaje sobre el guinda --- */
.portada {
    position: relative; overflow: hidden; color: #fff; display: flex; align-items: center;
    min-height: clamp(500px, 42vw, 780px); padding: 120px 0 130px;
    background: #660033 url('imagesh/ref/Presidente.png') left center / cover no-repeat;
}
.portada-inner { display: flex; justify-content: flex-end; }
.portada-texto { width: min(54%, 640px); }
.portada-texto > * { opacity: 0; animation: rise .9s var(--ease) forwards; }
.portada-texto > :nth-child(1) { animation-delay: .15s; }
.portada-texto > :nth-child(2) { animation-delay: .3s; }
.portada-texto > :nth-child(3) { animation-delay: .45s; }
.portada-texto > :nth-child(4) { animation-delay: .55s; }
.portada-texto > :nth-child(5) { animation-delay: .7s; }
.portada-mensaje { font-size: clamp(1.05rem, 1.55vw, 1.4rem); font-weight: 600; line-height: 1.55; margin-bottom: 18px; }
.portada-firma { font-size: 1.25rem; font-weight: 700; color: var(--gold-soft); margin: 6px 0 2px; }
.portada-lema { font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: 4px 0 28px; }
.portada-acciones { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) {
    .portada { background-size: auto 400px; background-position: 4% 64px; padding: 480px 0 60px; }
    .portada-texto { width: 100%; }
}

/* --- Accesos rápidos (bajo la portada) --- */
.accesos { position: relative; z-index: 5; margin-top: -64px; margin-bottom: 30px; }
.service-card { display: block; }

/* --- Emergencias --- */
.emergencias { background: #fff; }
.emerg-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.emerg-imagen img { width: 100%; max-width: 460px; display: block; margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow-lg); }
.emerg-tarjetas { display: grid; gap: 22px; }
.emerg-card {
    display: flex; gap: 22px; align-items: flex-start; padding: 30px; background: #fff; border-radius: 22px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.emerg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.emerg-ico {
    flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
    background: var(--primary); color: #fff; font-size: 1.4rem;
}
.emerg-card h3 { font-size: 1.25rem; color: var(--primary-dark); margin-bottom: 4px; }
.emerg-sub { color: var(--text-muted); font-size: .9rem; }
.emerg-num { display: block; font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 800; color: var(--primary); line-height: 1; margin: 8px 0 10px; letter-spacing: -1px; }
.emerg-card p { font-size: .95rem; color: #55565a; }
@media (max-width: 900px) { .emerg-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- Banner Transparencia --- */
.banner-transp {
    position: relative; background: #fff url('imagesh/ref/Transparencia_BG.png') right center / auto 100% no-repeat;
    border-block: 1px solid var(--line);
}
.banner-transp::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0) 70%); }
.banner-transp-inner { position: relative; padding: 96px 24px; }
.banner-transp-texto { max-width: 580px; }
.banner-transp-logo { width: 92px; margin-bottom: 14px; }
.banner-kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .22em; color: var(--gold); margin-bottom: 8px; }
.banner-transp h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); color: var(--primary-dark); line-height: 1.12; }
.banner-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.banner-botones .btn { padding: 12px 22px; font-size: .88rem; }
@media (max-width: 800px) {
    .banner-transp { background-size: auto 55%; background-position: right bottom; }
    .banner-transp::before { background: linear-gradient(180deg, #fff 55%, rgba(255, 255, 255, .55)); }
    .banner-transp-inner { padding: 64px 24px 200px; }
}

/* --- Banner Programas sociales --- */
.banner-programas {
    background: #fff url('imagesh/ref/Programas-Sociales.png') left center / cover no-repeat;
    min-height: 540px; display: flex; align-items: center;
}
.banner-programas-inner { display: flex; justify-content: flex-end; padding-block: 70px; }
.banner-programas-texto { width: min(46%, 520px); }
.banner-programas-logo { width: 130px; margin-bottom: 12px; }
.banner-programas p { font-size: 1.15rem; font-weight: 500; color: #4a4b4f; margin-bottom: 8px; }
.banner-programas h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; color: var(--primary-dark); line-height: 1; text-transform: uppercase; margin-bottom: 26px; }
@media (max-width: 800px) {
    .banner-programas { background-size: auto 340px; background-position: left top; background-color: #fff; align-items: flex-end; min-height: 0; }
    .banner-programas-inner { padding-top: 330px; padding-bottom: 50px; }
    .banner-programas-texto { width: 100%; }
}

/* --- Convocatorias: tarjetas de la portada --- */
.conv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 360px)); gap: 30px; justify-content: center; }
.conv-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.conv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.conv-card-img { height: 230px; background-color: var(--primary); background-size: cover; background-position: center; transition: transform .9s var(--ease); }
.conv-card { overflow: hidden; }
.conv-card:hover .conv-card-img { transform: scale(1.06); }
.conv-card-cuerpo { padding: 22px 24px 26px; position: relative; background: #fff; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.conv-fecha { font-size: .8rem; color: var(--text-muted); }
.conv-card h3 { font-size: 1.15rem; font-weight: 600; color: #1f1f22; line-height: 1.35; }
.conv-leer { margin-top: auto; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.conv-leer i { transition: transform .4s var(--ease); }
.conv-card:hover .conv-leer i { transform: translateX(6px); }

/* --- Convocatoria: página individual --- */
.page-kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .24em; color: var(--gold-soft); margin-bottom: 10px; }
.conv-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 900px; margin: 0 auto 10px; }
.conv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.conv-principal { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-sm); }
.conv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.conv-etiqueta { background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; }
.conv-fecha-grande { color: var(--text-muted); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.conv-intro { margin-bottom: 26px; }
.conv-intro p, .conv-texto p { line-height: 1.75; color: #44454a; margin-bottom: 14px; }
.acordeon-item { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; background: #fff; overflow: hidden; interpolate-size: allow-keywords; transition: box-shadow .3s; }
.acordeon-item[open] { box-shadow: var(--shadow-sm); border-color: var(--gold-soft); }
.acordeon-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; cursor: pointer; }
.acordeon-item summary::-webkit-details-marker { display: none; }
.acordeon-item summary h2 { font-size: 1.08rem; color: var(--primary-dark); }
.acordeon-icono { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f8f1ef; color: var(--primary); display: grid; place-items: center; font-size: .8rem; transition: transform .4s var(--ease), background .3s; }
.acordeon-item[open] .acordeon-icono { transform: rotate(180deg); background: var(--primary); color: #fff; }
.acordeon-item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.acordeon-item[open]::details-content { block-size: auto; }
.acordeon-cuerpo { padding: 4px 24px 24px; }
.conv-docs { display: grid; gap: 4px; }
.conv-docs li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.conv-docs li:first-child { border-top: 0; }
.conv-doc-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #fbeeee; color: #d64545; font-size: 1.35rem; }
.conv-doc-info { flex: 1; min-width: 0; }
.conv-doc-info strong { display: block; color: #1f1f22; font-weight: 600; }
.conv-doc-info span { font-size: .8rem; color: var(--text-muted); }
.conv-doc-btn { padding: 10px 20px; font-size: .85rem; }
.conv-lateral { position: sticky; top: 100px; }
.conv-lateral-img { aspect-ratio: 4 / 3; border-radius: 22px; background-color: var(--primary); background-size: cover; background-position: center; box-shadow: var(--shadow); margin-bottom: 26px; }
.conv-lateral h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 12px; }
.conv-otras { display: grid; gap: 8px; margin-bottom: 20px; }
.conv-otras a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 500; font-size: .92rem; transition: transform .35s var(--ease), border-color .3s, color .3s; }
.conv-otras a:hover { transform: translateX(6px); border-color: var(--gold-soft); color: var(--primary); }
.conv-otras .actual a { background: #f8f1ef; border-color: var(--gold-soft); color: var(--primary-dark); font-weight: 600; }
.conv-volver { font-weight: 600; color: var(--primary); font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 900px) {
    .conv-layout { grid-template-columns: 1fr; }
    .conv-lateral { position: static; }
    .conv-principal { padding: 22px; }
    .conv-docs li { flex-wrap: wrap; }
}

/* --- Pie de página --- */
.footer-ref { background: linear-gradient(180deg, #62022e, #3d0119); color: #e9dfe0; padding: 70px 0 0; margin-top: 60px; }
.footer-ref::before { background: linear-gradient(90deg, var(--sand), var(--primary), var(--sand)); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr 1.3fr; gap: 44px; padding-bottom: 50px; }
.footer-brand img { width: 230px; max-width: 100%; display: block; }
.footer-col h4 { color: var(--gold-soft); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #f0e6e7; font-size: .93rem; transition: color .3s, padding-left .3s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col > ul:not(.info-list) a:hover { padding-left: 6px; }
.footer-col .info-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .93rem; }
.footer-col .info-list i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(202, 186, 159, .16); color: var(--gold-soft); font-size: .85rem; }
.footer-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 22px; border-radius: 50px; background: var(--gold-soft); color: var(--primary-dark) !important; font-weight: 700; font-size: .9rem; transition: transform .3s var(--ease); }
.footer-cta:hover { transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 24px 0; text-align: center; font-size: .85rem; opacity: .75; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Servidores públicos --- */
.grupo { margin-bottom: 72px; }
.grupo[hidden] { display: none; }
.grupo-cab { text-align: center; margin-bottom: 36px; }
.grupo-cab h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--primary-dark); }
.grupo-cab p { color: var(--text-muted); margin-top: 12px; }
.cabildo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.persona { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.persona:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.persona-foto { aspect-ratio: 4 / 5; background: #f1ece6 center top / cover no-repeat; display: grid; place-items: center; color: #d4c8b8; font-size: 3.4rem; transition: transform .9s var(--ease); }
.persona { overflow: hidden; }
.persona-datos { padding: 20px 22px 24px; background: #fff; position: relative; }
.persona h3 { font-size: 1.05rem; color: #1f1f22; margin-bottom: 4px; }
.persona-cargo { color: var(--primary); font-weight: 600; font-size: .92rem; }
.persona-area { color: var(--text-muted); font-size: .82rem; margin-top: 2px; }
.persona-alcalde { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 360px) 1fr; background: linear-gradient(120deg, #62022e, #3d0119); color: #fff; border: 0; }
.persona-alcalde .persona-foto { aspect-ratio: auto; min-height: 380px; }
.persona-alcalde .persona-datos { background: transparent; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.persona-alcalde h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.persona-alcalde .persona-cargo { color: var(--gold-soft); font-size: 1.05rem; letter-spacing: .04em; }
.persona-alcalde .persona-area { color: rgba(255, 255, 255, .75); }
@media (max-width: 700px) { .persona-alcalde { grid-template-columns: 1fr; } .persona-alcalde .persona-foto { min-height: 340px; } .persona-alcalde .persona-datos { padding: 28px; } }

/* --- Identidad --- */
.ident-hero {
    position: relative; min-height: min(100vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden;
    isolation: isolate; padding: 130px 0 100px; background: #3d0119;
}
.ident-fondo { position: absolute; inset: 0; z-index: -3; background: url('turismo/turismofondo.jpg') center / cover no-repeat; opacity: .5; animation: kenburns 30s ease-in-out infinite alternate; }
.ident-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(60% 80% at 78% 45%, rgba(127, 32, 50, .5), transparent 70%),
                linear-gradient(115deg, #3d0119 8%, rgba(98, 2, 46, .93) 50%, rgba(98, 2, 46, .72) 100%);
}
.ident-orbe { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; background: radial-gradient(circle, rgba(202, 186, 159, .5), transparent 70%); animation: float 14s ease-in-out infinite alternate; }
.ident-orbe.o1 { width: 460px; height: 460px; right: 4%; top: 10%; }
.ident-orbe.o2 { width: 320px; height: 320px; left: 8%; bottom: -6%; animation-delay: -6s; opacity: .6; }
.ident-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.ident-hero-texto > * { opacity: 0; animation: rise 1s var(--ease) forwards; }
.ident-hero-texto > :nth-child(1) { animation-delay: .1s; }
.ident-hero-texto > :nth-child(2) { animation-delay: .25s; }
.ident-hero-texto > :nth-child(3) { animation-delay: .45s; }
.ident-hero-texto > :nth-child(4) { animation-delay: .6s; }
.ident-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .3em; color: var(--gold-soft); padding: 8px 20px; border: 1px solid rgba(202, 186, 159, .45); border-radius: 50px; background: rgba(255, 255, 255, .06); }
.ident-hero h1 { font-size: clamp(3.6rem, 11vw, 8.5rem); font-weight: 800; line-height: .92; letter-spacing: -.03em; margin: 26px 0 22px; text-shadow: 0 12px 50px rgba(0, 0, 0, .4); }
.ident-lema { font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.25; }
.ident-lema em { font-style: normal; color: var(--gold-soft); }
.ident-sub { margin-top: 24px; letter-spacing: .12em; font-size: .9rem; opacity: .8; text-transform: uppercase; }
.ident-hero-escudo { text-align: center; }
.ident-hero-escudo img { width: min(460px, 100%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); animation: flotar 7s ease-in-out infinite alternate; }
@keyframes flotar { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-18px) rotate(1deg); } }
@media (max-width: 900px) {
    .ident-hero { min-height: 0; padding: 120px 0 100px; }
    .ident-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .ident-hero-escudo { order: -1; }
    .ident-hero-escudo img { width: 240px; }
}

.marquee { background: var(--sand); color: var(--primary-dark); overflow: hidden; white-space: nowrap; padding: 20px 0; }
.marquee-pista { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; animation: marquee 34s linear infinite; font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.marquee-pista i { font-size: .8em; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

.simbolos { background: var(--bg-light); }
.simbolos-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.simbolos-escudo { background: linear-gradient(160deg, #62022e, #3d0119); border-radius: 34px; padding: 46px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.simbolos-escudo::before { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(202, 186, 159, .35), transparent 70%); }
.simbolos-escudo img { position: relative; width: 100%; display: block; }
.simbolos-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.simbolos-lista li { display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.simbolos-lista li:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.sim-ico { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #f8f1ef; color: var(--primary); font-size: 1.35rem; transition: transform .5s var(--ease), background .4s, color .4s; }
.simbolos-lista li:hover .sim-ico { background: var(--primary); color: #fff; transform: rotate(-7deg) scale(1.1); }
.sim-n { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .22em; color: var(--gold); margin-bottom: 2px; }
.simbolos-lista h3 { font-size: 1rem; color: #1f1f22; line-height: 1.3; }
@media (max-width: 900px) { .simbolos-grid { grid-template-columns: 1fr; } .simbolos-escudo { max-width: 420px; margin: 0 auto; } }
@media (max-width: 520px) { .simbolos-lista { grid-template-columns: 1fr; } }

.cifras { background: linear-gradient(120deg, #62022e, #3d0119); color: #fff; padding: 74px 0; }
.cifras-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.cifra { padding: 10px 16px; }
.cifra + .cifra { border-left: 1px solid rgba(255, 255, 255, .14); }
.cifra strong { display: block; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; color: var(--gold-soft); line-height: 1.05; }
.cifra span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
@media (max-width: 800px) { .cifras-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; } .cifra:nth-child(3) { border-left: 0; } }

.municipio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; margin: 0 auto; }
.collage > div { position: absolute; border-radius: 26px; background-size: cover; background-position: center; box-shadow: var(--shadow-lg); transition: transform .9s var(--ease); }
.collage-a { inset: 0 24% 32% 0; }
.collage-b { inset: 36% 0 0 26%; border: 8px solid #fff; }
.collage-c { inset: 4% 0 66% 66%; border: 6px solid #fff; }
.collage:hover .collage-a { transform: translate(-8px, -8px) rotate(-1deg); }
.collage:hover .collage-b { transform: translate(8px, 8px) rotate(1deg); }
.collage:hover .collage-c { transform: translate(8px, -10px) rotate(2deg); }
.municipio-texto h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--primary-dark); margin: 6px 0 18px; }
.municipio-texto p { color: #55565a; line-height: 1.8; }
.municipio-texto blockquote { position: relative; margin: 30px 0; padding: 26px 0 0; font-size: 1.5rem; font-weight: 600; color: var(--primary); line-height: 1.35; }
.municipio-texto blockquote::before { content: '“'; position: absolute; top: -18px; left: -4px; font-size: 5rem; line-height: 1; color: var(--sand); }
.municipio-enlaces { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .municipio-grid { grid-template-columns: 1fr; gap: 40px; } }

.galeria-sec { padding-bottom: 90px; }
.galeria-pista { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(24px, calc((100vw - 1200px) / 2)) 30px; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.postal { position: relative; flex: none; width: min(360px, 78vw); aspect-ratio: 3 / 4; border-radius: 26px; background-size: cover; background-position: center; scroll-snap-align: center; overflow: hidden; box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.postal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 4, 22, .85), rgba(40, 4, 22, 0) 55%); }
.postal span { position: absolute; left: 24px; bottom: 22px; right: 24px; z-index: 1; color: #fff; font-size: 1.25rem; font-weight: 700; }
.postal:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-lg); }
.transp-nota { padding: 40px 0 10px; color: var(--text-muted); }
.transp-nota a { color: var(--primary); font-weight: 600; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .marquee-pista, .ident-hero-escudo img, .ident-fondo, .ident-orbe { animation: none; }
    .portada-texto > *, .ident-hero-texto > * { opacity: 1; animation: none; }
}
