:root {
  --green-dark: #152b90;
  --green-light: #01bcf1;
  --text-dark: #333;
  --text-light: #fff;
  --font: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: #fafafa;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Top Bar */
.top-bar {
  background: var(--green-dark);
  color: var(--text-light);
  font-size: 15px;
  padding: 10px 0;
  text-align: center;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 1px;
}

/* Header */
.main-header {
  background: var(--text-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: flex-start;
}

.logo img {
  margin-top: -40px;
  height: 100px;
  width: auto;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
}

.logo-text .ham {
  color: var(--green-dark);
}

.logo-text .sil {
  color: var(--green-light);
}

.logo-text p {
  font-size: 14px;
  color: var(--green-dark);
  margin: 0;
}

.logo-text .subtitle {
  font-size: 12px;
  font-style: italic;
  color: var(--green-dark);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--green-light);
}

/* Contact Section */
.contact-section {
  padding: 30px 20px;
}

.contact-title {
  font-size: 2.5rem;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 10px;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  background-color: #f0f4ff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card i {
  color: var(--green-dark);
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.contact-card p,
.contact-card a {
  font-size: 1rem;
  color: #444;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--green-light);
}

/* Map Section */
.map-section {
  padding: 50px 20px;
  background-color: #f9faff;
  margin-top: 40px;
  border-top: 3px solid var(--green-light);
}

.map-title {
  font-size: 2rem;
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.map-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--green-dark);
}

@media (max-width: 768px) {
  .burger {
    display: block; /* aparece solo en móvil */
  }

  .nav {
    position: absolute;
    top: 70px; /* debajo del header */
    right: 0;
    left: 0; /* ocupa todo el ancho */
    background: var(--text-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0; /* oculto por defecto */
    transition: max-height 0.3s ease;
  }

  .nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid #eee;
  }

  .nav a {
    display: block;
    padding: 15px;
    color: var(--green-dark);
    font-weight: 600;
  }

  .nav a:hover {
    background: var(--green-light);
    color: var(--text-light);
  }

 .nav.open {
    max-height: 500px; /* nueva altura suficiente para mostrar todos los enlaces */
    transition: max-height 0.3s ease;
  }

}
