/* Secciones base */
.services, .contact{
  padding: 56px 0;
}

.services{
  background: #eef4e7;
}

/* Títulos de sección (igual estilo en todas) */
.services h2,
.about h2,
.blog h2,
.contact h2{
  margin: 0 0 24px 0;
  text-align: center;
  font-size: 30px;
  color: #1f2a36;
}

/* Grid de servicios */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */
.card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  padding:22px;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(0,0,0,.12);
}


.card img{
  width:100%;
  height:180px;
  object-fit:contain;
  display:block;
  background:#f7f9fc;
  border-radius:12px;
  padding:12px;
  margin-bottom:12px;
}


.card h3{
  margin: 12px 0 6px 0;
  color:#23376f;
  font-size: 18px;
  font-weight: 900;
}

.card p{
  margin: 0 0 12px 0;
  color:#2c3640;
  font-size: 14px;
  line-height: 1.35;
  min-height: 38px;
}

/* Botón secundario */
.btn-secondary{
  display:inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid #2f8f3d;
  color:#2f8f3d;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  transition: .15s ease;
}

.btn-secondary:hover{
  background:#2f8f3d;
  color:#fff;
}

.services{
  background:#eef4e7;
  padding:80px 0;
}

.contact{
  background:#f5f6f8;
  padding:80px 0;
}

/* ================= NOSOTROS ================= */
.about{
  padding: 80px 0;
  background: #fff;
}

.features-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card{
  background:#fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 18px;
  text-align:left;
}

.feature-card h3{
  margin: 0 0 8px 0;
  color:#23376f;
  font-size: 16px;
  font-weight: 900;
}

.feature-card p{
  margin: 0;
  color:#2c3640;
  font-size: 14px;
  line-height: 1.45;
}

/* ================= BLOG ================= */
.blog{
  padding: 80px 0;
  background: #f5f6f8;
}

.posts-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card{
  background:#fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 18px;
  text-align:left;
}

.post-card h3{
  margin: 0 0 8px 0;
  color:#23376f;
  font-size: 16px;
  font-weight: 900;
}

.post-card p{
  margin: 0 0 12px 0;
  color:#2c3640;
  font-size: 14px;
  line-height: 1.45;
}

.post-icon{
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.post-icon svg{
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Colores por tarjeta */
.post-yellow{ color:#f2b600; } /* bombilla amarilla */
.post-red{ color:#d63a3a; }    /* escudo rojo */
.post-green{ color:#2f8f3d; }  /* hoja verde */

/* Mantener texto en colores normales */
.post-card h3{ color:#23376f; }
.post-card p{ color:#2c3640; }

/* ================= CTA CALL (EcoCarpe) ================= */
.cta-call{
  padding: 78px 0;
  text-align: center;
  color: #fff;

  /* Fondo distinto al hero, con corporativos */
  background:
    radial-gradient(900px 420px at 20% 30%, rgba(47,143,61,.35), transparent 60%),
    radial-gradient(900px 420px at 80% 70%, rgba(35,55,111,.45), transparent 60%),
    linear-gradient(135deg, #23376f, #1b2a57);
}

.cta-content{
  max-width: 900px;
}

.cta-content h2{
  margin: 0 0 10px 0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: .2px;
}

.cta-content p{
  margin: 0 0 22px 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
}

.cta-button{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: #2f8f3d;       /* verde corporativo */
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 900;
  text-decoration: none;

  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.cta-button:hover{
  background:#256d2e;
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.cta-icon{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.cta-note{
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

/* ================= CONTACT CENTER ================= */
.contact .container{
  text-align: center;
}

.contact-cta{
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-cta p{
  margin: 0;
  font-size: 16px;
  color: #2c3640;
}

/* ================= SOBRE NOSOTROS ICONOS ================= */

.about-icon{
  font-size: 40px;
  margin-bottom: 14px;
  color: #23376f; /* azul corporativo base */
  transition: all .3s ease;
}

.about-card{
  transition: all .3s ease;
}

/* Hover elegante */
.about-card:hover .about-icon{
  transform: translateY(-4px);
}

/* Colores diferentes por bloque */
.about-card:nth-child(1):hover .about-icon{
  color: #f4b400; /* amarillo */
}

.about-card:nth-child(2):hover .about-icon{
  color: #2f8f3d; /* verde corporativo */
}

.about-card:nth-child(3):hover .about-icon{
  color: #e53935; /* rojo */
}

.about-card:nth-child(4):hover .about-icon{
  color: #23376f; /* azul más fuerte */
}

/* ================= NOSOTROS (ICONOS) ================= */
.about .features-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card{
  background:#fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: 22px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.feature-icon{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;

  /* base corporativa */
  color: #23376f; /* azul */
  background: rgba(35,55,111,.08);
  transition: all .25s ease;
}

.feature-icon .icon{
  width: 30px;
  height: 30px;
}

/* Hover: color por tarjeta */
.feature-card.feature-1 .feature-icon{
  color:#f4b400;               /* amarillo */
  background: rgba(244,180,0,.12);
}

.feature-card.feature-2 .feature-icon{
  color:#2f8f3d;               /* verde corporativo */
  background: rgba(47,143,61,.12);
}

.feature-card.feature-3 .feature-icon{
  color:#e53935;               /* rojo */
  background: rgba(229,57,53,.12);
}

.feature-card.feature-4 .feature-icon{
  color:#23376f;               /* azul fuerte */
  background: rgba(35,55,111,.12);
}

/* Nosotros: en pantallas grandes reduce ancho a 80% */
.about-container{
  width: min(1120px, 80%);
  margin: 0 auto;
}

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

.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  z-index: 9999;
  transition: all .2s ease;
  text-decoration: none;
}

.whatsapp-float:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
}

.whatsapp-icon{
  width: 30px;
  height: 30px;
}

@media (max-width: 768px){
  .whatsapp-float{
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-icon{
    width: 26px;
    height: 26px;
  }
}