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

html { 
  scroll-behavior: smooth; 
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

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

img { 
  width: 100%; 
  display: block; 
}

/* HEADER / NAV */

header{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  z-index: 10;
}

nav{
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo img{
  width: 60%;
}

.menu a{
  margin-left: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  transition: color 0.3s;
}

.menu a:hover { 
  color: #0077ff; 
}

 /* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1001;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color:#55B74B;
  color: #fff;
  font-size: 35px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #fff;
  color: #55B74B;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* BANNER (CAROUSEL) */
.banner{
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

.carousel{
  position: relative;
  width: 100%;
  height: 100%;
}

.slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active{
  opacity: 1;
  z-index: 1;
}

/* ANIMACIÓN APARICIÓN SECCIONES */
section{
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

section.visible{
  opacity: 1;
  transform: translateY(0);
}

/* INFORMES */
section#informes {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 1rem;
}

#informes h2 {
  text-transform: uppercase;
  font-size: 1.9rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #222;
}

#informes .informes-contenido {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

#informes .informes-texto {
  flex: 1 1 62%;
}

#informes .informes-texto p {
  margin: 0 0 1.2rem 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

#informes .informes-texto ul {
  margin: 1rem 0 1.5rem 1.3rem;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
}

#informes .informes-texto ul li {
  margin-bottom: 0.6rem;
}

#informes .informes-imagen {
  flex: 1 1 38%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#informes .informes-imagen img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* INTRO GALERIA */
section#introgaleria {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 1rem;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#introgaleria .introgaleria-contenido {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

#introgaleria .introgaleria-texto {
  flex: 1 1 62%;
}

#introgaleria .introgaleria-texto p {
  margin: 0 0 1.2rem 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* GALERÍA */
section#galeria{
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

#galeria .galeria-item{
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  height: 100%;
}

#galeria .galeria-media{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

#galeria .galeria-media img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

#galeria .galeria-media .overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 1rem;
}

#galeria .galeria-item:hover .galeria-media img{
  transform: scale(1.05);
  opacity: 0.9;
}

#galeria .galeria-item:hover .galeria-media .overlay{
  opacity: 1;
}

#galeria .galeria-contenido {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 12px;
}

#galeria .galeria-titulo{
  margin: 12px 12px 14px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: #222;
  line-height: 1.3;
}

#galeria .btn-minimal {
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
  padding-top: 14px;
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-minimal {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #111;
    border: 1px solid #111;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-minimal:hover {
    background-color: #918f8f;
    color: #fff;
}

.btn-minimal:active {
    transform: scale(0.97);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  width: 100%;
  padding: 0px 5% 0px 5%;
}

.obra {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.obra-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}

.obra-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.obra-info {
  padding-top: 12px;
}

.obra-info h3,
.obra-info p {
  margin: 0 0 2px 0;
  line-height: 1.35;
}

.obra-info h3 {
  font-size: 1rem;
  font-weight: 500;
}

.obra-info p {
  font-size: 0.8rem;
  font-weight: 400;
}

/* CONTACTO */
section#contacto{
  max-width: 1100px;
  margin: 4rem auto;
  padding: 1rem;
}

#contacto h2{
  text-transform: uppercase;
  font-size: 1.9rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #222;
}

#contacto .contacto-contenido {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

#contacto .contacto-imagen {
  flex: 1 1 38%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#contacto .contacto-imagen img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#contacto .contacto-texto {
  flex: 1 1 62%;
}

#contacto .contacto-texto p {
  margin: 0 0 1.2rem 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea{
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 12px;
}

button{
  padding: 0.8rem;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1.3rem;
}

button:hover{ 
  background: #005fcc; 
}

#formStatus{
  margin-top: 10px;
  font-size: 13px;
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 8px;
  padding: 10px;
}

#formStatus.success{
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  opacity: 1;
}

#formStatus.error{
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  opacity: 1;
}

#formStatus.sending{
  display: block;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  opacity: 1;
}

.fade-out{
  opacity: 0 !important;
  transition: opacity 0.8s ease;
}

.form-box {
  background:#fff;
  padding:25px;
  border-radius:8px;
  width:100%;
  box-shadow:0 5px 15px rgba(0,0,0,.1);
}

#recoverForm {
  display: none;
  width: 100%;
}

#recoverForm input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.link {
  margin-top:10px;
  font-size:13px;
  text-align:right;
  cursor:pointer;
  color:#000;
  text-decoration:underline;
}

.msg {
  display:none;
  margin-top:15px;
  text-align:center;
}

/* FOOTER */
footer{
  background: #111;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}


/* RESPONSIVO */
@media (max-width: 991px) {
  #informes .informes-contenido {
    gap: 2rem;
  }

  #informes .informes-texto p,
  #informes .informes-texto ul {
    font-size: 1.05rem;
  }

  #informes .informes-imagen img {
    max-width: 300px;
  }

  #introgaleria .introgaleria-contenido {
    gap: 2rem;
  }

   #introgaleria .introgaleria-texto p
   {
    font-size: 1.05rem;
  }

  #contacto .contacto-contenido {
    gap: 2rem;
  }

  #contacto .contacto-texto p {
    font-size: 1.05rem;
  }

  #contacto .contacto-imagen img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  
  nav{ 
    padding: 1rem 1.25rem; 
  }

  .menu a{ 
    margin-left: 1rem; 
  }

  .banner{ 
    height: 70vh; 
  }

  .slide .overlay{ 
    padding: 15px 20px; 
  }

  section#informes {
    margin: 3rem auto;
    padding: 1rem;
  }

  #informes h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  #informes .informes-contenido {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }

  #informes .informes-texto,
  #informes .informes-imagen {
    flex: 1 1 100%;
    width: 100%;
  }

  #informes .informes-texto p,
  #informes .informes-texto ul {
    font-size: 1rem;
  }

  #informes .informes-texto p {
    text-align: justify;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  #informes .informes-texto ul {
    margin-left: 2.2rem;
  }

  #informes .informes-imagen {
    justify-content: center;
  }

  #informes .informes-imagen img {
    max-width: 100%;
    width: 100%;
  }

  section#introgaleria {
    margin: 3rem auto;
    padding: 1rem;
    padding-bottom: 0;
  }

  #introgaleria .introgaleria-contenido {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }

  #introgaleria .introgaleria-texto
  {
    flex: 1 1 100%;
    width: 100%;
  }

  #introgaleria .introgaleria-texto p {
    font-size: 1rem;
    text-align: justify;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  #galeria{ 
    padding: 1rem; 
    gap: 6px; 
  }

  #galeria:hover {
    cursor: pointer;
  }

  #galeria .galeria-media img{ 
    height: 220px; 
  }

  #galeria .galeria-media .overlay{
    font-size: 0.95rem;
    padding: 0.5rem;
  }

  #galeria .galeria-titulo{
    font-size: 0.95rem;
    margin: 10px 10px 12px;
  }

  .btn-minimal {
        padding: 10px 20px;
        font-size: 13px;
    }

  section#contacto {
    margin: 3rem auto;
    padding: 1rem;
  }

  #contacto h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  #contacto .contacto-contenido {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }

  #contacto .contacto-texto,
  #contacto .contacto-imagen {
    flex: 1 1 100%;
    width: 100%;
  }

  #contacto .contacto-texto p {
    text-align: justify;
    font-size: 1rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  #contacto .contacto-imagen img {
    max-width: 100%;
    width: 100%;
  }
}


@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideAnimation {
  0%, 33% { opacity: 1; transform: translateY(0); }
  33.1%, 100% { opacity: 0; transform: translateY(30px); }
}

/* ====== ESTILOS LIGHTBOX ====== */
    .lightbox-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.9);
      justify-content: center;
      align-items: center;
      z-index: 999;
      flex-direction: column;
      transition: opacity 0.3s ease;
    }

    .lightbox-img {
      max-width: 90%;
      max-height: 80vh;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
      object-fit: contain;
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 2.2rem;
      color: #fff;
      cursor: pointer;
      transition: 0.3s;
    }

    .lightbox-close:hover {
      color: #0077ff;
    }

    .lightbox-nav {
      position: absolute;
      width: 100%;
      top: 50%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 30px;
    }

    .lightbox-nav .prev, 
    .lightbox-nav .next {
      font-size: 2.5rem;
      color: #fff;
      cursor: pointer;
      transition: color 0.3s;
      user-select: none;
    }

    .lightbox-nav .prev:hover,
    .lightbox-nav .next:hover {
      color: #0077ff;
    }

    @media (max-width: 768px) {
      .lightbox-img {
        max-width: 95%;
        max-height: 70vh;
      }
      .lightbox-nav .prev, 
      .lightbox-nav .next {
        font-size: 2rem;
      }
    }



/* ====== RESPONSIVE ====== */

/* Laptop / tablet horizontal */
@media (max-width: 1200px) {
  .galeria {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .galeria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .obra-info h3 {
    font-size: 1.08rem;
  }

  .obra-info p {
    font-size: 0.96rem;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .galeria {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .obra-img {
    aspect-ratio: 4 / 5;
  }

  .obra-info {
    padding-top: 10px;
  }

  .obra-info h3 {
    font-size: 1rem;
  }

  .obra-info p {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
}
