/* =========================================================
   THE CAMPOS FIRM — HOME.CSS
   ========================================================= */

/* ---------- BASE ---------- */
.campos-home{
  background: var(--cream);
  color: var(--dark);
}

/* ---------- HERO ---------- */
.campos-home .home-hero{
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.campos-home .home-hero::before{
  content: "";
  position: absolute;
  left: -100px;
  top: 55%;
  transform: translateY(-50%);
  width: min(78vw, 1350px);
  height: min(165vh, 1700px);
  background-image: url('/wp-content/themes/astra-child/assets/images/lady_justice_law.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  opacity: .10;
  z-index: 1;
  pointer-events: none;
  filter: grayscale(.08) sepia(.08) brightness(1.02);
}

.campos-home .hero-inner{
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 650px;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

.campos-home .hero-copy{
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 58px 78px 68px;
  gap: 16px;
}

.campos-home .hero-photo-col{
  position: relative;
  z-index: 3;
  min-height: 650px;
  overflow: hidden;
  background: #efefef;
}

.campos-home .hero-photo-col::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(250,248,244,1) 0%,
    rgba(250,248,244,.88) 18%,
    rgba(250,248,244,.45) 42%,
    rgba(250,248,244,0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.campos-home .hero-photo-col img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  inset: 0;
}

/* ---------- TRUST BADGES ---------- */
.campos-home .hero-trust-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.campos-home .trust-badge{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e0d8c8;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  padding: 10px 16px;
  border-radius: 4px;
}

.campos-home .trust-badge__icon{
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
}

.campos-home .trust-badge__content{
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}

.campos-home .trust-badge__title{
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.campos-home .trust-badge__stars{
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1;
}

.campos-home .trust-badge__sub{
  font-size: 11px;
  color: #7a6e60;
  white-space: nowrap;
}

/* ---------- HERO TYPO ---------- */
.campos-home .hero-eyebrow{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.campos-home .hero-eyebrow::before{
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.campos-home .hero-title{
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 16px;
}

.campos-home .hero-subtext{
  font-size: 17px;
  line-height: 1.6;
  color: #4a3f2f;
  max-width: 480px;
  margin-bottom: 24px;
}

.campos-home .hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.campos-home .hero-inline-quote{
  border-left: 3px solid var(--gold);
  padding: 16px 0 16px 20px;
  margin-top: 8px;
}

.campos-home .hero-inline-quote p{
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.5vw, 18px);
  font-style: italic;
  line-height: 1.6;
  color: #4a3f2f;
  margin-bottom: 10px;
}

.campos-home .hero-inline-quote cite{
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ---------- HERO STATS BAR ---------- */
.campos-home .hero-stats-bar{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,.3);
  padding: 40px 80px;
}

.campos-home .stats-bar__item{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  padding: 0 20px;
}

.campos-home .stats-bar__icon{
  font-size: 24px;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}

.campos-home .stats-bar__text{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campos-home .stats-bar__text strong{
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.campos-home .stats-bar__text span{
  font-size: 12px;
  color: rgba(245,240,232,.6);
  line-height: 1.2;
}

.campos-home .stats-bar__divider{
  width: 1px;
  height: 48px;
  background: rgba(201,168,76,.3);
  flex-shrink: 0;
}

/* ---------- INTRO ---------- */
.campos-home .cf-intro-section{
  background: #1c1a17;
  padding: 80px 40px;
}

.campos-home .cf-intro-inner{
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.campos-home .cf-intro-eyebrow{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.campos-home .cf-intro-heading{
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 28px;
}

.campos-home .cf-intro-body{
  font-size: 17px;
  line-height: 1.75;
  color: rgba(250,248,244,.82);
  margin-bottom: 16px;
}

.campos-home .cf-intro-en{
  font-style: italic;
  color: rgba(250,248,244,.55);
  font-size: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(201,168,76,.25);
}

/* ---------- LO QUE HACEMOS ---------- */
.campos-home .cf-lqh-section{
  background: var(--cream);
}

.campos-home .cf-lqh-header{
  padding: 80px 40px 28px;
}

.campos-home .cf-lqh-header-inner{
  max-width: 1000px;
  margin: 0 auto;
}

.campos-home .cf-lqh-eyebrow-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.campos-home .cf-lqh-eyebrow-line{
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.campos-home .cf-lqh-eyebrow-text{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.campos-home .cf-lqh-heading{
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.08;
  margin-bottom: 20px;
}

.campos-home .cf-lqh-subtext{
  font-size: 16px;
  line-height: 1.8;
  color: var(--mid);
  max-width: 860px;
}

.campos-home .cf-lqh-services{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}

.campos-home .cf-lqh-divider{
  display: none;
}

.campos-home .cf-lqh-service{
  background: #fff;
  border: 1px solid rgba(28,26,23,.08);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(28,15,5,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.campos-home .cf-lqh-service:hover{
  transform: translateY(-4px);
  border-color: rgba(201,168,76,.35);
  box-shadow: 0 26px 60px rgba(28,15,5,.10);
}

.campos-home .cf-lqh-num{
  font-size: 44px;
  font-weight: 700;
  color: rgba(201,168,76,.55);
  line-height: 1;
}

.campos-home .cf-lqh-service-body{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campos-home .cf-lqh-service-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.campos-home .cf-lqh-service-desc{
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mid);
}

.campos-home .cf-lqh-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campos-home .cf-lqh-tag{
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid rgba(28,26,23,.10);
  background: rgba(201,168,76,.07);
  color: rgba(28,26,23,.78);
  white-space: nowrap;
}

/* ---------- EDUARDO ---------- */
.campos-home .cf-eduardo-section{
  background: var(--cream);
  padding: 80px 40px;
  overflow: hidden;
}

.campos-home .cf-eduardo-inner{
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 64px;
}

.campos-home .cf-eduardo-photo-col{
  flex: 0 0 420px;
  position: relative;
}

.campos-home .cf-eduardo-photo-wrap{
  position: relative;
  width: 100%;
}

.campos-home .cf-eduardo-img{
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top center;
}

.campos-home .cf-eduardo-badge{
  position: absolute;
  top: 0;
  right: -32px;
  background: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  z-index: 2;
}

.campos-home .cf-eduardo-badge-num{
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.campos-home .cf-eduardo-badge-label{
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,248,244,.75);
  margin-top: 4px;
  text-align: center;
}

.campos-home .cf-eduardo-gold-strip{
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 75%;
  height: 20px;
  background: var(--gold);
  z-index: 1;
}

.campos-home .cf-eduardo-content-col{
  flex: 1;
  padding-top: 20px;
}

.campos-home .cf-eduardo-eyebrow-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.campos-home .cf-eduardo-eyebrow-line{
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.campos-home .cf-eduardo-eyebrow-text{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.campos-home .cf-eduardo-heading{
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 28px;
}

.campos-home .cf-eduardo-quote{
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  color: var(--dark);
}

.campos-home .cf-eduardo-bio{
  font-size: 15px;
  line-height: 1.75;
  color: rgba(28,26,23,.75);
  margin-bottom: 32px;
}

.campos-home .cf-eduardo-checklist{
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 36px;
}

.campos-home .cf-eduardo-checklist li{
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.campos-home .cf-eduardo-checklist li::before{
  content: "";
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 3px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.campos-home .cf-eduardo-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 16px 32px;
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease;
}

.campos-home .cf-eduardo-cta:hover{
  background: var(--gold);
  color: var(--dark);
}

/* ---------- SITUACIONES ---------- */
.campos-home .cf-services-section{
  background: var(--sand-2);
  padding: 96px 0;
}

.campos-home .cf-services-inner{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.campos-home .cf-services-eyebrow{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.campos-home .cf-services-heading{
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.08;
  margin-bottom: 40px;
}

.campos-home .cf-services-grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}

.campos-home .cf-service-card{
  background: var(--navy);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 18px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

.campos-home .cf-service-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0,0,0,.25);
  border-color: rgba(201,168,76,.5);
}

.campos-home .cf-service-icon{
  margin-bottom: 20px;
}

.campos-home .cf-service-title{
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.campos-home .cf-service-desc{
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
  flex: 1;
}

.campos-home .cf-service-label{
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.22);
  background: rgba(201,168,76,.06);
  padding: 7px 10px;
  border-radius: 999px;
}

.campos-home .cf-service-link{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.campos-home .cf-service-link:hover{
  color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1400px){
  .campos-home .home-hero::before{
    left: 40px;
    top: 53%;
    width: min(58vw, 900px);
    height: min(124vh, 1180px);
    opacity: .105;
  }
}

@media (max-width: 1280px){
  .campos-home .home-hero::before{
    left: 20px;
    top: 54%;
    width: min(54vw, 820px);
    height: min(114vh, 1060px);
    opacity: .10;
  }
}

@media (max-width: 1100px){
  .campos-home .home-hero::before{
    left: 0;
    top: 55%;
    width: min(50vw, 720px);
    height: min(100vh, 920px);
    opacity: .095;
  }
}

@media (max-width: 1024px){
  .campos-home .cf-lqh-services{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 960px){
  .campos-home .home-hero::before{
    left: 72%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 92vw;
    height: 120vw;
    background-position: center;
    opacity: .085;
  }

  .campos-home .hero-inner{
    grid-template-columns: 1fr;
  }

  .campos-home .hero-copy{
    padding: 42px 24px 58px;
  }

  .campos-home .hero-photo-col{
    min-height: 420px;
  }

  .campos-home .hero-photo-col::before{
    display: none;
  }

  .campos-home .hero-stats-bar{
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    align-items: flex-start;
  }

  .campos-home .stats-bar__item{
    justify-content: flex-start;
    padding: 0;
  }

  .campos-home .stats-bar__divider{
    width: 100%;
    height: 1px;
  }

  .campos-home .cf-eduardo-inner{
    flex-direction: column;
    gap: 40px;
  }

  .campos-home .cf-eduardo-photo-col{
    flex: none;
    width: 100%;
    max-width: 420px;
  }

  .campos-home .cf-eduardo-photo-wrap{
    padding-top: 18px;
  }

  .campos-home .cf-eduardo-badge{
    right: 12px;
    top: 12px;
    padding: 14px 16px;
    min-width: 92px;
  }

  .campos-home .cf-eduardo-badge-num{
    font-size: 34px;
  }

  .campos-home .cf-eduardo-badge-label{
    font-size: 9px;
    letter-spacing: .10em;
  }
}

@media (max-width: 768px){
  .campos-home .cf-services-inner,
  .campos-home .cf-lqh-header,
  .campos-home .cf-lqh-services,
  .campos-home .cf-eduardo-section{
    padding-left: 24px;
    padding-right: 24px;
  }

  .campos-home .cf-services-grid{
    grid-template-columns: 1fr;
  }

  .campos-home .cf-eduardo-checklist{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .campos-home .home-hero::before{
    left: 76%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 132vw;
    background-position: center;
    opacity: .08;
  }

  .campos-home .hero-trust-badges{
    flex-direction: column;
  }

  .campos-home .trust-badge__title,
  .campos-home .trust-badge__sub{
    white-space: normal;
  }

  .campos-home .cf-lqh-services{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HOME — ANIMATIONS
   ========================================================= */

/* Safe default: visible if JS fails */
.campos-home .reveal,
.campos-home .reveal-left,
.campos-home .reveal-right,
.campos-home .reveal-scale,
.campos-home .hero-fade,
.campos-home .stagger-item {
  opacity: 1;
  transform: none;
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22,.61,.36,1),
    filter .8s ease;
  will-change: opacity, transform, filter;
}

/* Activate only when JS adds .js-reveal */
.campos-home.js-reveal .reveal {
  opacity: 0;
  transform: translateY(34px);
}

.campos-home.js-reveal .reveal-left {
  opacity: 0;
  transform: translateX(-34px);
}

.campos-home.js-reveal .reveal-right {
  opacity: 0;
  transform: translateX(34px);
}

.campos-home.js-reveal .reveal-scale {
  opacity: 0;
  transform: scale(.96);
  filter: blur(3px);
}

.campos-home.js-reveal .hero-fade {
  opacity: 0;
  transform: translateY(22px);
}

.campos-home.js-reveal .stagger-item {
  opacity: 0;
  transform: translateY(24px);
}

.campos-home.js-reveal .is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger timings */
.campos-home .delay-1 { transition-delay: .08s; }
.campos-home .delay-2 { transition-delay: .16s; }
.campos-home .delay-3 { transition-delay: .24s; }
.campos-home .delay-4 { transition-delay: .32s; }
.campos-home .delay-5 { transition-delay: .40s; }
.campos-home .delay-6 { transition-delay: .48s; }

/* Hover micro-interactions */
.campos-home .cf-lqh-service,
.campos-home .cf-service-card,
.campos-home .trust-badge {
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    background-color .28s ease;
}

.campos-home .hero-photo-col img,
.campos-home .cf-eduardo-img {
  transition: transform 1.2s ease;
}

.campos-home .hero-photo-col:hover img{
  transform: none;
}

.campos-home .cf-eduardo-photo-wrap:hover .cf-eduardo-img {
  transform: scale(1.025);
}