/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  background-color: #D3D3D3; /* Color de fondo de la página */
  color: #FFFFFF;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: linear-gradient(to bottom, #1d1d1d 90%, transparent 95%);
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header .logo img {
  max-height: 60px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: #FFFFFF;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #FFD60A;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.5rem;
  color: #FFFFFF;
  cursor: pointer;
}

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

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

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('images/fondo1.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: #aca825;
  text-align: center;
  padding: 150px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: right;
}

.hero-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.hero-content img {
  max-width: 100%;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 20px;
  opacity: 0.9;
  display: block;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
  font-style: italic;
  color: #FFFFFF;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.whatsapp-btn {
  background: #6c6500;
  color: #FFFFFF;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.whatsapp-btn:hover {
  background: #136f38;
}

.whatsapp-btn i {
  font-size: 1.2rem;
}

/* Nosotros */
.nosotros {
  padding: 80px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(2, 2, 0, 0.95)), url('images/p6.jpg') center/cover no-repeat;
  background-attachment: fixed;
  text-align: center;
}

.nosotros h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 40px;
}

.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  text-align: justify;
}

.column {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.column h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 15px;
}

.column p {
  font-size: 1.2rem;
  font-weight: 400;
  text-align: justify;
}

.column img {
  max-width: 100%;
  border-radius: 10px;
  filter: brightness(40%);
}

/* Servicios */
.servicios {
  padding: 120px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)), url('images/fondo8.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.servicios h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 60px;
}

.tarjetas-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.tarjeta {
  background: rgba(55, 55, 55, 0.8);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
}

.img-icono {
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
  filter: brightness(70%);
  filter: grayscale(80%);
  transition: filter 0.3s ease;
}

.tarjeta:hover .img-icono {
  filter: brightness(100%);
  filter: grayscale(0);
}

.contenido {
  padding: 60px;
  text-align: left;
}

.contenido h3 {
  font-size: 2.0rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.contenido ul {
  list-style: none;
  padding-left: 15px;
}

.contenido li {
  font-size: 1.2rem;
  margin-bottom: 18px;
  text-align: center;
}

/* Portafolio */
.proyectos {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('images/6.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.proyectos h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 40px;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.proyecto-item {
  position: relative;
  width: 500px;
  height: 400px;
  display: block;
}

.proyecto-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease; /* Transición para el movimiento */
}

.proyecto-item:hover {
  transform: translateY(-5px); /* Mueve el contenedor interno en hover */
}

.proyecto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(80%);
  transition: filter 0.3s ease; /* Transición para el filtro */
}

.proyecto-item:hover img {
  filter: grayscale(0); /* Quita el filtro en hover */
}

.proyecto-item .project-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 500;
  background: rgba(55, 55, 55, 0.9);
  padding: 15px;
  border-radius: 10px 10px 0 0;
  text-align: center;
  z-index: 10;
}

/* Clientes */
.clientes {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(rgba(2, 2, 0, 0.85), rgba(3, 3, 0, 0.9)), url('images/fondo5.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.clientes h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 40px;
}

.clientes-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.cliente {
  max-width: 400px;
  text-align: left;
}

.cliente p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 10px;
}

.cliente span {
  font-size: 1rem;
  color: #FFD60A;
}

/* Contacto */
.contacto {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/p1.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.contacto h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 40px;
}

.contacto-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.social-text {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 20px;
}

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

.social-icons a {
  color: #FFFFFF;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #FFD60A;
}

/* Footer */
footer {
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 40px 20px;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: #E5E5E5;
}

/* Project Hero */
.project-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('images/6.jpg') center/cover no-repeat;
  background-attachment: fixed; /* Efecto de paralaje */
  color: #FFFFFF;
  text-align: center;
  padding: 150px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero.project-alvarez-barba {
  background-image: url('images/a7.jpg');
}

.project-hero.project-vivienda-casa-navarra {
  background-image: url('images/8.jpg');
}

.project-hero.project-renova {
  background-image: url('images/9.jpg');
}

.project-hero.project-more {
  background-image: url('images/p5.jpg');
}

.project-hero-content h1 {
  font-size: 3rem;
  font-weight: 400;
}

/* Project Details */
.project-details {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/3.jpg') center/cover no-repeat;
  background-attachment: fixed; /* Efecto de paralaje */
}

.project-details h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 40px;
}

.details-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.works, .testimonial {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.works h3, .testimonial h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.works ul {
  list-style: none;
  padding-left: 0;
}

.works li {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 10px;
}

.testimonial span {
  font-size: 1rem;
  color: #FFD60A;
}

/* Project Gallery */
.project-gallery {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('images/C6.jpeg') center/cover no-repeat;
  background-attachment: fixed; /* Efecto de paralaje */
}

.project-gallery h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 60px;
}

.gallery-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  position: relative;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  width: 800px;
  height: 640px;
  background: #000000; /* Fondo negro */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Conserva proporciones sin recortar */
  border-radius: 10px;
}

.carousel .prev, .carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.carousel .prev:hover, .carousel .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.carousel-dots .dot.active, .carousel-dots .dot:hover {
  opacity: 1;
}

/* Hero Columns for Project Pages */
.hero-columns {
  display: flex;
  max-width: 800px;
  width: 100%;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.column-left {
  flex: 1;
  text-align: right;
}

.column-left h1 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #FFFFFF;
  text-transform: uppercase;
}

.column-right {
  flex: 2;
  text-align: left;
}

.column-right h2 {
  font-size: 4rem;
  font-weight: 500;
  color: #FFFFFF;
}

/* Project Details Adjustments */
.project-details .details-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: left;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.project-details .works {
  margin-left: calc(33.33% + 20px); /* Alinea con la segunda columna (column-right) */
}

.project-details .works p {
  text-align: justify;
  font-size: 1.2rem;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
  }

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

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 10px;
    font-size: 1.2rem;
  }

  /* Hero */
  .hero {
    padding: 100px 20px;
    text-align: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6)), url('images/fondo1.jpg') center/cover no-repeat;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content img {
    max-width: 300px;
    margin: 0 auto 15px;
    opacity: 0.9;
  }

  .hero p {
    font-size: 1.2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Nosotros */
  .nosotros {
    padding: 40px 20px;
  }

  .nosotros h2 {
    font-size: 2rem;
  }

  .nosotros-content {
    gap: 20px;
  }

  .column {
    min-width: 100%;
    padding: 10px;
  }

  /* Servicios */
  .servicios {
    padding: 40px 20px;
  }

  .servicios h2 {
    font-size: 2rem;
  }

  .tarjetas-servicios {
    gap: 20px;
  }

  .contenido {
    padding: 15px;
  }

  /* Portafolio */
  .proyectos {
    padding: 40px 20px;
  }

  .proyectos h2 {
    font-size: 2rem;
  }

  .proyecto-item {
    width: 100%;
    height: 250px;
  }

  .proyecto-item .project-title {
    font-size: 1rem;
    padding: 8px;
  }

  /* Clientes */
  .clientes {
    padding: 40px 20px;
  }

  .clientes h2 {
    font-size: 2rem;
  }

  .clientes-content {
    gap: 20px;
  }

  .cliente {
    max-width: 100%;
    padding: 0 20px;
  }

  /* Project Hero */
  .project-hero {
    padding: 100px 20px;
    min-height: 50vh;
  }

  .project-hero-content h1 {
    font-size: 2rem;
  }

  /* Project Details */
  .project-details {
    padding: 40px 20px;
  }

  .project-details h2 {
    font-size: 2rem;
  }

  .details-content {
    gap: 20px;
  }

  /* Hero Columns */
  .hero-columns {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .column-left, .column-right {
    flex: 1;
    text-align: center;
  }

  .column-left h1 {
    font-size: 2rem;
  }

  .column-right h2 {
    font-size: 2.5rem;
  }

  .project-details .works {
    margin-left: 0; /* Eliminar margen en móviles */
  }

  .project-details .details-content h2 {
    text-align: center;
  }

  /* Project Gallery */
  .project-gallery {
    padding: 40px 20px;
  }

  .project-gallery h2 {
    font-size: 2rem;
  }

  .carousel {
    max-width: 100%;
  }

  .image-container {
    width: 100%;
    height: 500px; /* Ajuste para pantallas medianas */
  }

  .carousel .prev, .carousel .next {
    font-size: 1.2rem;
    padding: 8px;
  }

  .carousel-dots .dot {
    width: 8px;
    height: 8px;
  }

  /* Contacto */
  .contacto {
    padding: 40px 20px;
  }

  .contacto h2 {
    font-size: 2rem;
  }

  /* Footer */
  footer {
    padding: 20px;
  }

  footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-content img {
    max-width: 250px;
  }

  .hero p {
    font-size: 1rem;
    max-width: 250px;
  }

  /* Nosotros */
  .nosotros h2 {
    font-size: 1.8rem;
  }

  .column p {
    font-size: 1rem;
  }

  /* Servicios */
  .servicios h2 {
    font-size: 1.8rem;
  }

  .contenido h3 {
    font-size: 1.3rem;
  }

  .contenido li {
    font-size: 0.9rem;
  }

  /* Portafolio */
  .proyectos h2 {
    font-size: 1.8rem;
  }

  .proyecto-item .project-title {
    font-size: 0.9rem;
  }

  /* Clientes */
  .clientes h2 {
    font-size: 1.8rem;
  }

  .cliente p {
    font-size: 1rem;
  }

  .cliente span {
    font-size: 0.9rem;
  }

  /* Project Hero */
  .project-hero-content h1 {
    font-size: 1.8rem;
  }

  /* Project Details */
  .project-details h2 {
    font-size: 1.8rem;
  }

  .works h3, .testimonial h3 {
    font-size: 1.3rem;
  }

  .works li, .testimonial p {
    font-size: 0.9rem;
  }

  /* Project Gallery */
  .project-gallery h2 {
    font-size: 1.8rem;
  }

  .image-container {
    height: 200px; /* Ajuste para pantallas pequeñas */
  }

  .carousel .prev, .carousel .next {
    font-size: 1rem;
    padding: 6px;
  }

  .carousel-dots .dot {
    width: 6px;
    height: 6px;
  }

  /* Contacto */
  .contacto h2 {
    font-size: 1.8rem;
  }

  .social-text {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 1.2rem;
  }

  /* Hero Columns */
  .column-left h1 {
    font-size: 1.8rem;
  }

  .column-right h2 {
    font-size: 2rem;
  }
}