/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
}

.logo {
  font-size: 1.5rem;
  letter-spacing: 7px;
  font-weight: 100;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #007bff;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}
/*carrusel index*/
/* Contenedor de cada slide */
.carrusel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}


.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.contenido-slide {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Botón */
.btn-ver-obras {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: #e9e5e5;
  border: 1px solid #d8d8d8;
  text-decoration: none;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 0;
}

.btn-ver-obras:hover {
  background-color: #333;
  color: #fff;
  cursor: pointer;
}




/*biografia*/
.biografia {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-radius: 8px;
}

.bio-foto {
  width: 250px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.bio-texto {
  flex: 1;
}

.bio-texto h2 {
  margin-bottom: 1rem;
  color: #333;
}

.bio-texto p {
  line-height: 1.6;
  color: #555;
  font-size: 1rem;
}

/*contenido*/
section.contenido {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* Contenedor del formulario */
.formulario-contacto {
  max-width: 600px;
  margin: 4rem auto;
  background-color: #fff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Encabezado */
.formulario-contacto h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.formulario-contacto p {
  margin-bottom: 2rem;
  color: #666;
  font-size: 1rem;
}

/* Etiquetas */
.formulario-contacto label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
  font-size: 0.95rem;
}

/* Inputs y textarea */
.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-color: #0077ff;
  background-color: #fff;
}

/* Botón */
.formulario-contacto button {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background-color: #0077ff;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #005fd1;
}

/* Mensaje de éxito */
.mensaje-exito {
  background-color: #e6f7e6;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  display: none;
  text-align: center;
}

.mensaje-exito.visible {
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .formulario-contacto {
    padding: 2rem;
    border-radius: 12px;
  }

  .formulario-contacto h2 {
    font-size: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .biografia {
    flex-direction: column;
    text-align: center;
  }

  .bio-foto {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .bio-texto {
    padding: 0 1rem;
  }
}

/* OBRAS -------------------*/
.secciones-obras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem;
  background-color: #fafafa;
  min-height: 80vh;
}

.obra-categoria {
  text-decoration: none;
  text-align: center;
  color: #333;
  max-width: 200px;
  transition: transform 0.3s ease;
}

.obra-categoria:hover {
  transform: scale(1.05);
}

.obra-categoria img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.obra-categoria:hover img {
  border-color: #888;
}

.obra-categoria h2 {
  font-size: 1.2rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 400;
}

/* galeria-obras-----------*/
.galeria-obras {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-obras h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: 'Helvetica Neue', sans-serif;
  color: #222;
  font-weight: 400;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.galeria img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.galeria img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/*obra detalle----------*/
.obra-detalle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  gap: 2rem;
}

.imagen-obra img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detalle-obra h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Helvetica Neue', sans-serif;
  color: #222;
}

.detalle-obra p {
  font-size: 1rem;
  color: #555;
  margin: 0.5rem 0;
  font-family: 'Helvetica Neue', sans-serif;
}

@media (min-width: 768px) {
  .obra-detalle {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .detalle-obra {
    padding-left: 2rem;
  }
}

/* botón para adquirir*/
.btn-adquirir {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid #333;
  background-color: transparent;
  color: #333;
  text-decoration: none;
  font-family: 'Helvetica Neue', sans-serif;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.btn-adquirir:hover {
  background-color: #333;
  color: #fff;
}

/*Letrero de VENDIDO */
.vendido {
  margin-top: 1rem;
  font-size: 1rem;
  font-style: italic;
  color: #888;
  opacity: 0.85;
}

/*SECCIÓN SERVICIOS*/
.contenido {
  text-align: center;
}

.servicio-seccion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 20px;
  background-color: #fefefe;
  max-width: 1400px;
  margin: auto;
}



.servicio-tarjeta {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

/* Overlay más oscuro para mejor contraste */
.servicio-tarjeta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45); /* Sutil oscurecimiento */
  z-index: 0;
}

.servicio-contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); /* Mejora la legibilidad */
  box-sizing: border-box;
}

.servicio-contenido h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 600;
}

.servicio-contenido p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

.servicio-tarjeta:hover {
  transform: scale(1.02);
}


@media (min-width: 700px) and (max-width: 1399px) {
  .servicio-seccion {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (min-width: 1100px) {
  .servicio-seccion {
    grid-template-columns: repeat(4, 1fr);
  }
}


/*SERVICIOS - carrusell */


.clientes-confianza {
  padding: 50px 20px;
  background-color: #f9f9f9;
  overflow: hidden;
}

.carrusel-titulo {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
}

.carrusel-obras {
  overflow: hidden;
  width: 100%;
}

.carrusel-track {
  display: flex;
  width: max-content;
  animation: desplazamiento 40s linear infinite;
}

.obra-cliente {
  flex: 0 0 auto;
  width: 250px;
  margin-right: 20px;
}

.obra-cliente img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Animación fluida */
@keyframes desplazamiento {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/*BOTÓN FLOTANTE*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background-color: #f9f9f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}



/* footer */
.footer {
  background-color: #f5f5f5;
  padding: 2rem 1rem;
  text-align: center;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: #333;
  border-top: 1px solid #e0e0e0;
}

.footer-content p {
  margin: 0.3rem 0;
}

.footer strong {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/*REDES SOCIALES*/
.redes-sociales a {
  display: inline-block;
  background-color: rgba(226, 220, 220, 0.6); /* fondo negro semitransparente */
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.158); /* sombra suave alrededor del círculo */
}

.redes-sociales a:hover {
  background-color: rgba(119, 118, 118, 0.9);
  transform: scale(1.1);
}

.redes-sociales a img {
  filter: brightness(1) invert(0);
  width: 24px;
  height: 24px;
  /* sombra para que el ícono blanco resalte más */
  filter: drop-shadow(1px 1px 1px rgba(139, 135, 135, 0.8));
  transition: filter 0.3s ease;
}

.redes-sociales a:hover img {
  filter: drop-shadow(2px 2px 2px rgb(184, 183, 183));
}

/*CONTENIDO POLÍTICAS*/
.pagina-legales {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  line-height: 1.7;
  color: #333;
}

.pagina-legales h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #111;
}

.pagina-legales h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
  color: #222;
}

.pagina-legales ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.pagina-legales ul li {
  margin-bottom: 0.5rem;
}

.pagina-legales p {
  margin: 1rem 0;
  font-size: 1rem;
  color: #444;
}

.pagina-legales a {
  color: #0077ff;
  text-decoration: underline;
}

.pagina-legales .actualizacion {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

/*Políticas legales */
.politicas-legales {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.politicas-legales a {
  color: #666;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.politicas-legales a:hover {
  color: #000;
}

/*BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner a {
  color: #aee;
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 0.8rem;
}

.cookie-buttons button {
  margin: 0 0.5rem;
  padding: 0.5rem 1.2rem;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-buttons button:hover {
  background-color: #666;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cookie-modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  font-size: 0.95rem;
}

.cookie-modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #222;
}

.modal-buttons {
  text-align: right;
  margin-top: 1.5rem;
}

.modal-buttons button {
  padding: 0.5rem 1.2rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-buttons button:hover {
  background-color: #005fd1;
}

.oculto {
  display: none !important;
}

/*panel de configuración cookies*/
/* ==== Panel de Configuración de Cookies ==== */
.cookie-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  z-index: 99999;
  max-width: 100%;
}

.cookie-panel-content {
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

.cookie-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cookie-panel form label {
  display: block;
  margin-bottom: 1rem;
}

.cookie-panel-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cookie-panel button {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#btnGuardarPreferencias {
  background-color: #007bff;
  color: white;
}

#btnCancelarPreferencias {
  background-color: #f1f1f1;
  color: #333;
}

/* Visibilidad */
.cookie-banner,
.cookie-panel {
  transition: all 0.3s ease;
}

.cookie-banner.oculto,
.cookie-panel.oculto {
  display: none;
}





