/* --- VARIABLES --- */
:root {
    --primary: #9D2449; /* Guinda Morena */
    --primary-dark: #7d1c3a;
    --gold: #B38E5D;    /* Dorado Oficial */
    --text-dark: #333333;
    --bg-light: #f4f6f9;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background-color: #fff; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* --- NAVBAR --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 10px 0; background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.logo-img { height: 45px; }
.logo-text h1 { font-size: 1.1rem; margin: 0; }
.logo-text span { font-size: 0.65rem; color: var(--gold); font-weight: 800; display: block; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: #444; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important; padding: 10px 20px; border-radius: 50px; 
    font-size: 0.85rem !important; box-shadow: 0 4px 15px rgba(157, 36, 73, 0.3);
    transition: transform 0.2s;
}
.btn-nav:hover { transform: translateY(-2px); }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: white; min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: none; border-top: 3px solid var(--gold);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 12px 15px; border-bottom: 1px solid #eee; }

/* --- HERO --- */
.hero {
    height: 80vh;
    background: linear-gradient(to right, rgba(157, 36, 73, 0.9), rgba(157, 36, 73, 0.4)), url('imagesh/fondo.png') no-repeat center center/cover;
    display: flex; align-items: center; color: white; position: relative;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding-top: 60px; }
.hero h2 { font-size: 3rem; margin: 15px 0; }
.hero-badge { background: var(--gold); padding: 5px 15px; font-size: 0.8rem; border-radius: 20px; font-weight: bold; letter-spacing: 1px; }

/* --- CARDS ACCESO --- */
.quick-access { margin-top: -60px; position: relative; z-index: 10; margin-bottom: 60px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }

.service-card {
    background: white; padding: 30px; border-radius: 12px;
    box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-5px) scale(1.02); border-bottom-color: var(--gold); }

/* Estilo destacado para Reporte Ciudadano */
.service-card.featured { 
    background: linear-gradient(135deg, var(--primary) 0%, #6d1933 100%); 
    color: white; border: none; position: relative; overflow: hidden;
}
.service-card.featured .icon-box { background: rgba(255,255,255,0.2); color: white; }
.service-card.featured .link-arrow { color: var(--gold); font-weight: 800; background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 4px; }
.service-card.featured p { color: rgba(255,255,255,0.9); }

.icon-box { width: 60px; height: 60px; background: #fdf2f4; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.link-arrow { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-top: 15px; display: inline-block; }

/* --- AVISOS (GRID 2x2) --- */
.avisos-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 2 Columnas */
    grid-template-rows: repeat(2, 300px); /* 2 Filas de 300px */
    gap: 20px; margin-top: 30px; 
}
.aviso-item {
    border-radius: 12px; overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow); transition: transform 0.3s;
    background: #000; position: relative;
}
.aviso-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: 0.3s; }
.aviso-item:hover { transform: scale(1.03); z-index: 2; }
.aviso-item:hover img { opacity: 1; }
/* Overlay para indicar click */
.aviso-item::after {
    content: '\f00e'; /* Icono Lupa FontAwesome */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: white; font-size: 2rem; opacity: 0; transition: 0.3s; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.aviso-item:hover::after { opacity: 1; }

@media(max-width: 768px){
    .avisos-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 250px); }
}

/* --- GACETA (Mejorada) --- */
.file-folder-container { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.file-item { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #f0f0f0; transition: 0.2s; }
.file-item:hover { background: #fdf9fa; }
.file-icon-box { width: 50px; height: 50px; background: #fff0f0; border-radius: 8px; color: #e74c3c; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 20px; }
.file-info h4 { font-size: 1rem; margin-bottom: 5px; color: #333; }
.file-info span { font-size: 0.8rem; color: #777; display: flex; gap: 10px; }
.btn-download { border: 1px solid var(--primary); background: white; color: var(--primary); padding: 8px 15px; border-radius: 5px; font-weight: 600; cursor: pointer; margin-left: auto; transition: 0.2s; }
.btn-download:hover { background: var(--primary); color: white; }

/* --- NOTICIAS (Diseño Rico) --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.news-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; height: 100%; position: relative;
}
.news-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.news-img { height: 220px; background-size: cover; background-position: center; position: relative; }

/* Pestaña de Categoría */
.category-badge { 
    position: absolute; top: 15px; left: 15px; 
    background: var(--gold); color: white; 
    padding: 5px 12px; border-radius: 4px; 
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.news-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.news-content h3 { font-size: 1.15rem; margin-bottom: 15px; line-height: 1.4; color: #222; }

/* Footer de la tarjeta */
.news-footer { 
    margin-top: auto; border-top: 1px solid #f0f0f0; padding-top: 15px; 
    display: flex; justify-content: space-between; align-items: center; 
    font-size: 0.8rem; color: #888; 
}
.news-date { display: flex; align-items: center; gap: 5px; }
.read-more { color: var(--primary); font-weight: 700; }

/* --- MODAL (Mejorado) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: none; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-box { background: white; width: 100%; max-width: 800px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; max-height: 95vh; animation: zoomIn 0.3s; }
.modal-header { padding: 15px 25px; background: #fff; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.close-modal { font-size: 1.5rem; cursor: pointer; color: #999; transition: 0.2s; }
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }

.modal-body-scroll { padding: 30px; overflow-y: auto; }

/* Imagen Fluida (NO CORTADA) */
.modal-news-image { 
    width: 100%; 
    height: auto; /* IMPORTANTE: Deja que la altura sea natural */
    max-height: none; /* Quita límites */
    border-radius: 8px; margin-bottom: 25px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.title-like-container { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.modal-news-title { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }

/* Botón Like GRANDE */
.like-btn { 
    background: white; border: 2px solid #ddd; padding: 10px 25px; 
    border-radius: 50px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; 
    font-size: 1rem; font-weight: 700; color: #555; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.like-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.like-btn.liked { background: var(--primary); border-color: var(--primary); color: white; }

.news-text-body { font-size: 1.1rem; line-height: 1.8; color: #444; text-align: justify; }
.news-text-body p { margin-bottom: 15px; }

/* Galería */
.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: 6px; cursor: pointer; opacity: 0.6; transition: 0.2s; }
.gallery-thumb:hover { opacity: 1; transform: scale(1.05); }

/* --- FOOTER --- */
footer { background: #1a1a1a; color: #ccc; margin-top: 50px; padding-top: 50px; }
.contact-card-wrapper { background: #252525; border-radius: 12px; display: flex; flex-wrap: wrap; margin-bottom: 40px; border-left: 5px solid var(--gold); }
.contact-info-box, .footer-form { flex: 1; padding: 40px; min-width: 300px; }
.info-list li { margin-bottom: 15px; display: flex; gap: 15px; align-items: center; font-size: 1rem; }
.footer-form input, .footer-form textarea { width: 100%; padding: 12px; background: #333; border: 1px solid #444; color: white; border-radius: 6px; margin-bottom: 15px; outline: none; }
.footer-form input:focus, .footer-form textarea:focus { border-color: var(--gold); }
.footer-bottom { padding: 25px; border-top: 1px solid #333; font-size: 0.9rem; opacity: 0.7; }

/* Inputs Modal Reporte */
.input-full { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; font-family: inherit; }

@keyframes zoomIn { from{transform:scale(0.9); opacity:0} to{transform:scale(1); opacity:1} }

/* Mobile Responsive */
.hamburger { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }
@media(max-width: 900px){
    .hamburger { display: block; }
    .nav-links { position: fixed; top: 60px; left: -100%; width: 100%; height: 100vh; background: white; flex-direction: column; padding: 30px; transition: 0.3s; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
    .nav-links.active { left: 0; }
    .hero h2 { font-size: 2.2rem; }
}



/* ----------------------------------------------------------------------- ESTILOS ESPECÍFICOS TURISMO ------------------------------------------ */

/* Hero Turismo */
.turismo-hero {
    /* CAMBIO: Ruta ajustada a la carpeta turismo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('turismo/turismofondo.png') no-repeat center center/cover;
    /* ... resto de propiedades igual ... */
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.turismo-title-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 4px solid white;
    padding: 20px 40px;
    backdrop-filter: blur(2px);
}

.section-header-turismo {
    padding: 60px 20px;
    text-align: center;
    background: white;
}
.section-header-turismo h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Galería Split Screen (Estilo Orizaba) */
.turismo-gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 50%; /* Pantalla dividida en 2 */
    height: 60vh; /* Altura considerable */
    overflow: hidden;
    cursor: pointer;
}

/* El 5to elemento (La Bocana) ocupa ancho completo para cerrar el diseño */
.gallery-item:nth-child(5) {
    width: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.4s;
}

.gallery-text {
    color: white;
    text-align: center;
    opacity: 0.9;
    transform: translateY(20px);
    transition: 0.4s;
}

.gallery-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}

.gallery-text span {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gold);
    padding: 5px 15px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
}

/* Efectos Hover */
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
    background: rgba(157, 36, 73, 0.4); /* Tinte Guinda al pasar el mouse */
}
.gallery-item:hover .gallery-text {
    transform: translateY(0);
    opacity: 1;
}

/* Sección Gastronomía */
.gastro-section {
    padding: 80px 20px;
    background: #fff;
}
.category-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 40px 0 20px;
    border-left: 5px solid var(--gold);
    padding-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gastro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gastro-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}
.gastro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--gold);
}
.gastro-img-placeholder {
    height: 180px;
    background-color: #ddd;
    background-image: url('https://placehold.co/600x400/9D2449/FFF?text=Platillo'); /* Placeholder por defecto */
    background-size: cover;
    background-position: center;
}
.gastro-info {
    padding: 20px;
}
.gastro-info h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.gastro-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media(max-width: 768px) {
    .turismo-title-main { font-size: 2.5rem; border-width: 2px; padding: 10px 20px; }
    .gallery-item { width: 100%; height: 40vh; }
    .gallery-text h3 { font-size: 1.8rem; }
}