/* =========================================
   HOME PAGE — LIGHT EDITORIAL SYSTEM
   ========================================= */

body{
  background: #ffffff;
  color: #111111;
}

.home-page{
  background: #fff;
  color: #111;
}

.home-page .container{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-page .section{
  padding: 84px 0;
}

.home-page .eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(18,18,18,.52);
  margin-bottom: 16px;
}

.home-page .lead{
  margin: 0;
  color: #626874;
  font-size: 17px;
  line-height: 1.8;
  max-width: 760px;
}

.home-page .small{
  color: #6d7380;
}

.home-page .section-title{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.home-page .section-title h2{
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.home-page .section-title p{
  margin: 0;
  color: #626874;
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}

.home-page .section-title-clean{
  align-items: end;
}

/* =========================================
   HERO
   ========================================= */
.home-hero-v2{
  background: #fff;
  padding: 0 0 74px;
}

.home-hero-media-wrap{
  width: 100%;
}

/* FULL WIDTH HERO */
.home-page .hero-media{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: #eceef2;
  box-shadow: none;
  aspect-ratio: 16 / 8.2;
  isolation: isolate;
}

.home-page .hero-media .layer{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms ease;
  will-change: transform, opacity;
  filter: saturate(.96) contrast(1.04);
}

.home-page .hero-media .layer.active{
  opacity: 1;
}

.home-page .hero-media::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,12,14,.14) 0%, rgba(12,12,14,.24) 100%);
}

.home-page .hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.68) 0%,
      rgba(0,0,0,.54) 34%,
      rgba(0,0,0,.22) 62%,
      rgba(0,0,0,.04) 100%);
}

/* CONTENIDO ALINEADO DENTRO DEL FULL WIDTH */
.home-page .hero-media .container{
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.home-page .hero-media .content{
  position: relative;
  z-index: 3;
  padding: 90px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 720px;
}

.home-page .hero-media .mini-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.92);
  width: fit-content;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.home-page .hero-media .mini-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(120,170,255,.95), rgba(180,140,255,.95));
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.home-page .hero-media h2{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 20ch;
  color: rgba(255,255,255,.96);
  text-shadow:
    0 10px 30px rgba(0,0,0,.55),
    0 2px 10px rgba(0,0,0,.35);
}

.home-page .hero-media .sub{
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 70ch;
  line-height: 1.6;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
}

.home-page .hero-media .actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-page .hero-media .btn.btn-ghost.btn-pro{
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.94);
  border-color: rgba(255,255,255,.16);
}

.home-page .hero-media .btn.btn-ghost.btn-pro:hover{
  background: rgba(0,0,0,.44);
}

.home-hero-stack{
  margin-top: 38px;
}

.home-hero-copy{
  max-width: 900px;
}

.home-hero-copy h1{
  margin: 0 0 18px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -0.055em;
  color: #111;
}

/* persona switch */
.home-page .persona-switch{
  position: relative;
  display: inline-flex;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(18,18,18,.10);
  background: #f3f4f6;
  margin: 28px 0 18px;
}

.home-page .persona-switch .pill{
  position: relative;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(18,18,18,.72);
  cursor: pointer;
  transition: 180ms ease;
  min-width: 170px;
  text-align: center;
}

.home-page .persona-switch .pill:hover{
  color: #111;
}

.home-page .persona-switch .pill.active{
  color: #fff;
}

.home-page .persona-switch::before{
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #111;
  transform: translateX(0%);
  transition: 220ms ease;
}

.home-page .persona-switch[data-active="business"]::before{
  transform: translateX(100%);
}

.home-hero-panels{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 22px;
  align-items: start;
}

/* dynamic card */
.home-page .card-soft{
  background: #fff;
  border: 1px solid rgba(18,18,18,.08);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(16,18,24,.07);
}

.home-page .badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(18,18,18,.08);
  background: #f5f6f8;
  color: rgba(18,18,18,.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-page .hero-dynamic h3{
  margin: 16px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #111;
}

.home-page .hero-dynamic p{
  margin: 0;
  color: #626874;
  line-height: 1.8;
  font-size: 16px;
}

.home-page .bullets{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.home-page .bullets li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #1b1d23;
  line-height: 1.7;
}

.home-page .bullets .dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #111;
  margin-top: 9px;
  flex: 0 0 auto;
}

.home-page .hero-actions{
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-page .hero-dynamic .btn-ghost{
  background: #fff;
  color: #111;
  border: 1px solid rgba(18,18,18,.10);
}

.home-page .hero-dynamic .btn-ghost:hover{
  background: #f6f6f8;
}

.home-page .note{
  margin-top: 12px;
}

/* brief panel */
.home-brief-panel .panel-card{
  background: #f7f7f8;
  border: 1px solid rgba(18,18,18,.08);
  border-radius: 26px;
  padding: 22px;
  position: sticky;
  top: 98px;
  box-shadow: 0 10px 30px rgba(16,18,24,.05);
}

.home-brief-panel .panel-kicker{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(18,18,18,.48);
  margin-bottom: 14px;
}

.home-brief-panel h3{
  margin: 0;
  color: #111;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-brief-panel .panel-desc{
  margin-top: 10px;
  color: #626874;
}

.home-page .mini-form{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.home-page .mini-label{
  font-size: 12px;
  color: rgba(18,18,18,.62);
  margin-left: 2px;
  font-weight: 700;
  letter-spacing: .04em;
}

.home-page .mini-input{
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18,18,18,.10);
  background: #fff;
  color: #111;
  outline: none;
}

.home-page .mini-input:focus{
  border-color: rgba(18,18,18,.18);
  box-shadow: 0 0 0 4px rgba(18,18,18,.04);
}

.home-brief-panel .panel-note{
  margin-top: 8px;
}

/* =========================================
   INSIGHTS BAND
   ========================================= */
.home-insights-band{
  background: #f5f5f7;
  border-top: 1px solid rgba(18,18,18,.04);
  border-bottom: 1px solid rgba(18,18,18,.04);
}

.home-page .quote-carousel{
  border-radius: 30px;
  border: 1px solid rgba(18,18,18,.08);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16,18,24,.06);
}

.home-page .quote-track{
  display: flex;
  gap: 14px;
  padding: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-page .quote-track::-webkit-scrollbar{
  display: none;
}

.home-page .quote-card{
  scroll-snap-align: start;
  min-width: min(520px, 84vw);
  border-radius: 24px;
  border: 1px solid rgba(18,18,18,.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8f8fa 100%);
  padding: 20px;
}

.home-page .quote-card h3{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #111;
}

.home-page .quote-card p{
  margin: 0;
  color: #626874;
  line-height: 1.75;
  font-size: 15px;
}

.home-page .quote-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(18,18,18,.08);
  background: #fafafc;
}

.home-page .qc-btn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(18,18,18,.10);
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: 160ms ease;
  font-size: 22px;
  line-height: 1;
}

.home-page .qc-btn:hover{
  background: #f5f6f8;
  transform: translateY(-1px);
}

.home-page .qc-dots{
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.home-page .qc-dot{
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: 1px solid rgba(18,18,18,.18);
  background: rgba(18,18,18,.08);
  opacity: .9;
}

.home-page .qc-dot.active{
  width: 18px;
  border-radius: 999px;
  background: #111;
  border-color: #111;
}

.home-page .qc-progress{
  height: 2px;
  background: rgba(18,18,18,.08);
}

.home-page .qc-bar{
  display: block;
  height: 2px;
  width: 0%;
  background: #111;
}

/* =========================================
   SERVICES BAND
   ========================================= */
.home-services-band{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.54) 0%, rgba(255,255,255,.64) 100%),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(18,18,18,.04);
  border-bottom: 1px solid rgba(18,18,18,.04);
}

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

.service-card-home{
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 18px 44px rgba(16,18,24,.08),
    0 1px 0 rgba(255,255,255,.65) inset;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card-home:hover{
  transform: translateY(-4px);
  box-shadow:
    0 24px 54px rgba(16,18,24,.12),
    0 1px 0 rgba(255,255,255,.72) inset;
  border-color: rgba(255,255,255,.72);
}

.service-card-num{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  margin-bottom: 16px;
}

.service-card-home h3{
  margin: 0 0 10px;
  color: #111;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.service-card-home p{
  margin: 0;
  color: #626874;
  line-height: 1.8;
  font-size: 15px;
}

.service-link-home{
  display: inline-block;
  margin-top: 16px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.service-link-home:hover{
  text-decoration: underline;
}

/* =========================================
   GALLERY
   ========================================= */
.home-gallery-band{
  background: #f5f5f7;
  border-top: 1px solid rgba(18,18,18,.04);
}

.home-page .gallery-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
  grid-auto-rows: auto;
  align-items: stretch;
}

.home-page .g-item{
  display: block;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(18,18,18,.08);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16,18,24,.08);
  text-decoration: none;
  isolation: isolate;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.home-page .g-item img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  filter: saturate(.98) contrast(1.04);
  transition: transform 420ms ease, filter 420ms ease;
}

.home-page .g-item::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.02) 0%,
      rgba(0,0,0,0.10) 45%,
      rgba(0,0,0,0.52) 100%);
  opacity: .9;
}

.home-page .g-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  gap: 8px;
  z-index: 3;
}

.home-page .g-title{
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.96);
  text-shadow: 0 8px 18px rgba(0,0,0,.45);
}

.home-page .g-text{
  color: rgba(255,255,255,.80);
  line-height: 1.55;
  font-size: 13px;
  max-width: 62ch;
  text-shadow: 0 8px 18px rgba(0,0,0,.38);
}

.home-page .g-item:hover{
  transform: translateY(-4px);
  border-color: rgba(18,18,18,.14);
  box-shadow: 0 26px 70px rgba(16,18,24,.12);
}

.home-page .g-item:hover img{
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.08);
}

.home-page .g-a{ grid-column: 1 / 2; grid-row: 1 / span 2; }
.home-page .g-b{ grid-column: 2 / 4; grid-row: 1 / span 1; }
.home-page .g-d{ grid-column: 3 / 4; grid-row: 2 / span 1; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px){
  .home-hero-panels{
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 980px){
  .home-page .section-title{
    flex-direction: column;
    align-items: flex-start;
  }

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

  .home-brief-panel .panel-card{
    position: static;
  }

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

  .home-page .gallery-grid{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .home-page .g-a,
  .home-page .g-b,
  .home-page .g-d{
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 820px){
  .home-page .hero-media{
    aspect-ratio: 4 / 5;
  }

  .home-page .hero-media::after{
    background:
      linear-gradient(180deg,
        rgba(0,0,0,.76) 0%,
        rgba(0,0,0,.64) 45%,
        rgba(0,0,0,.42) 72%,
        rgba(0,0,0,.18) 100%);
  }

  .home-page .hero-media .content{
    padding: 22px;
  }
}

@media (max-width: 760px){

  .home-page .section{
    padding: 64px 0;
  }

  .home-hero-stack{
    margin-top: 28px;
  }

  .home-hero-copy h1{
    font-size: clamp(42px, 14vw, 66px);
  }

  .home-page .persona-switch{
    width: 100%;
    display: flex;
  }

  .home-page .persona-switch .pill{
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
  }

  .home-page .hero-dynamic h3{
    font-size: 30px;
  }

  .home-page .hero-dynamic,
  .home-brief-panel .panel-card{
    border-radius: 22px;
    padding: 20px;
  }

  .home-page .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .home-page .quote-card{
    min-width: 86vw;
  }
}

@media (max-width: 560px){
  .home-page .hero-media h2{
    font-size: 34px;
  }

  .home-page .hero-media .actions{
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .hero-media .actions .btn{
    width: 100%;
    justify-content: center;
  }

  .home-page .section-title h2{
    font-size: 36px;
  }
}


/* =========================================
   WORK BAND — REAL WORK, REAL SYSTEMS
   ========================================= */
.home-work-band{
  background: #f5f5f7;
  border-top: 1px solid rgba(18,18,18,.04);
}

.home-work-intro{
  margin: 14px 0 0;
  max-width: 760px;
  color: #626874;
  font-size: 17px;
  line-height: 1.8;
}

.home-work-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 18px;
  margin-top: 26px;
}

.work-card{
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  border: 1px solid rgba(18,18,18,.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 14px 38px rgba(16,18,24,.06);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.work-card:hover{
  transform: translateY(-4px);
  border-color: rgba(18,18,18,.14);
  box-shadow: 0 24px 52px rgba(16,18,24,.10);
}

.work-card-large{
  padding: 28px;
}

.work-card-top{
  margin-bottom: 18px;
}

.work-chip{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f2f5;
  border: 1px solid rgba(18,18,18,.08);
  color: rgba(18,18,18,.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.work-card-body h3{
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.work-card:not(.work-card-large) .work-card-body h3{
  font-size: clamp(22px, 2vw, 30px);
}

.work-card-body p{
  margin: 0;
  color: #626874;
  font-size: 15.5px;
  line-height: 1.85;
}

.work-points{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.work-points li{
  position: relative;
  padding-left: 18px;
  color: #1b1d23;
  line-height: 1.7;
}

.work-points li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111;
}

.work-metrics{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.work-metrics li{
  display: grid;
  gap: 3px;
  padding: 14px 14px;
  border-radius: 18px;
  background: #f7f7f9;
  border: 1px solid rgba(18,18,18,.06);
}

.work-metrics strong{
  color: #111;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.work-metrics span{
  color: #626874;
  font-size: 14px;
  line-height: 1.6;
}

.work-card-foot{
  margin-top: 20px;
}

.work-link{
  position: relative;
  display: inline-block;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.work-link::before,
.work-link::after{
  content: "";
  position: absolute;
  left: 0;
  border-radius: 999px;
  transition: width 240ms ease, background 240ms ease;
}

.work-link::before{
  width: 100%;
  height: 1.5px;
  bottom: -8px;
  background: rgba(17,17,17,.88);
}

.work-link::after{
  width: 60%;
  height: 1.5px;
  bottom: -13px;
  background: rgba(17,17,17,.34);
}

.work-link:hover{
  color: #5e56d6;
  transform: scale(1.04);
}

.work-link:hover::before{
  width: 110%;
  background: #5e56d6;
}

.work-link:hover::after{
  width: 74%;
  background: rgba(94,86,214,.48);
}

@media (max-width: 980px){
  .home-work-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .home-work-intro{
    font-size: 16px;
    line-height: 1.75;
  }

  .work-card,
  .work-card-large{
    padding: 20px;
    border-radius: 22px;
  }

  .work-card-body h3{
    font-size: 28px;
  }

  .work-card:not(.work-card-large) .work-card-body h3{
    font-size: 24px;
  }
}