/* Juridico KHAN & Asociados - Secuencia Gráfica standard
   Dark + gold editorial look, responsive, accessible.
*/

:root{
  --bg:#0b0b0f;
  --bg2:#11111a;
  --card:#0f0f16;
  --text:#f3f3f6;
  --muted:#b8b8c7;
  --gold:#d9b15f;
  --gold2:#f1d58c;
  --line:rgba(255,255,255,.12);
  --shadow: 0 16px 50px rgba(0,0,0,.45);
  --radius: 20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 10% 0%, rgba(217,177,95,.13), transparent 50%),
              radial-gradient(900px 600px at 90% 20%, rgba(241,213,140,.10), transparent 50%),
              var(--bg);
  color:var(--text);
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(1120px, 92%); margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:40;
  background: rgba(10,10,14,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:10px 0;
}
.topbar__left{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(217,177,95,.35);
  background: rgba(217,177,95,.08);
  font-weight:600; font-size:14px;
}
.pill--ghost{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:600;
}
.icon{filter:saturate(1.2)}

.header{
  position:sticky; top:52px; z-index:35;
  background: rgba(11,11,15,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; gap:12px; align-items:center}
.brand__logo{
  width:44px; height:44px; border-radius:12px;
  object-fit:cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 10px 30px rgba(0,0,0,.4);
}
.brand__name{
  font-family: Cinzel, serif;
  letter-spacing:.6px;
  font-weight:700;
  font-size:18px;
}
.brand__tag{color:var(--muted); font-size:12px; margin-top:2px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{
  color:var(--muted);
  font-weight:600; font-size:14px;
  padding:10px 8px;
  border-radius:12px;
}
.nav a:hover{color:var(--text); background: rgba(255,255,255,.06)}

.nav__toggle{
  display:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  font-size:16px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(217,177,95,.55);
  background: linear-gradient(180deg, rgba(217,177,95,.23), rgba(217,177,95,.10));
  color:var(--text);
  font-weight:800;
  letter-spacing:.2px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:800;
}
.btn--small{padding:10px 12px; border-radius:14px; font-size:14px; box-shadow:none}

.hero{
  position:relative;
  padding:52px 0 18px;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,11,15,.30), rgba(11,11,15,.92)),
    url("../images/portada.jpg") center/cover no-repeat;
  filter:saturate(1.05) contrast(1.05);
}
.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:26px;
  align-items:stretch;
}
.kicker{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(217,177,95,.35);
  background: rgba(0,0,0,.35);
  color:var(--gold2);
  font-weight:700;
  font-size:13px;
  margin-bottom:14px;
}
h1{
  margin:0 0 12px;
  font-family: Cinzel, serif;
  font-weight:700;
  letter-spacing:.6px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height:1.12;
}
.accent{color:var(--gold2)}
.lead{
  margin:0 0 18px;
  color:rgba(243,243,246,.92);
  font-size:16px;
  line-height:1.7;
  max-width: 58ch;
}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px}
.hero__badges{
  display:flex; gap:10px; flex-wrap:wrap
}
.badge{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card__cap{
  padding:16px 16px 0;
}
.card__title{
  font-family: Cinzel, serif;
  letter-spacing:.6px;
  font-weight:700;
  font-size:18px;
}
.card__sub{color:var(--muted); margin-top:4px; font-size:13px}
.card__body{padding:16px}
.card__actions{padding:0 16px 16px}

.video{
  margin:12px 16px 16px;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
}
.video iframe{
  width:100%;
  aspect-ratio: 16 / 9;
  display:block;
}

.section{padding:56px 0}
.section--alt{background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00))}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; margin-bottom:22px;
  flex-wrap:wrap;
}
.section__head h2{
  margin:0;
  font-family:Cinzel, serif;
  letter-spacing:.6px;
  font-size:32px;
}
.section__head p{margin:0; color:var(--muted); max-width: 70ch; line-height:1.6}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}

.feature{
  padding:18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
}
.feature__icon{font-size:22px; margin-bottom:10px}
.feature h3{
  margin:0 0 8px;
  font-weight:800;
}
.feature p{margin:0; color:var(--muted); line-height:1.6}

.section__cta{margin-top:18px; display:flex; gap:12px; flex-wrap:wrap}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.gallery__item{
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  overflow:hidden;
  cursor:pointer;
}
.gallery__item img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition: transform .25s ease;
}
.gallery__item:hover img{transform: scale(1.03)}

.social-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}
.fb-embed{
  padding:16px;
}
.fb-embed iframe{
  width:100%;
  max-width:100%;
  border-radius: 16px;
}
.list{display:flex; flex-direction:column; gap:10px}
.list__row{
  display:flex; justify-content:space-between; gap:12px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.list__label{font-weight:800}
.list__value{color:var(--muted); font-weight:700}

.notice{
  margin-top:12px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(217,177,95,.30);
  background: rgba(217,177,95,.08);
  color: rgba(243,243,246,.92);
  line-height:1.6;
}

.map iframe{
  width:100%;
  height:420px;
  border:0;
  display:block;
}

.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.form__row{display:flex; flex-direction:column; gap:8px; margin-bottom:12px}
label{font-weight:800; font-size:13px; color:rgba(243,243,246,.92)}
input, textarea{
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  padding:12px 12px;
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(217,177,95,.55)}
.form__hint{margin:10px 0 0; color:var(--muted); font-size:12px}

.bullets{margin:0; padding-left:18px; color:var(--muted); line-height:1.7}
.card--mini{box-shadow:none}
.mini{
  display:flex; gap:12px; align-items:center;
  padding:14px;
}
.mini img{
  width:84px; height:64px; object-fit:cover; border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
}
.mini__title{font-weight:900}
.mini__sub{color:var(--muted); font-size:13px; margin-top:2px}

.footer{
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.35);
}
.footer__inner{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:18px; padding:26px 0;
  flex-wrap:wrap;
}
.footer__brand{display:flex; gap:12px; align-items:center}
.footer__brand img{width:44px; height:44px; border-radius:12px; object-fit:cover; border:1px solid rgba(255,255,255,.12)}
.footer__name{font-weight:900}
.footer__tag{color:var(--muted); font-size:13px; margin-top:2px}
.footer__meta{color:var(--muted); margin-top:10px; line-height:1.7}
.footer__meta a{color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.footer__right p{margin:0; color:var(--muted)}
.footer__right a{color:var(--gold2); text-decoration:underline; text-underline-offset:3px}

.floatwa{
  position:fixed;
  right:18px; bottom:18px;
  width:56px; height:56px;
  border-radius: 18px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(217,177,95,.25), rgba(217,177,95,.12));
  border: 1px solid rgba(217,177,95,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  z-index: 60;
}
.floatwa span{font-size:22px}

.lightbox{
  position:fixed; inset:0;
  background: rgba(0,0,0,.82);
  display:none;
  align-items:center; justify-content:center;
  padding:22px;
  z-index: 70;
}
.lightbox.is-open{display:flex}
.lightbox img{
  max-width:min(1100px, 94vw);
  max-height: 82vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.lightbox__close{
  position:absolute;
  top:14px; right:14px;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-size:18px;
  cursor:pointer;
}

@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr}
  .grid--3{grid-template-columns: repeat(2, 1fr)}
  .social-grid{grid-template-columns: 1fr}
  .contact{grid-template-columns: 1fr}
  .header{top:52px}
}
@media (max-width: 640px){
  .topbar__right{display:none}
  .nav__toggle{display:inline-flex}
  .nav{
    position:fixed;
    left:50%;
    transform: translateX(-50%);
    top:108px;
    width:min(620px, 92%);
    background: rgba(11,11,15,.94);
    border:1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding:10px;
    display:none;
    flex-direction:column;
    gap:6px;
    box-shadow: var(--shadow);
    z-index: 55;
  }
  .nav.is-open{display:flex}
  .nav a{padding:12px 10px}
  .grid--3{grid-template-columns: 1fr}
  .gallery{grid-template-columns: 1fr}
  .gallery__item img{height:240px}
}
