:root {
  --brand: #A6C83A;
  --accent: #E33B32;
  --text: #1D1F23;
  --light: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background-color: var(--light);
  scroll-behavior: smooth;
}

/* ========== NAVBAR ========== */
.navbar.bg-white {
  transition: all .3s ease;
  box-shadow: none;
}
.navbar.navbar-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color .2s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* ========== HERO (solo index) ========== */
#heroCarousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
#heroCarousel .carousel-item {
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light);
  padding: 0 20px;
}
.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
.hero-overlay p {
  font-size: 1.2rem;
}

/* ========== PAGE HEADER (para páginas internas) ========== */
.page-header {
  height: 60vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url("../img/Fondo1.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.page-header h1 {
  font-weight: 700;
  font-size: 2.5rem;
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ========== BOTONES ========== */
.btn-brand {
  background: var(--brand);
  border: none;
  color: #111;
  font-weight: 600;
  border-radius: .5rem;
  transition: all .25s ease;
}
.btn-brand:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== SECCIONES GENERALES ========== */
.section-title {
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .05rem;
}

/* ========== SERVICIOS ========== */
.service-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}
.icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(166,200,58,.18);
  color: var(--brand);
  font-size: 26px;
  margin-bottom: .75rem;
}

/* ========== PROYECTOS ========== */
.project-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .2s ease;
}
.project-card:hover {
  transform: scale(1.02);
}

/* ========== CONTACTO ========== */
form.card {
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
form.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* ========== FOOTER ========== */
footer {
  color: #555;
  font-size: .9rem;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 991px) {
  .hero-overlay h1 { font-size: 1.8rem; }
  .hero-overlay p { font-size: 1rem; }
  .page-header h1 { font-size: 2rem; }
}
