/* ===========================
   WHYRC (Porque Elegirnos)
   Paleta: verde brand + glass + acento dorado suave
=========================== */

:root{
  --brand: rgba(47, 93, 90, 1);
  --brandSoft: rgba(47, 93, 90, 0.55);
  --brandGlass: rgba(47, 93, 90, 0.46);
  --goldSoft: rgba(255, 215, 0, 0.18);
  --ink: rgba(0,0,0,0.70);
  --bg: #f8f8f8;
}

.whyrc{
  width: 100%;
  background: var(--bg);
}

.whyrc-container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===========================
   HERO
=========================== */

.whyrc-hero{
  position: relative;
  width: 100%;
  padding: 34px 0 16px;
  background:
    radial-gradient(1100px 520px at 20% 10%, rgba(47, 93, 90, 0.18), transparent 55%),
    radial-gradient(900px 520px at 80% 20%, rgba(255, 215, 0, 0.10), transparent 55%),
    linear-gradient(to bottom, #f2f4f4 0%, #e9eeee 40%, #e6eceb 100%);
}

.whyrc-hero__overlay{
  position: relative;
  padding: 18px 0 28px;
}

.whyrc-hero__card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;

  background: rgba(20, 40, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.30),
    0 0 0 3px rgba(47, 93, 90, 0.14);

  padding: clamp(16px, 2.6vw, 26px);
  color: #fff;
}

.whyrc-hero__card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to left,
      rgba(47, 93, 90, 0.55),
      rgba(47, 93, 90, 0.22),
      rgba(47, 93, 90, 0.06)
    );
  pointer-events:none;
}

.whyrc-hero__eyebrow{
  position: relative;
  font-weight: 900;
  letter-spacing: 0.25px;
  opacity: 0.92;
  font-size: 13px;
  margin-bottom: 6px;
}

.whyrc-hero__title{
  position: relative;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.whyrc-hero__subtitle{
  position: relative;
  color: rgba(255,255,255,0.86);
  line-height: 1.65;
  font-size: clamp(14px, 1.2vw, 17px);
  max-width: 70ch;
}

.whyrc-hero__actions{
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Botones */
.whyrc-btn{
  border: none;
  border-radius: 12px;
  padding: 12px 14px;

  background: linear-gradient(
    to right,
    rgba(47, 93, 90, 0.95),
    rgba(60, 120, 110, 1)
  );

  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whyrc-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(47, 93, 90, 0.22);
}

.whyrc-btn--ghost{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}

.whyrc-btn--ghost:hover{
  filter: none;
  background: rgba(255,255,255,0.14);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(255, 215, 0, 0.12);
}

/* ===========================
   KPIs con IMAGEN + Hover reveal
=========================== */

.whyrc-kpis{
  position: relative;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.whyrc-kpi{
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 108px;
  outline: none;
}

/* Fondo imagen */
.whyrc-kpi--img{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}

.whyrc-kpi--img::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--kpi-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.95) saturate(1.02);
  transform: scale(1.03);
  transition: filter 0.25s ease, transform 0.9s cubic-bezier(.2,.9,.2,1);
}

.whyrc-kpi--img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(20, 40, 38, 0.58),
    rgba(20, 40, 38, 0.20),
    rgba(20, 40, 38, 0.10)
  );
  opacity: 0.65;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.whyrc-kpi__face,
.whyrc-kpi__reveal{
  position: relative;
  z-index: 2;
  padding: 12px 12px;
  display: grid;
  gap: 6px;
}

/* Estado normal: solo breve */
.whyrc-kpi__brief{
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Reveal: oculto al inicio */
.whyrc-kpi__reveal{
  position:absolute;
  inset:0;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.whyrc-kpi__title{
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.15px;
  margin-bottom: 4px;
}

.whyrc-kpi__desc{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  max-width: 34ch;
  margin: 0 auto;
}

/* Hover: oscurecer imagen + mostrar texto */
.whyrc-kpi--img:hover::before,
.whyrc-kpi--img:focus-visible::before{
  filter: brightness(0.55) saturate(1.05);
  transform: scale(1.08);
}

.whyrc-kpi--img:hover::after,
.whyrc-kpi--img:focus-visible::after{
  opacity: 0.92;
  background: linear-gradient(
    to top,
    rgba(47, 93, 90, 0.75),
    rgba(20, 40, 38, 0.60),
    rgba(20, 40, 38, 0.35)
  );
}

.whyrc-kpi--img:hover .whyrc-kpi__reveal,
.whyrc-kpi--img:focus-visible .whyrc-kpi__reveal{
  opacity: 1;
  transform: translateY(0);
}

.whyrc-kpi--img:hover .whyrc-kpi__face,
.whyrc-kpi--img:focus-visible .whyrc-kpi__face{
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* ===========================
   SECCIÓN HEAD
=========================== */

.whyrc-section-head{
  text-align: center;
  margin-bottom: 16px;
}

.whyrc-section-head h2{
  color: var(--brand);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.whyrc-section-head p{
  color: rgba(0, 0, 0, 0.62);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 78ch;
}

/* ===========================
   PILARES con IMAGEN + Hover reveal
=========================== */

.whyrc-pillars{
  width: 100%;
  padding: 26px 0 26px;
  background: #f8f8f8;
}

.whyrc-pillars__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 6px;
}

.whyrc-pillar{
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 210px;
  outline: none;

  border: 1px solid rgba(47, 93, 90, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* Imagen de fondo del pilar */
.whyrc-pillar--img::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--pillar-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.95) saturate(1.02);
  transform: scale(1.03);
  transition: filter 0.25s ease, transform 0.9s cubic-bezier(.2,.9,.2,1);
}

/* ✅ CAMBIO: quitar el “brillo blanco” del apartado “Lo que nos diferencia”
   Antes era un overlay blanco. Ahora es un overlay transparente y sutil (sin blanquear la imagen). */
.whyrc-pillar--img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(20, 40, 38, 0.35),
    rgba(20, 40, 38, 0.18),
    rgba(20, 40, 38, 0.08)
  );
  opacity: 0.55;
  transition: opacity 0.25s ease, background 0.25s ease;
}

/* Contenidos */
.whyrc-pillar__face,
.whyrc-pillar__reveal{
  position: relative;
  z-index: 2;
  padding: 16px 16px;
}

/* ✅ Para que el título sea legible sin overlay blanco */
.whyrc-pillar__face h3{
  color: rgba(255,255,255,0.95);
  text-shadow: 0 10px 30px rgba(0,0,0,0.40);
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 16px;
  margin-bottom: 8px;
}

.whyrc-pillar__hint{
  color: rgba(255,255,255,0.80);
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
  font-weight: 900;
  letter-spacing: 0.15px;
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
}

/* Reveal texto */
.whyrc-pillar__reveal{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.whyrc-pillar__reveal p{
  color: rgba(255,255,255,0.90);
  font-size: 14px;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 auto;
  padding: 0 14px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Hover: oscurecer imagen + mostrar descripción */
.whyrc-pillar--img:hover::before,
.whyrc-pillar--img:focus-visible::before{
  filter: brightness(0.52) saturate(1.05);
  transform: scale(1.08);
}

.whyrc-pillar--img:hover::after,
.whyrc-pillar--img:focus-visible::after{
  opacity: 0.96;
  background: linear-gradient(
    to top,
    rgba(47, 93, 90, 0.72),
    rgba(20, 40, 38, 0.60),
    rgba(20, 40, 38, 0.40)
  );
}

.whyrc-pillar--img:hover .whyrc-pillar__reveal,
.whyrc-pillar--img:focus-visible .whyrc-pillar__reveal{
  opacity: 1;
  transform: translateY(0);
}

.whyrc-pillar--img:hover .whyrc-pillar__face,
.whyrc-pillar--img:focus-visible .whyrc-pillar__face{
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* ===========================
   PRUEBA SOCIAL
=========================== */

.whyrc-proof{
  width: 100%;
  padding: 22px 0 28px;
  background:
    radial-gradient(1000px 520px at 20% 10%, rgba(47, 93, 90, 0.16), transparent 55%),
    radial-gradient(900px 520px at 80% 20%, rgba(255, 215, 0, 0.10), transparent 55%),
    linear-gradient(to bottom, #f2f4f4 0%, #e9eeee 40%, #e6eceb 100%);
}

.whyrc-proof__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.whyrc-proof__card{
  border-radius: 16px;
  overflow: hidden;

  background: rgba(20, 40, 38, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(47, 93, 90, 0.12);

  padding: 18px 18px;
  color: #fff;
  outline: none;
}

.whyrc-proof__head h2{
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 18px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
}

.whyrc-proof__head p{
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  font-size: 14px;
}

/* ===========================
   Garantizamos - bullets con animación suave
=========================== */

.whyrc-bullets{
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 0;
}

.whyrc-bullets li{
  display: flex;
  align-items: center;
  gap: 10px;

  border-radius: 12px;
  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);

  font-weight: 900;
  letter-spacing: 0.15px;
  font-size: 13px;

  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.whyrc-bullets i{
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.14));
}

/* Hover suave */
.whyrc-bullets li:hover{
  transform: translateY(-3px);
  background: rgba(47, 93, 90, 0.22);
  border-color: rgba(255,255,255,0.24);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.18),
    0 0 0 3px rgba(255, 215, 0, 0.10);
}

/* CTA dentro de la card */
.whyrc-proof__cta{
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.whyrc-proof__note{
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  text-align: center;
}

/* ===========================
   Logos clientes (10 cards)
=========================== */

.whyrc-logos{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.whyrc-logo{
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);

  min-height: 74px;
  text-decoration: none;
  outline: none;

  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.whyrc-logo img{
  width: 86%;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.22));
  opacity: 0.95;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.whyrc-logo:hover,
.whyrc-logo:focus-visible{
  transform: translateY(-3px);
  background: rgba(47, 93, 90, 0.22);
  border-color: rgba(255,255,255,0.24);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.18),
    0 0 0 3px rgba(255, 215, 0, 0.10);
}

.whyrc-logo:hover img,
.whyrc-logo:focus-visible img{
  opacity: 1;
  transform: scale(1.03);
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.14));
}

/* Mini highlights */
.whyrc-mini{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.whyrc-mini__item{
  border-radius: 14px;
  padding: 12px 12px;

  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
}

.whyrc-mini__item h3{
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.94);
}

.whyrc-mini__item p{
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
}

/* ===========================
   CTA FINAL con imagen + texto hover
=========================== */

.whyrc-final{
  width: 100%;
  padding: 24px 0 40px;
  background: #f8f8f8;
}

.whyrc-final__card{
  border-radius: 16px;
  padding: 18px 18px;
  text-align: center;
  outline: none;

  background: rgba(47, 93, 90, 0.10);
  border: 1px solid rgba(47, 93, 90, 0.20);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

.whyrc-final__card--img{
  position: relative;
  overflow: hidden;
  color: #fff;
  background: rgba(20, 40, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.22),
    0 0 0 3px rgba(47, 93, 90, 0.12);
}

.whyrc-final__card--img::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--final-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.82) saturate(1.02);
  transform: scale(1.02);
  transition: filter 0.25s ease, transform 0.9s cubic-bezier(.2,.9,.2,1);
}

.whyrc-final__card--img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(47, 93, 90, 0.60),
    rgba(20, 40, 38, 0.45),
    rgba(20, 40, 38, 0.30)
  );
  opacity: 0.92;
}

.whyrc-final__card--img > *{
  position: relative;
  z-index: 2;
}

.whyrc-final__card h2{
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: clamp(20px, 2.1vw, 30px);
  margin-bottom: 8px;
}

.whyrc-final__desc{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  color: rgba(255,255,255,0.90);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.55;
  margin: 0 auto 12px;
  max-width: 80ch;
}

/* Texto solo en hover */
.whyrc-final__card--img:hover .whyrc-final__desc,
.whyrc-final__card--img:focus-visible .whyrc-final__desc{
  opacity: 1;
  transform: translateY(0);
}

/* Hover oscurece un poco la imagen para resaltar texto */
.whyrc-final__card--img:hover::before,
.whyrc-final__card--img:focus-visible::before{
  filter: brightness(0.60) saturate(1.05);
  transform: scale(1.06);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px){
  .whyrc-kpis{
    grid-template-columns: repeat(2, 1fr);
  }

  .whyrc-pillars__grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .whyrc-proof__grid{
    grid-template-columns: 1fr;
  }

  .whyrc-logos{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px){
  .whyrc-hero{
    padding: 28px 0 10px;
  }

  .whyrc-kpis{
    grid-template-columns: 1fr;
  }

  .whyrc-pillars__grid{
    grid-template-columns: 1fr;
  }

  .whyrc-mini{
    grid-template-columns: 1fr;
  }

  .whyrc-logos{
    grid-template-columns: repeat(2, 1fr);
  }

  .whyrc-logo{
    min-height: 72px;
  }

  .whyrc-logo img{
    height: 44px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .whyrc-btn,
  .whyrc-kpi--img,
  .whyrc-kpi--img::before,
  .whyrc-kpi__reveal,
  .whyrc-pillar--img,
  .whyrc-pillar--img::before,
  .whyrc-pillar__reveal,
  .whyrc-bullets li,
  .whyrc-logo,
  .whyrc-logo img,
  .whyrc-final__desc,
  .whyrc-final__card--img::before{
    transition: none !important;
    transform: none !important;
  }
}
