/* Estilo base */
body {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background-color: #f3e9db;
  color: #1e2a38;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  height: 90vh;
  background-image: url('roof.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Header con logo y navegación horizontal */
header {
  background-color: #1a1f2b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  color: white;
  flex-wrap: wrap;
}

.branding {
  display: flex;
  align-items: center;
}

.branding img {
  height: 60px;
  margin-right: 15px;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.nav-menu a:hover {
  color: #f3e9db;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 2em;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Contenido principal */
.container {
  padding: 40px 20px;
  text-align: center;
}

.container h2 {
  color: #991b1b;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.container p {
  font-size: 1.1em;
  max-width: 600px;
  margin: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #991b1b;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  margin-top: 20px;
}

.btn:hover {
  background-color: #7f1717;
}

/* Footer */
footer {
  background-color: #1a1f2b;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .branding {
    flex-direction: column;
    align-items: flex-start;
  }

  .branding img {

    margin-bottom: 10px;
    margin-right: 0;
  }

  .menu-toggle {
    display: block;
    margin-top: 10px;
  }

  .nav-menu {
    width: 100%;
    display: none;
    margin-top: 10px;
    transition: max-height 0.3s ease;
    overflow: hidden;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 10px;

  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;

    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Layout en dos columnas */
.two-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.text-content {
  flex: 1;
  min-width: 280px;
}

.gallery-slider {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 250px;
  overflow: hidden;

  border-radius: 10px;
}

.gallery-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.gallery-slider img.active {
  opacity: 1;
}

/* Adaptar .two-columns en pantallas pequeñas */
@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
    align-items: center;
  }

  .gallery-slider {
    width: 100%;
    max-width: 90%;
    height: auto;
    aspect-ratio: 4 / 3; /* Mantiene proporción sin cortar */
    margin-top: 20px;
  }

  .gallery-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
}

.gallery-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
}

.service-description {
  margin-top: 20px;
  text-align: center;
}

.service-description h3 {
  color: #991b1b;
  margin-bottom: 10px;
}

.service-description p {
  font-size: 1em;
  color: #1e2a38;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .gallery-slider-container {
    max-width: 100%;
  }

  .service-description {
    padding: 0 20px;
  }
}

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icons img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1); /* Blanco sobre fondo oscuro */
}

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