/* Colores principales */
:root {
  --cement-gray: #6e6e6e;
  --white: #fff;
  --black: #222;
  --orange: #ff6f1a;
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  scroll-behavior: smooth;
}

h1, h2 {
  font-weight: 700;
  color: var(--cement-gray);
}

section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cement-gray);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--cement-gray) 60%, var(--orange) 100%);
  animation: bgMove 8s linear infinite alternate;
  z-index: 1;
}
@keyframes bgMove {
  0% { filter: brightness(1) blur(0px); }
  100% { filter: brightness(1.1) blur(2px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  animation: fadeIn 1.2s;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
  color: var(--white);
  text-shadow: 2px 2px 8px var(--black);
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 1.5em;
}
.btn-cta {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-cta:hover {
  background: var(--cement-gray);
  color: var(--orange);
  transform: scale(1.07);
}

/* WhatsApp botón flotante */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--orange);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 1000;
  transition: background var(--transition), transform var(--transition);
}
.whatsapp-float:hover {
  background: var(--cement-gray);
  color: var(--orange);
  transform: scale(1.1);
}
.wa-icon {
  width: 32px;
  height: 32px;
  background: url('https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg') center/cover no-repeat;
  filter: invert(1) brightness(2) drop-shadow(0 0 2px var(--black));
}

/* Animaciones generales */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
section.visible {
  opacity: 1;
  transform: none;
  animation: fadeIn 1.1s;
}

/* Slide para tarjetas y galería */
.service-card, .gallery-item, .beforeafter-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.service-card.visible, .gallery-item.visible, .beforeafter-item.visible {
  opacity: 1;
  transform: none;
  animation: slideIn 1.1s;
}

/* Parallax sutil en fondos de secciones */
.parallax-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, var(--cement-gray) 60%, var(--orange) 100%);
  opacity: 0.12;
  will-change: transform;
}
section {
  position: relative;
  z-index: 1;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* Tarjetas de servicios premium */
.service-card {
  background: var(--white);
  border: 2px solid var(--cement-gray);
  border-radius: 18px;
  padding: 38px 18px 28px 18px;
  text-align: center;
  color: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
  animation: slideIn 1.2s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: 0 12px 36px rgba(255,111,26,0.16);
  border-color: var(--orange);
  transform: translateY(-10px) scale(1.05);
}
.service-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.4s;
  filter: grayscale(0.2) brightness(0.95);
}
.service-card:hover .service-icon {
  transform: scale(1.18) rotate(-8deg);
  filter: grayscale(0) brightness(1.1) drop-shadow(0 2px 8px var(--orange));
}
.service-title {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--cement-gray);
  letter-spacing: 0.5px;
}
.service-desc {
  font-size: 1rem;
  color: var(--black);
  opacity: 0;
  max-height: 0;
  transform: translateY(18px);
  transition: opacity 0.5s, max-height 0.5s, transform 0.5s;
  pointer-events: none;
}
.service-card:hover .service-desc {
  opacity: 1;
  max-height: 80px;
  transform: translateY(0);
  pointer-events: auto;
}

/* Iconos de servicios (SVG como background) */
.icon-edificio { background-image: url('data:image/svg+xml;utf8,<svg fill="%236e6e6e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 21V3h18v18H3zm2-2h14V5H5v14zm2-2h2v-2H7v2zm0-4h2v-2H7v2zm0-4h2V7H7v2zm4 8h2v-2h-2v2zm0-4h2v-2h-2v2zm0-4h2V7h-2v2zm4 8h2v-2h-2v2zm0-4h2v-2h-2v2zm0-4h2V7h-2v2z"/></svg>'); }
.icon-remodela { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff6f1a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.7 13.35l-2.05-2.05c-.2-.2-.51-.2-.71 0l-1.13 1.13-2.12-2.12 1.13-1.13c.2-.2.2-.51 0-.71l-2.05-2.05c-.2-.2-.51-.2-.71 0l-7.07 7.07c-.2.2-.2.51 0 .71l2.05 2.05c.2.2.51.2.71 0l1.13-1.13 2.12 2.12-1.13 1.13c-.2.2-.2.51 0 .71l2.05 2.05c.2.2.51.2.71 0l7.07-7.07c.2-.2.2-.51 0-.71z"/></svg>'); }
.icon-drywall { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff6f1a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2"/><rect x="7" y="7" width="10" height="10" rx="1" fill="%236e6e6e"/></svg>'); }
.icon-enchape { background-image: url('data:image/svg+xml;utf8,<svg fill="%236e6e6e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg>'); }
.icon-piedra { background-image: url('data:image/svg+xml;utf8,<svg fill="%236e6e6e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><ellipse cx="12" cy="12" rx="10" ry="7"/><ellipse cx="12" cy="12" rx="6" ry="3" fill="%23ff6f1a"/></svg>'); }
.icon-escultura { background-image: url('data:image/svg+xml;utf8,<svg fill="%236e6e6e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4"/><rect x="8" y="14" width="8" height="6" rx="2" fill="%23ff6f1a"/></svg>'); }
.icon-pincel { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ff6f1a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2 22c0-2.21 1.79-4 4-4h2v2c0 1.1-.9 2-2 2H2zm16.85-7.85l-1.41-1.41-9.19 9.19c-.39.39-1.02.39-1.41 0-.39-.39-.39-1.02 0-1.41l9.19-9.19-1.41-1.41c-.39-.39-.39-1.02 0-1.41.39-.39 1.02-.39 1.41 0l4.24 4.24c.39.39.39 1.02 0 1.41-.39.39-1.02.39-1.41 0z"/></svg>'); }
.icon-civil { background-image: url('data:image/svg+xml;utf8,<svg fill="%236e6e6e" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="2" y="17" width="20" height="5"/><rect x="7" y="2" width="10" height="10" rx="2" fill="%23ff6f1a"/></svg>'); }


/* Galería premium */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  background: var(--cement-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1), filter 0.4s;
  filter: grayscale(0.2);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  filter: grayscale(0) brightness(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34,34,34,0.55);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}
.gallery-title {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px var(--black);
  animation: fadeIn 0.7s;
}
.gallery-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.3s, color 0.3s, transform 0.3s;
  margin-top: 8px;
  opacity: 0;
  animation: fadeIn 0.7s 0.2s forwards;
  pointer-events: auto;
}
.gallery-item:hover .gallery-btn {
  opacity: 1;
  transform: scale(1.08);
}
.gallery-btn:hover {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,111,26,0.18);
}

/* Lightbox premium */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(34,34,34,0.75);
  backdrop-filter: blur(6px);
  animation: lightboxFadeIn 0.5s;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-content {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s;
  min-width: 320px;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  max-width: 60vw;
  max-height: 60vh;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.lightbox-title {
  color: var(--cement-gray);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--orange);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
  opacity: 0.85;
  animation: lightboxCloseIn 0.5s;
}
.lightbox-close:hover {
  color: var(--cement-gray);
  transform: rotate(90deg) scale(1.2);
  opacity: 1;
}

/* Antes y después premium */
.beforeafter-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  background: var(--cement-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}
.beforeafter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34,34,34,0.55);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
  pointer-events: none;
}
.beforeafter-item:hover .beforeafter-overlay {
  opacity: 1;
  pointer-events: auto;
}
.beforeafter-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px var(--black);
  animation: fadeIn 0.7s;
}
.beforeafter-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 8px 22px;
  border-radius: 18px;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.3s, color 0.3s, transform 0.3s;
  margin-top: 6px;
  opacity: 0;
  animation: fadeIn 0.7s 0.2s forwards;
  pointer-events: auto;
}
.beforeafter-item:hover .beforeafter-btn {
  opacity: 1;
  transform: scale(1.08);
}
.beforeafter-btn:hover {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,111,26,0.18);
}

.before-after-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-end;
  margin-top: 32px;
}
.before, .after {
  flex: 1;
  text-align: center;
}
.before-img, .after-img {
  width: 100%;
  max-width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--cement-gray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.before-img:hover, .after-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(255,111,26,0.12);
}

.quote form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  margin: 32px auto 0 auto;
}
.quote input, .quote textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid var(--cement-gray);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.quote input:focus, .quote textarea:focus {
  border-color: var(--orange);
  outline: none;
}

.contact {
  text-align: center;
  margin-top: 32px;
}
.contact .btn-cta {
  margin-top: 18px;
}

footer {
  background: var(--cement-gray);
  color: var(--white);
  text-align: center;
  padding: 24px 0;
  font-size: 1rem;
  margin-top: 48px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  section { padding: 40px 10px; }
  .services-cards, .gallery-grid { gap: 18px; }
  .before-after-grid { gap: 18px; }
}
@media (max-width: 600px) {
  .hero { height: 60vh; }
  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 1rem; }
  .btn-cta { padding: 10px 18px; font-size: 1rem; }
  section { padding: 24px 4px; }
  .services-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .before-after-grid { flex-direction: column; }
  .before-img, .after-img { max-width: 100%; height: 140px; }
}
