/* AirFresh Energy - clean stylesheet (v1) */
/* Palette (adjust if needed) */
:root{
  --af-navy:#0f355f;
  --af-steel:#1d436a;
  --af-accent:#14b8a6;
  --af-text:#162026;
  --af-muted:#ccdff0;
  --af-bg:#f5f7fa;
  --af-dark:#081a2e;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--af-text); background:#fff;
  font-family:Roboto,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif;
  line-height:1.5;
}
h1,h2,h3,.btn{font-family:Montserrat,Roboto,system-ui,Arial,sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--af-steel);text-decoration:none}
a:hover{text-decoration:underline}

/* Header / Navbar */
.navbar-sticky{position:sticky;top:0;z-index:999;backdrop-filter:saturate(180%) blur(6px)}
.navbar-dark{background:var(--af-dark)!important}
.af-logo{height:46px;width:auto}
@media (min-width:992px){.af-logo{height:56px}}

/* Buttons */
.btn{display:inline-block;border:0;border-radius:.6rem;padding:.8rem 1.2rem;font-weight:700;cursor:pointer}
.btn-accent{background:var(--af-accent);color:var(--af-dark)}
.btn-accent:hover{filter:brightness(1.05);text-decoration:none}

/* HERO (image must be fully visible) */
.hero{position:relative; height:68vh; min-height:420px; margin-bottom:24px; overflow:hidden}
@media (max-width:575.98px){ .hero{height:60vh; min-height:360px; margin-bottom:32px} }
@media (min-width:576px) and (max-width:991.98px){ .hero{height:64vh; min-height:380px; margin-bottom:28px} }

.hero .carousel, .hero .carousel-inner, .hero .carousel-item{height:100%}
.hero .hero-bg{
  position:absolute; inset:0;
  background-size:cover;        /* ensures FULL image visible */
  background-position:center center;
  background-repeat:no-repeat;
}
.hero .hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,26,46,.45), rgba(6,26,46,.2));
}
.hero .hero-copy{
  position:relative; z-index:2; color:#fff;
  text-shadow:0 1px 10px rgba(0,0,0,.35);
  max-width:820px;
}
/* Mobile: keep copy away from bottom edge */
@media (max-width:575.98px){ .hero .hero-copy{padding:0 12px 56px} }

/* Carousel controls visibility */
.carousel-indicators [data-bs-target]{width:10px;height:10px;border-radius:50%}
.carousel-control-prev-icon,.carousel-control-next-icon{filter:drop-shadow(0 2px 8px rgba(0,0,0,.45))}

/* Sections */
.section{padding:64px 0}
.section.alt{background:var(--af-bg)}

/* Cards (services/projects) */
.card{border:1px solid rgba(15,53,95,.08);border-radius:14px;overflow:hidden;background:#fff}
.card .card-body{padding:18px}
.badge{display:inline-block;padding:.35rem .6rem;border-radius:999px;font-size:.8rem;background:rgba(20,184,166,.12);color:var(--af-steel)}

/* Footer */
footer{background:var(--af-dark);color:#fff}
footer a{color:#fff}
footer .small{opacity:.8}

/* WhatsApp floating button */
.wa-float{
  position:fixed; right:18px; bottom:18px; z-index:999;
  background:#25D366; border-radius:50px; padding:12px 13px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}

/* Utilities */
.container{max-width:1140px;margin:0 auto;padding:0 16px}
.text-center{text-align:center}
.lead{font-size:1.125rem;color:#0b4981}
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.mt-2{margin-top:.5rem}.mb-2{margin-bottom:.5rem}
.mt-3{margin-top:1rem}.mb-3{margin-bottom:1rem}
.mt-4{margin-top:1.5rem}.mb-4{margin-bottom:1.5rem}
.mt-5{margin-top:3rem}.mb-5{margin-bottom:3rem}
.p-2{padding:.5rem}.p-3{padding:1rem}.p-4{padding:1.5rem}.p-5{padding:3rem}
.rounded{border-radius:12px}
.shadow{box-shadow:0 10px 30px rgba(0,0,0,.08)}

/* Grid uniforme para proyectos */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:24px;
}

/* Tarjeta */
.project-card{
  border:1px solid rgba(15,53,95,.08);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.project-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

/* Mini–header (cliente/servicio opcionales) */
.project-badges{
  position:absolute; inset:auto 12px 12px auto;
  display:flex; gap:8px; z-index:2;
}
.badge{
  display:inline-block; padding:.35rem .6rem;
  border-radius:999px; font-size:.78rem;
  background:rgba(20,184,166,.12); color:#1d436a;
}

/* Marco de imagen con relación fija */
.project-thumb{
  position:relative;
  aspect-ratio:16/9;         /* todas iguales */
  background:#f2f4f7;
}
.project-thumb img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;           /* usa 'contain' si quieres ver TODO sin recorte */
  object-position:center;
  display:block;
}

/* Cuerpo de la tarjeta */
.project-body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:10px }
.project-title{ margin:0; font-weight:700; font-size:1.05rem }
.project-text{ margin:0; color:#5b6b79; line-height:1.45 }

/* Pie/CTA pegado abajo para alturas consistentes */
.project-card .project-footer{
  margin-top:auto; padding:0 16px 16px;
}
.project-card .btn{
  border:0; border-radius:.6rem; padding:.6rem 1rem; font-weight:700;
}
.project-card .btn-outline{
  background:#fff; color:#1d436a; border:1px solid rgba(15,53,95,.18);
}
.project-card .btn-outline:hover{
  background:#14b8a6; color:#081a2e; border-color:#14b8a6;
}
.project-media {
  display: block;
  /* Reserva proporción para evitar saltos de layout */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;         /* armonía con el resto del sitio */
  background: #1064a4;         /* color de fondo mientras carga */
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* asegura “imagen completa” sin deformarse */
  display: block;
}
