/* --- Global Styles & Reset --- */
:root {
  --primary-blue: #00a0e3;
  --dark-text: #222;
  --body-text: #5f6263;
  --white: #ffffff;
  --light-bg: #f2f3f8;
  --footer-bg: #f2f3f8;
  --footer-text: #757575;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--body-text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}

/* --- Header & Navigation --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.header .logo img {
  height: 70px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  padding: 0 15px;
}

.nav-links a {
  color: var(--dark-text);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 400;
  /* Corrected font weight */
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.header-extra-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-extra-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-extra-links img {
  height: 60px;
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  height: 500px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.goltda.cl/static/images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  padding: 20px;
  margin-bottom: 50px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 35px;
  font-weight: 700;
  max-width: 700px;
}

/* --- Branding Separator --- */
.branding-separator {
  padding: 20px 20px;
  /* Reduced padding for a tighter look */
  text-align: center;
  margin-bottom: 50px;
}

.branding-separator h2 {
  font-weight: 400;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.branding-separator img {
  max-width: 100%;
  height: auto;
}

/* --- Values Section --- */
.values-section {
  background-color: var(--white);
  text-align: center;
  margin-bottom: 90px;
}

.values-section h2 {
  color: var(--dark-text);
  font-weight: 400;
}

.values-section p {
  max-width: 600px;
  margin: 0 auto 40px auto;
  margin-bottom: 50px;
}

.values-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.value-item {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

/* --- Stats Section --- */
.stats-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://www.goltda.cl/static/images/stats-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  margin-bottom: 70px;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item img {
  height: 60px;
  margin-bottom: 15px;
}

.stat-item h5 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

/* --- Topics Section --- */
.topics-section {
  background-color: var(--white);
  text-align: center;
  margin-bottom: 70px;
}

.topics-section h2 {
  color: var(--dark-text);
  font-weight: 400;
}

.topics-grid {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.topic-card {
  flex: 1;
  min-width: 300px;
  height: 300px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.topic-card:hover {
  transform: scale(1.03);
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.topic-card h5 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background-color: var(--footer-bg);
  padding: 60px 0;
  color: var(--footer-text);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h6 {
  color: var(--dark-text);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
  font-size: 13px;
}

.social-icons a {
  margin-right: 15px;
}

.social-icons img {
  height: 24px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  background: var(--white);
  border-top: 1px solid #eee;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {

  .nav-links,
  .header-extra-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header {
    position: relative;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #eee;
    padding: 10px 0;
    z-index: 100;
  }

  .nav-links.active li {
    padding: 15px 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .values-grid,
  .stats-grid,
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
