/* =========================
   RESET / GLOBAL
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #1f1f1f;
  overflow-x: hidden;
}



/* =========================
   NAVBAR
========================= */

.navbar {
  background-color: #f0a910;
}

.navbar-brand img {
  height: 90px;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
}

.nav-link:hover {
  color: #ff7a00 !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  background: url("/cielo2.jpg") center / cover no-repeat;
  color: #da7b23;
   background-size: 100%;
  overflow: hidden;
  padding: 10px 0 10px; 
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.85),
    rgba(252, 252, 252, 0.55),
    rgb(253, 252, 252)
  );
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-title span {
  color: #ff7a00;
}

.hero-text {
  max-width: 520px;
  margin: 20px auto 30px;
  padding: 14px 18px;
  background: rgba(0,20,40,.35);
  border-radius: 12px;
  color: #f8fafc;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  text-shadow: 0 2px 6px rgba(0,0,0,.75);
}

@media (min-width: 992px) {
  .hero-text {
    margin-left: 0;
  }
}

/* =========================
   HERO BOTONES
========================= */

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.btn-obra {
  background: #ff7a00;
  color: #1f1f1f;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: .3s ease;
}

.btn-obra:hover {
  background: #b18a55;
}

/* =========================
   LOGO HERO
========================= */

.hero-logo {
  max-width: 320px;
  width: 100%;
}

.animate-logo {
  animation: logoIn 1.1s ease-out forwards;
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   SOL / AMANECER
========================= */

.sun {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,245,200,1),
    rgba(255,210,120,.95),
    rgba(255,120,0,.4),
    transparent 70%
  );
  top: 55%;
  left: 70%;
  transform: translate(-50%, -50%);
  animation: sunrise 12s ease-out forwards;
  z-index: 0;
}

@keyframes sunrise {
  from { top: 70%; opacity: 0; }
  to { top: 50%; opacity: 1; }
}

/* =========================
   SERVICIOS
========================= */

.services {
  background: #f6f6f6;
  padding: 100px 0;
}

.services h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 34px 24px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  text-align: center;
  transition: transform .35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2b2b2b;
  display: grid;
  place-items: center;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: #c49b63;
  transition: transform .3s ease;
}

.service-card:hover svg {
  transform: scale(1.1);
}

/* =========================
   FADE-UP (FIX REAL)
========================= 

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: .8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PROYECTOS
========================= */

.projects {
  padding: 100px 0;
  background: #f6f6f6;
}

.projects h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity .4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}



/* =========================
   WHATSAPP
========================= */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

/* =========================
   WHATSAPP
========================= 
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
  */
.map-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2933, #111827);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}

.map-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.map-placeholder span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  max-width: 160px;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-link {
  font-size: 1.4rem;
  color: #adb5bd;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #ffffff;
}
.projects-grid > .project-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-link {
  text-decoration: none;
  color: inherit;
}

.project-card {
  height: 100%;
}


