/* ── INDEX.CSS — estilos específicos de index.html ── */

/* ── WHY IMAGE ROTATOR ── */
.why-image-rotator {
  position: relative; overflow: hidden;
  border-radius: 20px;
  min-height: 620px;
  box-shadow: 0 30px 80px rgba(0,31,68,.4);
}
.why-rot-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease, transform 1.2s ease;
  transform: scale(1.05);
}
.why-rot-slide.active { opacity: 1; transform: scale(1); }
.why-rot-slide img { width: 100%; height: 100%; object-fit: cover; }
.why-rot-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,31,68,.6));
}
.why-rot-dots {
  display: flex; gap: 6px;
  position: absolute; bottom: 16px; right: 16px;
}
.why-rot-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: all .3s; border: none; padding: 0;
}
.why-rot-dot.active {
  background: var(--cp); width: 22px; border-radius: 4px;
  box-shadow: 0 0 8px rgba(245,214,8,.6);
}

/* ── PROCESO IMAGE ROTATOR ── */
.proceso-img-rotator {
  position: relative; overflow: hidden;
  border-radius: 20px; height: 360px; margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0,31,68,.4);
}
.proceso-rot-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease, transform 1s ease;
  transform: scale(1.03);
}
.proceso-rot-slide.active { opacity: 1; transform: scale(1); }
.proceso-rot-slide img { width: 100%; height: 100%; object-fit: cover; }
.proceso-rot-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,31,68,.7) 0%, transparent 60%);
}
.proceso-rot-label {
  position: absolute; bottom: 24px; left: 24px; color: #fff;
}
.proceso-rot-label .step-num {
  font-size: 3rem; font-weight: 900; line-height: 1;
  color: var(--cp); opacity: .25; display: block;
}
.proceso-rot-label .step-name {
  font-size: 1.4rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
}

/* ── 1. HERO SLIDER — ANIMACIONES DE TEXTO ─────────────────── */
@keyframes heroTextSlideUp {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroTextSlideLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroTextFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Estado inicial: todos los textos del slide están ocultos */
.hero-slide .hero-service-tag,
.hero-slide .hero-title,
.hero-slide .hero-desc,
.hero-slide .hero-cta { opacity: 0; }

/* Cuando JS añade .txt-anim, arrancan con delay escalonado */
.hero-slide .hero-service-tag.txt-anim {
  animation: heroTextSlideLeft .65s cubic-bezier(.22,1,.36,1) .08s both;
}
.hero-slide .hero-title.txt-anim {
  animation: heroTextSlideUp .80s cubic-bezier(.22,1,.36,1) .28s both;
}
.hero-slide .hero-desc.txt-anim {
  animation: heroTextFade .75s ease .58s both;
}
.hero-slide .hero-cta.txt-anim {
  animation: heroTextSlideUp .65s cubic-bezier(.22,1,.36,1) .78s both;
}

/* ── 2. PREMIUM CAROUSEL — IMAGEN FULL-COVER ───────────────── */
/* Card entera = imagen de fondo, texto en overlay inferior */
.premium-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 420px;
  background: transparent;
  border: none;
  box-shadow: 0 4px 28px rgba(0,31,68,.18);
}
.premium-card:hover {
  box-shadow: 0 20px 56px rgba(5,98,163,.28);
  transform: none; /* sin translate — el efecto 3D del swiper ya lo hace */
}
.premium-card-img {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.premium-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.22,1,.36,1);
}
.premium-card:hover .premium-card-img img,
.swiper-premium-01 .swiper-slide-active .premium-card-img img {
  transform: scale(1.07);
}
/* Gradiente overlay de abajo hacia arriba */
.premium-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,20,55,.96) 0%,
    rgba(0,20,55,.70) 45%,
    rgba(0,20,55,.15) 75%,
    transparent 100%
  );
  border-radius: inherit;
}
/* Cuerpo: texto flotante sobre la imagen */
.premium-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 24px 26px;
  z-index: 2;
  background: transparent;
}
.premium-card-glow {
  top: -60px; right: -30px;
  background: radial-gradient(circle, rgba(245,214,8,.12) 0%, transparent 65%);
}
.premium-card-num {
  font-size: .7rem; letter-spacing: 3px;
  color: var(--cp);
}
.premium-card-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(245,214,8,.25) 0%, rgba(12,151,218,.25) 100%);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 1.25rem; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  backdrop-filter: blur(6px);
  margin-bottom: 10px;
}
.premium-card h3 {
  font-size: 1.2rem; color: #fff;
  margin-bottom: 8px;
}
.premium-card p {
  font-size: .87rem; color: rgba(255,255,255,.72);
  margin-bottom: 18px; line-height: 1.6;
}
.premium-card-btn {
  color: #fff;
  border-color: rgba(255,255,255,.30);
  font-size: .82rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.premium-card-btn:hover {
  background: var(--ca); border-color: var(--ca);
  color: #fff;
  box-shadow: 0 0 22px rgba(12,151,218,.45);
}
/* Shine más lento */
.premium-card:hover .premium-card-img::after {
  animation: cardShine 1.9s ease .06s forwards;
}
/* Glow card activa */
.swiper-premium-01 .swiper-slide-active .premium-card {
  box-shadow: 0 24px 64px rgba(12,151,218,.22), 0 0 50px rgba(245,214,8,.08);
}

/* ── FEATURED CARD — Construcción & Remodelación ─────────────── */
.premium-card--featured {
  border: 1px solid rgba(245,214,8,.35);
  box-shadow:
    0 0 0 1px rgba(245,214,8,.15),
    0 8px 36px rgba(0,20,55,.32),
    0 0 60px rgba(245,214,8,.06);
}
.premium-card--featured .premium-card-img-overlay {
  background: linear-gradient(
    to top,
    rgba(0,15,45,.97) 0%,
    rgba(0,20,60,.78) 42%,
    rgba(0,20,50,.22) 72%,
    transparent 100%
  );
}
/* Gold accent line at top */
.premium-card--featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cp) 0%, #ffec5c 50%, var(--ca) 100%);
  border-radius: 20px 20px 0 0;
  z-index: 5;
}
/* Inner glow shimmer */
.premium-card--featured::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(245,214,8,.08) 0%, transparent 55%);
  pointer-events: none; z-index: 3; border-radius: 20px;
}
/* Featured badge */
.premium-card-featured-badge {
  position: absolute; top: 20px; right: 16px;
  background: linear-gradient(135deg, var(--cp) 0%, #e8c800 100%);
  color: #001f44;
  font-family: var(--font-head); font-size: .65rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 30px;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 14px rgba(245,214,8,.45);
  z-index: 4;
}
.premium-card-featured-badge i { font-size: .6rem; }
/* Gold icon variant */
.premium-card-icon--gold {
  background: linear-gradient(135deg, rgba(245,214,8,.35) 0%, rgba(245,190,0,.2) 100%);
  border: 1px solid rgba(245,214,8,.5);
  color: var(--cp);
  box-shadow: 0 0 20px rgba(245,214,8,.2), 0 4px 14px rgba(0,0,0,.35);
}
/* Service tag pills */
.premium-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.premium-card-tags span {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.15);
  padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(4px);
}
/* Gold CTA button */
.premium-card-btn--gold {
  background: linear-gradient(135deg, rgba(245,214,8,.25) 0%, rgba(245,190,0,.15) 100%);
  border-color: rgba(245,214,8,.55);
  color: var(--cp);
  font-weight: 800;
}
.premium-card-btn--gold:hover {
  background: var(--cp);
  border-color: var(--cp);
  color: #001f44;
  box-shadow: 0 0 24px rgba(245,214,8,.5);
}
/* Hover amplification for featured */
.premium-card--featured:hover {
  box-shadow:
    0 0 0 1px rgba(245,214,8,.4),
    0 24px 72px rgba(0,20,55,.42),
    0 0 80px rgba(245,214,8,.12);
  transform: translateY(-3px);
}
/* Active slide featured gets extra glow */
.swiper-premium-01 .swiper-slide-active .premium-card--featured {
  box-shadow:
    0 0 0 1px rgba(245,214,8,.5),
    0 28px 80px rgba(0,20,55,.40),
    0 0 100px rgba(245,214,8,.14),
    0 0 40px rgba(12,151,218,.10);
}

/* ── 3. BLOG PREVIEW ─────────────────────────────────────────── */
#blog-preview { padding: var(--section-py) 0; background: var(--white); }
#blog-preview .section-title { color: var(--cm); }
#blog-preview .section-label { color: var(--cb); }
#blog-preview .section-subtitle { color: var(--gray-500); }

.blog-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,31,68,.11); }
.blog-card-img { position: relative; overflow: hidden; height: 220px; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--cp); color: var(--cd);
  font-size: .65rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 99px;
  display: flex; align-items: center; gap: 5px;
}
.blog-card-badge.badge-event { background: var(--ca); color: #fff; }
.blog-card-badge.badge-tip   { background: #22c55e; color: #fff; }
.blog-card-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex; gap: 14px; font-size: .73rem;
  color: var(--gray-400); margin-bottom: 10px;
}
.blog-card-meta span { display: flex; align-items: center; gap: 4px; }
.blog-card-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 800;
  color: var(--cm); line-height: 1.35; margin-bottom: 10px;
}
.blog-card-excerpt { font-size: .88rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.blog-card-link {
  font-size: .82rem; font-weight: 700; color: var(--cb);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s, color .2s;
}
.blog-card-link:hover { gap: 10px; color: var(--ca); text-decoration: none; }

/* Card destacada (expo) */
.blog-card-featured .blog-card-img { height: 300px; }
.blog-card-featured .blog-card-title { font-size: 1.22rem; }
.blog-card-featured .blog-card-excerpt { font-size: .92rem; }

/* Card compacta (horizontal) */
.blog-card-compact { flex-direction: row; height: auto; }
.blog-card-img-h  { width: 130px; min-width: 130px; height: 120px; overflow: hidden; }
.blog-card-img-h img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.blog-card-compact:hover .blog-card-img-h img { transform: scale(1.08); }
.blog-card-compact .blog-card-body { padding: 16px 18px; }
.blog-card-compact .blog-card-title { font-size: .92rem; }
.blog-card-compact .blog-card-excerpt { font-size: .82rem; margin-bottom: 8px; }
.blog-cat-inline {
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--cb); margin-bottom: 5px;
  display: flex; align-items: center; gap: 4px;
}

/* ================================================================
   RUZ v4 — Nosotros, Servicios, Por Qué Elegirnos
================================================================ */
/* ────────────────────────────────────────────────────────────
   NUEVOS: casa_01 en Por Qué Elegirnos + CTA Premium
   Agregados sobre v5 — no tocar el resto
──────────────────────────────────────────────────────────── */

/* ================================================================
   CAMBIO 1 — Why-item activo (sincronizado con rotador)
================================================================ */
.why-item {
  cursor: pointer;
  position: relative;
  padding-left: 10px;
  transition: background .2s;
  border-radius: 0 8px 8px 0;
}
.why-item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 2px;
  background: transparent;
  transition: background .3s;
}
.why-item.why-item-active::before { background: var(--cp); }

.why-item.why-item-active .why-num {
  background: var(--cp) !important;
  color: var(--cd) !important;
  border-color: var(--cp) !important;
}
.why-item.why-item-active .why-content h4 { color: var(--cm); }
.why-item.why-item-active .why-content p  { color: var(--gray-500); }
.why-item:not(.why-item-active) .why-content h4 { color: #94a3b8; }
.why-item:not(.why-item-active) .why-content p  { color: #b0bec5; }
.why-item:hover:not(.why-item-active) { background: rgba(12,151,218,.04); }

/* Barra de progreso */
.why-rot-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--cp);
  width: 0%;
  border-radius: 0 2px 0 0;
  z-index: 4;
}

/* Caption inferior del rotador */
.why-rot-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,20,50,.92), transparent);
  padding: 32px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.why-rot-caption-num {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--cp);
  color: var(--cd);
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-rot-caption-text {
  font-size: .82rem; font-weight: 700; color: #fff;
}

/* ================================================================
   CAMBIO 2 — CTA Premium (fondo navy + 2 columnas)
================================================================ */
.cta-prem-section {
  background: var(--cd);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
/* Patrón de puntos sutil */
.cta-prem-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}
/* Glow radial decorativo */
.cta-prem-section::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(12,151,218,.07) 0%, transparent 65%);
  right: -100px; top: -200px; pointer-events: none; z-index: 0;
}
.cta-prem-section .container { position: relative; z-index: 1; }

/* Row de 2 columnas */
.cta-prem-row { min-height: 460px; align-items: flex-end; }

/* Columna imagen */
.cta-prem-img-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
}
.cta-prem-casa {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
  position: relative; bottom: 0;
}

/* Columna contenido */
.cta-prem-content {
  padding: 72px 0 72px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow */
.cta-prem-eyebrow {
  font-size: .62rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cp);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.cta-prem-eyebrow::before,
.cta-prem-eyebrow::after {
  content: ''; width: 22px; height: 2px; background: var(--cp);
}

/* Título */
.cta-prem-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; color: #fff;
  letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: 16px;
}
.cta-prem-title span { color: var(--cp); }

/* Subtítulo */
.cta-prem-sub {
  font-size: .93rem;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 420px;
}

/* Badges de confianza */
.cta-prem-trust {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.cta-prem-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  font-size: .7rem; font-weight: 600;
  padding: 5px 12px; border-radius: 99px;
}
.cta-prem-badge i { color: var(--cp); font-size: .75rem; }

/* Botones */
.cta-prem-btns {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Horario */
.cta-prem-hours {
  font-size: .75rem; color: rgba(255,255,255,.3);
  display: flex; align-items: center; gap: 6px;
}

/* Responsive */
@media (max-width: 991px) {
  .cta-prem-content { padding: 48px 0 48px 24px; }
  .cta-prem-casa    { max-width: 300px; }
}
@media (max-width: 767px) {
  .cta-prem-section  { padding: 48px 0 0; }
  .cta-prem-row      { flex-direction: column; min-height: auto; }
  .cta-prem-img-col  { order: 2; padding-top: 0; justify-content: center; }
  .cta-prem-content  { order: 1; padding: 40px 0 24px; align-items: center; text-align: center; }
  .cta-prem-eyebrow  { justify-content: center; }
  .cta-prem-sub      { max-width: 100%; }
  .cta-prem-trust    { justify-content: center; }
  .cta-prem-btns     { justify-content: center; flex-direction: column; align-items: center; }
  .cta-prem-btns .btn-ruz,
  .btn-wa-prem       { width: 100%; max-width: 300px; justify-content: center; }
  .cta-prem-hours    { justify-content: center; }
  .cta-prem-casa     { max-width: 260px; }
}

/* ── UTILIDADES INDEX ────────────────────────────────────── */
.icon-sm            { font-size: .85rem; }
.stat-pct           { font-size: .5em; color: var(--ca); vertical-align: super; }
.subtitle-narrow    { max-width: 520px; }
.biolink-card--static { cursor: default; }
.cov-title-idx      { font-size: 1.6rem; }
.blog-card--full    { height: 100%; }
