:root {
  --brand-green: #009638;
  --brand-green-dark: #017a3f;
  --text-muted: #6b7e72;
  --stat-card: #017a3f;
  --font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ================= HERO ================= */

body {
  font-family: var(--font-base);
}

.hero-banner{
  position: relative;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
  color: white;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-banner .container {
  z-index: 2;
}


.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
  z-index: 0;
}

.hero-banner::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.18));
  pointer-events:none;
  z-index: 1;
}

.hero-banner > .container{
  height: 100%;
  display: grid;
  place-items: center;
}

.hero-content{
  position: relative;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding-inline: 1rem;
  z-index: 2;

}

.hero-title{
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2rem, 3.25vw, 4rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.hero-subtitle {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .95;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.hero-cta {
  background: var(--brand-green);
  color: #fff;
  border: none;
  padding: .85rem 1.6rem;   /* más grande */
  border-radius: .6rem;
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-cta:hover{ background: var(--brand-green-dark); color:#fff; }

@media (max-width: 991.98px){
  .hero-banner{ height: 44vh; }
}
@media (max-width: 575.98px){
  .hero-banner{ height: 38vh; min-height: 260px; }
}

/* ===== CARDS MÉTRICAS ===== */
.stats-section { background:#fff; }

.stat-card{
  background: var(--stat-card);
  color:#fff;
  border-radius:.25rem;
  padding:1.5rem 1rem;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  width:100%;
  display:grid;
  grid-template-rows: 56px 2px 1fr;
  align-items:center;
  justify-items:center;

  min-height:240px;
  text-align:center;
}

@media (min-width:576px){ .stat-card{ min-height:250px; } }
@media (min-width:992px){ .stat-card{ min-height:260px; } }

.stat-value{
  font-weight:800;
  font-size:clamp(1.4rem,3.2vw,2rem);
  letter-spacing:.02em;
  display:flex; align-items:center; justify-content:center;
  height:56px;
  margin:0;
}

.stat-sep{
  width:70%;
  height:2px;
  border:0;
  margin:0;
  background:#fff;
}

.stat-desc{
  font-size:clamp(.9rem,1.6vw,1rem);
  line-height:1.6;
  opacity:.95;
  max-width:90%;
  display:flex;
  align-items:center;
}



/* ====== CARDS DE SERVICIOS ====== */
.servicio-card {
  border: none;
  border-radius: .5rem;
  box-shadow: rgba(0, 0, 0, 0.08) 0 4px 10px;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: var(--servicio-minh, 260px);
}
.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: rgba(0, 0, 0, 0.12) 0 10px 20px;
}

.servicio-card .card-title { color: var(--brand-green-dark); }
.servicio-card .card-text  { color: var(--text-muted); font-size: .95rem; }

.servicio-card .card-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.servicio-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  overflow: hidden;
}

.servicio-icono {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.botonInfo {
  background-color: var(--brand-green);
  color: #fff;
  border: none;
  transition: background-color .25s ease;
}
.botonInfo:hover {
  background-color: var(--brand-green-dark) !important;
  color: #fff !important;
}

.serviciosSwiper .swiper-slide{
  width: 80%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  height: auto;
}

.servicios-swiper-pagination {
  text-align: center;
  margin-top: 1rem;
  position: static;
}

.servicios-swiper-pagination .swiper-pagination-bullet {
  background: var(--brand-green);
  opacity: 0.4;
}
.servicios-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===== SOBRE NOSOTROS ===== */
.about-section{
  background: #f8f9fa;
}

.about-img{
  display:block;
  width:100%;
  height:auto;
  border-radius: .25rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.about-title{
  color: var(--brand-green-dark);
  letter-spacing: .04em;
}

.about-text{
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
  margin: 10;
}

.about-cta{
  background: var(--brand-green);
  color:#fff;
  border:none;
  padding:.7rem 1.2rem;
  border-radius:.4rem;
  font-weight:700;
}
.about-cta:hover{
  background: var(--brand-green-dark);
  color:#fff;
}

@media (max-width: 767.98px){
  .about-section .col-md-6:last-child{
    text-align:center;
  }
  .about-cta{ display:inline-block; }
}


/* ===== PILARES QUE NOS DEFINEN ===== */
.pillars-section {
  background: #f8f9fa;
}

/* contenedor del swiper */
.pillarsSwiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* cada slide */
.pillarsSwiper .swiper-slide {
  width: 80%;
  max-width: 340px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: auto;
}

/* cada card */
.pillar-card {
  background: #fff;
  border-radius: .35rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  height: auto;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
}

/* interior */
.pillar-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.pillar-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.pillar-title {
  margin: 0 0 .5rem 0;
  font-weight: 800;
  color: var(--brand-green-dark);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  letter-spacing: .02em;
}

.pillar-desc {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
  font-size: .95rem;
}

/* paginación */
.pillarsSwiper {
  padding-bottom: 40px;
  padding-top: 1rem;
}

.pillarsSwiper .swiper-pagination-bullet {
  background: var(--brand-green);
  opacity: .4;
}

.pillarsSwiper .swiper-pagination-bullet-active {
  opacity: 1;
}


/* responsive */
@media (max-width: 767.98px) {
  .pillars-section .col-md-6:last-child {
    text-align: center;
  }
}

/* ===== CTA BAND ===== */
.cta-band{
  position: relative;
  height: 26vh;
  min-height: 150px;
  max-height: 260px;
  overflow: hidden;
  margin-top: 0;
}

.cta-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  z-index: 0;
}

.cta-band::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.12);
  pointer-events:none;
  z-index: 1;
}

.cta-band .container{
  height: 100%;
  display: flex;
  align-items: center;
}

.cta-content{
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}

.cta-title{
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  text-shadow: none;
}

.cta-btn{
  background: var(--brand-green);
  color: #fff;
  border: none;
  padding: .65rem 1.1rem;
  font-weight: 800;
  border-radius: .35rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  white-space: nowrap;
}
.cta-btn:hover{
  background: var(--brand-green-dark);
  color: #fff;
}

@media (max-width: 767.98px){
  .cta-band{ height: 24vh; min-height: 160px; }
  .cta-content{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}