:root { --primary-color: #1e73be; --secondary-color: #f5f7fa; --text-color: #333333; --heading-color: #1d2d44; --border-radius: 6px; --max-width: 960px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--secondary-color); } img { display: block; max-width: 100%; height: auto; } .container { width: 90%; max-width: var(--max-width); margin: 0 auto; padding: 2rem 0; } .hero { background: url('../images/mejora_fachada.webp') center/cover no-repeat; min-height: 50vh; display: flex; align-items: center; justify-content: center; position: relative; color: white; text-align: center; } .hero::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); } .hero-content { position: relative; z-index: 1; padding: 1rem; } .hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; } .hero p { font-size: 1.2rem; } section { padding: 2rem 0; } h2 { margin-bottom: 1rem; color: var(--heading-color); font-size: 1.8rem; text-align: center; } p { margin-bottom: 1rem; } .features { list-style: none; padding-left: 0; margin-top: 1rem; } .features li { margin-bottom: 0.5rem; } .features strong { color: var(--primary-color); } .gallery-section { background-color: #ffffff; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; } .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; } .gallery-img { border-radius: var(--border-radius); transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; cursor: pointer; } .gallery-img:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .map-container { margin-top: 1rem; border: 1px solid #ccc; border-radius: var(--border-radius); overflow: hidden; } .map-container iframe { width: 100%; height: 400px; border: 0; } .location-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; } .location-img { width: 100%; border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .plan-section { background-color: #ffffff; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding-top: 2rem; padding-bottom: 2rem; } .plan-image img { display: block; margin: 1rem auto; max-width: 100%; border-radius: var(--border-radius); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .contact-section { background-color: #ffffff; } .contact-form { max-width: 600px; margin: 0 auto; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; } .form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: var(--border-radius); font-size: 1rem; } .form-group input[type="file"] { padding: 0.4rem 0; } .form-group small { display: block; margin-top: 0.25rem; color: #666; font-size: 0.85rem; } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2); } .btn { display: inline-block; background-color: var(--primary-color); color: #fff; padding: 0.75rem 1.5rem; border: none; border-radius: var(--border-radius); font-size: 1rem; cursor: pointer; transition: background-color 0.2s ease-in-out; } .btn:hover { background-color: #135b97; } .highlight-phone { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 0.5rem; } .form-response { margin-top: 1rem; font-weight: bold; color: var(--primary-color); text-align: center; } .footer { background-color: #1d2d44; color: #ffffff; text-align: center; padding: 1rem 0; } .lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; cursor: zoom-out; } .lightbox img { max-width: 90%; max-height: 90%; border-radius: var(--border-radius); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); transition: transform 0.3s ease; cursor: zoom-in; } .lightbox img.zoomed { transform: scale(2); cursor: zoom-out; } .footer p { margin: 0; font-size: 0.9rem; } @media (max-width: 600px) { .hero h1 { font-size: 2rem; } .hero p { font-size: 1rem; } h2 { font-size: 1.5rem; } .hero { min-height: 40vh; } .location-images { grid-template-columns: 1fr; } .map-container iframe { height: 300px; } } .lightbox { position: fixed; inset: 0; display: grid; place-items: center; z-index: 9999; } .lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); } .lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; transition: transform 0.15s ease; will-change: transform; z-index: 1; } .lightbox-controls { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; } .lb-btn { background: rgba(255,255,255,0.9); border: 1px solid #ddd; padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 1rem; cursor: pointer; } .lb-btn:hover { background: #fff; } .lb-btn.prev, .lb-btn.next { position: fixed; top: 50%; transform: translateY(-50%); font-size: 1.2rem; padding: 0.6rem 0.7rem; opacity: 0.95; } .lb-btn.prev { left: 1rem; } .lb-btn.next { right: 1rem; } .lb-btn.close { position: fixed; top: 1rem; right: 1rem; font-size: 1.1rem; } .btn { display: inline-block; background: var(--primary-color); color: #fff; padding: 0.6rem 1rem; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; } .btn:hover { filter: brightness(0.95); } .plan-standalone { display: grid; place-items: center; padding: 1rem; } .plan-standalone img { max-width: min(100%, 1100px); height: auto; box-shadow: 0 2px 12px rgba(0,0,0,0.15); border-radius: 8px; } .topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--secondary-color); border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 10; } .topbar a { text-decoration: none; } .gallery img { width: 150px; height: 150px; object-fit: cover; border-radius: 4px; margin: 4px; cursor: zoom-in; } .gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; } @media (max-width: 600px) { .gallery img { width: 100px; height: 100px; } } .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .gallery-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); } @media (min-width: 768px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
/* Plan thumbnail styling: show full image (contain), no crop */
.plan-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: #f7f7f7;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  cursor: zoom-in;
}
@media (min-width: 768px) {
  .plan-thumb { max-height: 70vh; }
}

/* Fondo oscuro detrás de la imagen */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
}

/* Contenedor principal del lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  z-index: 9999;
}

/* Imagen ampliada */
.lightbox-img {
  max-width: 80%;
  max-height: 80%;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 9999;
}

/* Botones generales */
.lb-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 2rem;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 10001;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Íconos dentro del botón */
.lb-btn svg,
.lb-btn i,
.lb-btn span {
  color: inherit;
  transition: color 0.3s ease;
}

/* Hover (solo en escritorio) */
@media (hover: hover) {
  .lb-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Al presionar o enfocar: fondo blanco, ícono negro */
.lb-btn:active,
.lb-btn:focus {
  background: white;
  color: black;
}

/* Botón cerrar */
.lb-btn.close {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Botón anterior */
.lb-btn.prev {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Botón siguiente */
.lb-btn.next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Controles inferiores (zoom, rotar, etc.) */
.lb-bottom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  z-index: 10001;
}

/* 📱 Estilos para móviles */
@media (max-width: 600px) {
  .lightbox-img {
    max-width: 90%;
    max-height: 70%;
  }

  .lb-btn {
    font-size: 2.2rem;
    padding: 14px;
    background: rgba(0, 0, 0, 0.8);
    flex: 1 1 auto;
  }

  .lb-btn.prev {
    left: 10px;
  }

  .lb-btn.next {
    right: 10px;
  }

  .lb-btn.close {
    top: 10px;
    right: 10px;
  }

  .lb-bottom-controls {
    bottom: 10px;
    gap: 12px;
    padding: 10px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}
