/* =========================================================
   Zavala & Cía Abogados — Landing Videoconsulta Coactiva
   Navy oscuro + plata, tipografía serif editorial
   ========================================================= */

:root{
  --navy-deep: #0B121C;
  --navy: #141D2B;
  --navy-light: #1E2A3B;
  --silver: #C7CDD4;
  --silver-deep: #9AA3AC;
  --silver-light: #E7EAED;
  --white: #FFFFFF;
  --gray: #9BA6B3;
  --gray-dark: #545F6C;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1180px;
  --bg-hero: url('assets/hero-cliente-preocupado.jpg');
  --bg-resolucion: url('assets/cliente-fondos-liberados.jpg');
  --bg-justicia: url('assets/justicia-balanza.jpg');
}

*, *::before, *::after{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: var(--sans);
  color: #DCE1E8;
  background: var(--navy-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--white);
  text-wrap: balance;
}

p{ margin: 0 0 16px; color: #B7C0CB; }

a{ text-decoration: none; color: inherit; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Acento ornamental plata */
.ornament{
  display: block;
  width: 46px;
  height: 10px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, var(--silver) 0 60%, transparent 60%) 0 0/10px 2px no-repeat,
    linear-gradient(90deg, var(--silver) 0 40%, transparent 40%) 0 4px/10px 2px no-repeat,
    linear-gradient(90deg, var(--silver) 0 80%, transparent 80%) 0 8px/10px 2px no-repeat;
}

/* -------- Buttons -------- */
.btn{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}

.btn-white{
  background: var(--white);
  color: var(--navy-deep);
  border: 1px solid var(--white);
}
.btn-white:hover{
  background: var(--silver-light);
  border-color: var(--silver-light);
  transform: translateY(-2px);
}

.btn-lg{
  padding: 18px 38px;
  font-size: 14px;
}

.btn-outline{
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover{
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
}

.footer-logo{
  height: 26px;
  margin-bottom: 22px;
}

/* -------- Hero -------- */
.hero{
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero-logo{
  height: 42px;
  width: auto;
  margin-bottom: 44px;
  opacity: 0;
  transform: scale(.5);
  filter: blur(6px);
  animation: heroLogoGrow 1.2s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: .15s;
}
@keyframes heroLogoGrow{
  to{ opacity: 1; transform: scale(1); filter: blur(0); }
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 22%;
}
.hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,18,28,.97) 0%, rgba(11,18,28,.88) 34%, rgba(11,18,28,.45) 68%, rgba(11,18,28,.2) 100%);
}

.hero-content{
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--silver-light);
  margin-bottom: 22px;
}

.hero h1{
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 26px;
}

.hero-sub{
  font-size: 17px;
  color: #C3CAD3;
  max-width: 520px;
  margin-bottom: 34px;
  text-wrap: balance;
}
.hero-sub strong{ font-weight: 700; color: var(--white); }

.hero-note{
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .03em;
}

/* Indicador de scroll */
.scroll-indicator{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 25px;
}
.scroll-indicator::before{
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot{
  0%   { opacity: 1; top: 6px; }
  70%  { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* -------- Sections -------- */
.section{
  padding: 100px 0;
  background: var(--navy-deep);
}
.section-alt{
  background-image:
    linear-gradient(100deg, rgba(11,18,28,.95) 0%, rgba(11,18,28,.9) 45%, rgba(11,18,28,.55) 100%),
    var(--bg-justicia);
  background-size: cover;
  background-position: center 55%;
}

.tag{
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 16px;
}

.section h2{
  font-size: clamp(26px, 3.4vw, 36px);
  max-width: 720px;
  margin-bottom: 22px;
}

.section-head{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2{ margin-bottom: 0; }
.section-intro{
  color: var(--gray);
  font-size: 15.5px;
  margin: 0;
}

/* -------- Two column -------- */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 24px;
}

.two-col-reverse{ grid-template-columns: .85fr 1fr; }

.callout{
  background: var(--navy);
  border-left: 3px solid var(--silver);
  padding: 34px;
}

.callout h3{
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.callout-foot{
  color: var(--gray);
  font-size: 14px;
  margin-top: 18px;
  margin-bottom: 0;
}

.check-list{
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.check-list li{
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: #DCE1E8;
}
.check-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--silver);
}

/* -------- Service cards -------- */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card{
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.1);
  padding: 34px 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  border-color: var(--silver);
}

.service-icon{
  width: 38px;
  height: 38px;
  color: var(--silver);
  margin-bottom: 20px;
}
.service-icon svg{ width: 100%; height: 100%; }

.service-card h3{
  font-size: 16.5px;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p{
  color: var(--gray);
  font-size: 14px;
  margin: 0 0 18px;
}

/* -------- Steps -------- */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.step-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--silver);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 22px;
}

.step-card h3{
  font-size: 16.5px;
  color: var(--white);
}

.step-card p{
  color: var(--gray);
  font-size: 14.5px;
}

.steps-note{
  color: var(--gray);
  font-size: 13.5px;
  margin-top: 10px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-style: italic;
}

.cta-center{ margin-top: 36px; }

/* -------- FAQ Accordion -------- */
.accordion{
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.accordion-item{
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.accordion-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
}

.accordion-icon{
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--silver);
  transition: transform .25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon{
  transform: rotate(45deg);
}

.accordion-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-panel p{
  padding: 0 4px 24px;
  color: var(--gray);
  font-size: 14.5px;
  max-width: 760px;
}

/* -------- CTA final -------- */
.section-cta-final{
  position: relative;
  background-image:
    linear-gradient(100deg, rgba(11,18,28,.93) 0%, rgba(11,18,28,.8) 42%, rgba(11,18,28,.35) 100%),
    var(--bg-resolucion);
  background-size: cover;
  background-position: center 22%;
  text-align: center;
  padding: 100px 0;
}
.cta-final-inner{ max-width: 600px; }
.cta-final-inner .ornament{ margin-left: auto; margin-right: auto; }
.cta-final-inner p{
  color: #C3CAD3;
  font-size: 16px;
  margin-bottom: 30px;
  text-wrap: balance;
}

/* -------- Footer -------- */
.site-footer{
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--gray);
  padding: 68px 0 0;
}

.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p{
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-cta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.footer-cta p{
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-legal{
  padding: 24px;
  font-size: 12px;
  color: var(--gray-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal p{ margin: 0; color: var(--gray-dark); }

/* -------- Floating WhatsApp button -------- */
.whatsapp-float{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.5);
  z-index: 200;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.06); }
.whatsapp-float svg{ width: 28px; height: 28px; }

/* -------- Zoom-in al hacer scroll (elegante, minimalista) -------- */
.fade-in{
  opacity: 0;
  transform: scale(.92);
  transition: opacity 1s cubic-bezier(.16,.84,.44,1), transform 1s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.fade-in.is-visible{
  opacity: 1;
  transform: scale(1);
}

.fade-in-delay-1{ transition-delay: .15s; }
.fade-in-delay-2{ transition-delay: .3s; }

.cards-grid .service-card:nth-child(1){ transition-delay: 0s; }
.cards-grid .service-card:nth-child(2){ transition-delay: .1s; }
.cards-grid .service-card:nth-child(3){ transition-delay: .2s; }
.cards-grid .service-card:nth-child(4){ transition-delay: .3s; }

.steps-grid .step-card:nth-child(1){ transition-delay: 0s; }
.steps-grid .step-card:nth-child(2){ transition-delay: .12s; }
.steps-grid .step-card:nth-child(3){ transition-delay: .24s; }

.accordion-item.fade-in:nth-child(1){ transition-delay: 0s; }
.accordion-item.fade-in:nth-child(2){ transition-delay: .08s; }
.accordion-item.fade-in:nth-child(3){ transition-delay: .16s; }
.accordion-item.fade-in:nth-child(4){ transition-delay: .24s; }
.accordion-item.fade-in:nth-child(5){ transition-delay: .32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col-reverse{ grid-template-columns: 1fr; gap: 40px; }
  .section-head{ grid-template-columns: 1fr; gap: 20px; }
  .steps-grid{ grid-template-columns: 1fr; gap: 40px; }
  .footer-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .container{ padding: 0 18px; }
  .hero{ padding: 100px 0 90px; }
  .section{ padding: 64px 0; }
  .section-cta-final{ padding: 70px 0; }
  .cards-grid{ grid-template-columns: 1fr; gap: 24px; }
  .btn-lg{ width: 100%; text-align: center; padding: 17px 20px; }
  .hero-logo{ height: 34px; margin-bottom: 32px; }
  .whatsapp-float{ width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .footer-cta{ align-items: flex-start; }
  .btn-outline{ width: 100%; text-align: center; }
  .scroll-indicator{ bottom: 18px; }
}
