:root {
  --primary-color: #000000;
  --secondary-color: #2d2d2d;
  --third-color: #898b86;
  --accent-color: #FFFFFF;
  --text-color: #333333;
  --light-text-color: #FFFFFF;
  --section-bg-light: #FFFFFF;
  --section-bg-dark: #f0f0f0;
  --card-bg: #3a3a3a;
  --font-family: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--section-bg-light);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #2d2d2d;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* For mobile menu positioning */
}

header .logo img {
  height: 80px;
  display: block;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none; /* Hidden by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002; /* Above nav */
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-text-color);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
}
/* Hamburger animation to X */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


header nav {
  /* Desktop navigation */
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

header nav ul li {
  margin-left: 25px;
}

header nav ul li a {
  text-decoration: none;
  color: var(--light-text-color);
  font-weight: bold;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #cccccc;
}

header .contact-button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header .contact-button:hover {
  background-color: #000;
  color: #fff !important;
}

/* Hero Section */
#hero {
  background-image: url('assets/bg.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  color: var(--light-text-color);
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0px 150px;
  width: 100%;
  max-width: 100%;
}

#hero .hero-logo-container {
  text-align: right;
  flex-basis: 100%;
}

#hero .hero-logo-container img {
  max-width: 300px;
  margin-bottom: 10px;
}

#hero .hero-logo-container .constructor-text {
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#hero .hero-text-container {
  background-color: rgb(45 45 45);
  padding: 80px;
  border-radius: 0px;
}

#hero .hero-text-container h1 {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

#hero .hero-text-container p {
  font-size: 1em;
  line-height: 1.6;
}

/* Section Title Styling */
.section-title {
  font-size: 4em;
  font-weight: 900;
  margin-bottom: 40px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
}

.section-title .diamond {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  transform: rotate(45deg);
  margin-right: 15px;
  display: inline-block;
}

/* General Section Styling */
.content-section {
  padding: 60px 0;
}
.content-section p {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
}

/* Sobre Nosotros Section */
#sobre-nosotros {
  background-color: var(--section-bg-light);
}
#sobre-nosotros .intro-text{
    margin-bottom: 40px;
}

.mision-vision-valores {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.mision-vision-valores .card {
  background-color: var(--card-bg);
  color: var(--light-text-color);
  padding: 30px 45px;
  border-radius: 0px;
}

.mision-vision-valores .card h3 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: var(--accent-color);
  text-align: center;
}
.mision-vision-valores .card p,
.mision-vision-valores .card ul {
  font-size: 0.9em;
  color: #dddddd;
  line-height: 1.6;
}
.mision-vision-valores .card ul {
  list-style: none;
  padding-left: 0;
}
.mision-vision-valores .card ul li {
  margin-bottom: 8px;
}

/* Principales Servicios Section */
#servicios {
  background-color: var(--section-bg-light);
}
#servicios .container {
  display: flex;
  align-items: center;
  gap: 40px;
}
#servicios .text-content {
  flex-basis: 60%;
}
#servicios .image-content {
  flex-basis: 40%;
}
#servicios .image-content img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* Nuestras Políticas Section */
#politicas {
  background-color: #3E3E3E;
  color: var(--light-text-color);
  padding: 60px 0;
}
#politicas .section-title .diamond {
    background-color: var(--light-text-color);
}
#politicas .section-title {
  color: var(--light-text-color);
}
#politicas p, #politicas ul {
  color: #dddddd;
    font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}
#politicas ul {
  list-style: none;
  padding-left: 0;
}
#politicas ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  display: flex;
}

/* Nuestras Obras Section - Slider */
#obras {
  background-color: var(--section-bg-light);
}
.slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  box-sizing: border-box;
}
.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}
.slider-nav button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5em;
  line-height: 1;
}
.slider-nav button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Contáctanos Section */
#contacto {
  text-align: center;
  padding: 60px 0 30px 0;
}
#contacto .section-title{
  justify-content: center;
}
#contacto .contact-intro-text {
  font-size: 1.1em;
  color: #555;
  max-width: 600px;
  margin: 0 auto 30px auto;
}
#contacto .contact-logo img {
  max-width: 250px;
  margin-bottom: 5px;
}
#contacto .contact-logo .constructor-text {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* Footer (Contact Info Bar) */
footer {
  background-color: #2C2C2C;
  color: var(--light-text-color);
  padding: 40px 0 20px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
footer .footer-column {
  flex: 1;
  min-width: 250px;
}
footer .footer-logo img {
  height: 60px;
  margin-bottom: 10px;
}
footer .footer-logo p {
  font-size: 0.8em;
  color: #aaaaaa;
  max-width: 250px;
}
footer h4 {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--accent-color);
}
footer address, footer .contact-item {
  font-style: normal;
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #cccccc;
  display: flex;
  align-items: center;
}
footer address p, footer .contact-item p {
  margin: 0;
  color: #cccccc;
}
footer address img, footer .contact-item img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
footer a {
  color: #cccccc;
  text-decoration: none;
}
footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
footer .social-media a img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  transition: transform 0.2s ease;
}
footer .social-media a:hover img {
  transform: scale(1.1);
}
footer .map-placeholder {
  width: 100%;
  max-width: 250px;
  height: 150px;
  background-color: #555;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  color: #aaa;
}

.copyright {
  text-align: center;
  padding: 20px 0;
  background-color: #1e1e1e;
  color: #999999;
  font-size: 0.85em;
  border-top: 1px solid #333;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  #hero .hero-logo-container{
    text-align: center !important;
  }
  #hero .hero-text-container{
    padding: 20px;
    text-align: left;
  }
  #hero .container {
      flex-direction: column;
      text-align: center;
  }
  #hero .hero-text-container {
        margin-top: 30px;
  }
  .mision-vision-valores {
      flex-direction: column;
  }
  .mision-vision-valores .card {
      flex-basis: 100%;
  }
    #servicios .container {
      flex-direction: column;
  }
  #servicios .text-content, #servicios .image-content {
      flex-basis: 100%;
  }
  #servicios .image-content {
      margin-top: 30px;
  }
}

@media (max-width: 768px) {
  header .logo img {
    height: 50px;
    display: block;
  }
  .menu-toggle {
      display: block; /* Show hamburger button */
  }
  header nav {
      /* The nav element itself will be positioned */
      position: fixed;
      top: 81px; /* Position below the header */
      left: 0;
      width: 100%;
      background-color: rgba(0, 0, 0);
      max-height: 0; /* Collapsed by default */
      overflow: hidden;
      transition: max-height 0.5s ease-out;
  }
  header nav.nav-active {
      max-height: 500px; /* Or enough height to show all items */
  }

  header nav ul {
      flex-direction: column;
      width: 100%;
      padding: 0; /* Reset padding */
  }
  header nav ul li {
      margin: 0;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  header nav ul li:last-child {
      border-bottom: none;
  }
  header nav ul li a {
      display: block;
      padding: 15px 20px;
      width: 100%;
      font-size: 1em; /* Ensure readability */
  }
  header .contact-button { /* Ensure contact button in nav is also styled for mobile */
      display: block;
      margin: 10px auto; /* Center it if it's the last item */
      width: calc(100% - 40px); /* Full width with some padding */
      text-align: center;
  }

  /* Adjust header container if logo and button are too wide */
  /* header .container {
      flex-wrap: wrap;
  } */

  .section-title {
      font-size: 2.2em;
  }
  .section-title .diamond {
      width: 15px;
      height: 15px;
  }
    #hero .hero-logo-container img {
      max-width: 200px;
  }
  #hero .hero-logo-container .constructor-text {
      font-size: 1.5em;
  }
  #hero .hero-text-container h1 {
      font-size: 1.3em;
  }
  #hero .hero-text-container p {
      font-size: 0.9em;
  }
  .slide img {
      height: 300px;
  }
  footer .container {
      flex-direction: column;
      align-items: center;
      text-align:center;
  }
    footer .footer-column {
      margin-bottom: 20px;
      align-items: center;
      display: flex;
      flex-direction: column;
  }
}

.custom-bullet {
  position: relative;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  margin: 15px 15px 15px 0px;
}

.custom-bullet::before,
.custom-bullet::after {
  content: '';
  position: absolute;
  background-color: #333;
  width: 10px;
  height: 20px;
}

.custom-bullet::before {
  left: 0;
  top: 0;
}

.custom-bullet::after {
  left: 13px;
  top: 0px;
  width: 10px;
  height: 20px;
  background: linear-gradient(to top, #2d2d2d 60%, #fff 50%, #fff 70%, #999 70%);
}

.custom-bullet-white {
  position: relative;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  margin: 15px 15px 15px 0px;
}

.custom-bullet-white::before,
.custom-bullet-white::after {
  content: '';
  position: absolute;
  background-color: #fff;
  width: 10px;
  height: 20px;
}

.custom-bullet-white::before {
  left: 0;
  top: 0;
}

.custom-bullet-white::after {
  left: 13px;
  top: 0px;
  width: 10px;
  height: 20px;
  background: linear-gradient(to top, #fff 60%, #fff 50%, #3e3e3e 70%, #fff 70%);
}

.custom-bullet-white-small {
  position: relative;
  width: 0px;
  height: 20px;
  transform: rotate(45deg);
  margin: 0px 20px 15px 0px;
}

.custom-bullet-white-small::before,
.custom-bullet-white-small::after {
  content: '';
  position: absolute;
  background-color: #fff;
  width: 5px;
  height: 15px;
}

.custom-bullet-white::before {
  left: 0;
  top: 0;
}

.custom-bullet-white-small::after {
  left: 8px;
  top: 0px;
  width: 5px;
  height: 15px;
  background: linear-gradient(to top, #fff 60%, #fff 40%, #3e3e3e 60%, #fff 80%);
}

.third-bg{
  background-color: var(--third-color) !important;
}

.align-left{
  text-align: left !important;
}

.two-columns{
  columns: 2;
}

.mail-link{
  cursor: pointer;
  color: #248492;
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: #fff;
  background-color: #2d2d2d;
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
  cursor: pointer;
}
