/*
Theme Name: Municipio de Combarbalá
Theme URI: https://municombarbala.cl
Author: Pedro Egaña
Description: Theme institucional para Ilustre Municipalidad de Combarbalá
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: municipio-theme
*/

/* Base */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Header institucional */
.site-header {
  background: url('images/hd-bl.png') center/cover no-repeat;
  padding: 1rem 2rem;
}


.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 105px;
  width: auto;
}

/* Menú principal */
.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-list li a:hover {
  text-decoration: underline;
}

/* Hero con overlay */
.hero-wrapper {
  position: relative;
}

.hero {
  background: url('images/banner.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero h1,
.hero button {
  position: relative;
  z-index: 1;
}

/* Ocultar texto del hero */
.hero h1 {
  display: none;
}

/* Slider superpuesto */
.slider-section {
  position: absolute;
  bottom: -25%; /* menos al medio, se ve más banner */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
}

/* Sección siguiente */
.grid-section {
  margin-top: 350px;
  position: relative;
  z-index: 1;
}

/* Botón hero */
.hero button {
  background-color: #2ECC71;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer */
footer {
  background: url('images/hd-bl.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* Top bar */
.top-bar {
  background-color: #000;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.top-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.top-links li a:hover {
  text-decoration: underline;
}

/* Botón emergencias */
.emergency-btn {
  background-color: #FFD700;
  color: black;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

/* Ítem especial */
.top-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 500;
}

.top-logo {
  height: 20px;
  width: auto;
  display: block;
}

.top-item span {
  line-height: 1;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero {
    min-height: 35vh;
    padding: 1rem;
  }

  .slider-section {
    position: relative;
    bottom: auto;
    transform: none;
    margin-top: 1rem;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .grid-section {
    margin-top: 1rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .logo img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 30vh;
    padding: 0.8rem;
  }

  .hero button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .nav-list {
    gap: 0.5rem;
  }
}

