/* ============================================================
   Boland & Asoc. — Estudio Jurídico
   Réplica modernizada del sitio Joomla (template YOOtheme Lykka, estilo "yellow")
   Paleta y tipografías originales:
     - Títulos: Oswald   - Texto: Quattrocento Sans
     - Slate #34383c · Dorado #f8bc1a · Claro #eaeff4
   ============================================================ */

:root {
  --slate:        #34383c;
  --slate-dark:   #1f2124;
  --slate-soft:   #4f565e;
  --gold:         #f8bc1a;
  --gold-soft:    #fbd97d;
  --gold-deep:    #e0a400;
  --light:        #eaeff4;
  --muted:        #9ea9ae;
  --white:        #ffffff;
  --ink:          #2b2f33;

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Quattrocento Sans', 'Segoe UI', system-ui, sans-serif;

  --maxw: 1160px;
  --nav-h: 76px;
  --shadow: 0 18px 50px rgba(31, 33, 36, .14);
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.12;
  margin: 0;
}

a { color: var(--gold-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--slate); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 13px;
  padding: 14px 30px; border-radius: var(--radius);
  cursor: pointer; border: 2px solid transparent;
  transition: all .25s var(--ease);
}
.btn--primary { background: var(--gold); color: var(--slate-dark); }
.btn--primary:hover { background: var(--gold-deep); color: var(--slate-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(248,188,26,.35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--slate); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(31, 33, 36, .55);
  backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s, height .3s;
}
.nav.is-scrolled {
  background: var(--slate-dark);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img { height: 30px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 1.3px; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,.82);
  padding: 10px 16px; border-radius: 4px;
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--cta {
  margin-left: 8px; background: var(--gold); color: var(--slate-dark);
  font-weight: 500;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--gold-soft); color: var(--slate-dark); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease, transform 7s ease;
  transform: scale(1.06);
}
.hero__slide.is-active { opacity: 1; transform: scale(1.14); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,33,36,.72) 0%, rgba(31,33,36,.55) 45%, rgba(31,33,36,.82) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; padding: 0 24px; max-width: 820px; }
.hero__eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px;
  font-size: 14px; color: var(--gold-soft); margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(46px, 9vw, 104px); font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; line-height: .95;
  text-shadow: 0 6px 30px rgba(0,0,0,.4);
}
.hero__title span { color: var(--gold); font-weight: 300; }
.hero__lead {
  font-size: clamp(17px, 2.4vw, 21px); margin: 22px auto 34px; max-width: 620px;
  color: rgba(255,255,255,.92);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__dots { position: absolute; bottom: 38px; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; justify-content: center; }
.hero__dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  background: transparent; cursor: pointer; padding: 0; transition: .25s;
}
.hero__dots button.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }

.hero__scroll {
  position: absolute; bottom: 30px; right: 34px; z-index: 3;
  color: #fff; font-size: 26px; opacity: .8; animation: bob 1.8s infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(8px);} }

/* ============================================================
   SECTIONS (general)
   ============================================================ */
.section { padding: 96px 0; }
.section--intro { background: var(--white); }
.section--team { background: var(--light); }
.section--services { background: var(--white); }
.section--location { background: var(--light); }
.section--contact { background: var(--slate); color: #fff; }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__kicker {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px;
  font-size: 13px; color: var(--gold-deep); font-weight: 500;
}
.section--contact .section__kicker { color: var(--gold); }
.section__title {
  font-size: clamp(30px, 5vw, 46px); text-transform: uppercase; margin: 10px 0 0;
  color: var(--slate);
}
.section--contact .section__title { color: #fff; }
.section__rule { display: block; width: 64px; height: 3px; background: var(--gold); margin: 20px auto 0; }
.section__sub { margin: 22px auto 0; color: var(--slate-soft); font-size: 17px; }
.section--contact .section__sub { color: rgba(255,255,255,.8); }

/* ---------- Intro / Quiénes somos ---------- */
.intro__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.intro__text p { margin: 0 0 18px; font-size: 16.5px; color: var(--slate-soft); }
.intro__text strong { color: var(--slate); }
.intro__values {
  background: var(--slate); color: #fff; border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow);
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.intro__values h3 {
  font-size: 20px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--gold); margin-bottom: 18px;
}
.values { list-style: none; margin: 0; padding: 0; }
.values li {
  padding: 11px 0 11px 28px; position: relative; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 16px;
}
.values li:last-child { border-bottom: 0; }
.values li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team__card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center; padding-bottom: 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.team__card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(31,33,36,.2); }
.team__photo {
  background: linear-gradient(160deg, #f4f7fa, #dfe6ec);
  aspect-ratio: 1 / 1; position: relative;
}
.team__photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.team__photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold);
}
.team__name { font-size: 22px; text-transform: uppercase; color: var(--slate); margin-top: 22px; }
.team__role {
  margin: 6px 0 0; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 2px; font-size: 13px; color: var(--gold-deep);
}

/* ---------- Servicios (acordeón) ---------- */
.accordion { max-width: 880px; margin: 0 auto; }
.acc__item {
  border: 1px solid #e2e8ee; border-radius: var(--radius); margin-bottom: 14px;
  overflow: hidden; background: var(--white); transition: box-shadow .25s, border-color .25s;
}
.acc__item.is-open { box-shadow: var(--shadow); border-color: var(--gold-soft); }
.acc__head {
  width: 100%; display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 0; cursor: pointer; text-align: left;
  padding: 22px 24px; font-family: var(--font-head);
}
.acc__head:hover { background: #fbfcfe; }
.acc__icon { font-size: 22px; line-height: 1; }
.acc__title {
  flex: 1; font-size: 19px; text-transform: uppercase; letter-spacing: .8px; color: var(--slate);
}
.acc__item.is-open .acc__title { color: var(--gold-deep); }
.acc__chevron { width: 12px; height: 12px; border-right: 2px solid var(--slate-soft); border-bottom: 2px solid var(--slate-soft); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
.acc__item.is-open .acc__chevron { transform: rotate(-135deg); border-color: var(--gold-deep); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc__content { padding: 4px 26px 26px 64px; }
.acc__content p { margin: 0 0 14px; color: var(--slate-soft); font-size: 16px; }
.acc__content p:last-child { margin-bottom: 0; }
.acc__content strong { color: var(--slate); }

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.location__info { display: flex; flex-direction: column; gap: 26px; }
.contactlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contactlist li { display: flex; gap: 16px; align-items: flex-start; }
.contactlist__ico {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 20px;
}
.contactlist strong { color: var(--slate); font-family: var(--font-head); letter-spacing: .5px; }
.location__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 380px; border: 4px solid #fff;
}
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Contacto (tarjetas) ---------- */
.contact-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; max-width: 760px; margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 40px 28px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); color: #fff;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); border-color: var(--gold); color: #fff; }
.contact-card__ico { font-size: 34px; line-height: 1; }
.contact-card__label {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px;
  font-size: 13px; color: var(--gold-soft);
}
.contact-card__value { font-size: 18px; word-break: break-word; }
.contact-card__cta {
  margin-top: 10px; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 13px; color: var(--gold);
}
.contact-card--wa:hover { border-color: #25d366; }
.contact-card--wa:hover .contact-card__cta { color: #4de585; }

/* ---------- Footer ---------- */
.footer { background: var(--slate-dark); color: #fff; padding: 54px 0; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__logo { height: 46px; width: auto; opacity: .92; }
.footer__tag { margin: 0; color: var(--muted); font-family: var(--font-head); letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
.footer__copy { margin: 0; color: rgba(255,255,255,.55); font-size: 14px; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .25s;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .intro__values { position: static; }
  .location { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .section { padding: 70px 0; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate-dark);
    padding: 10px 16px 22px;
    transform: translateY(-130%); transition: transform .35s var(--ease);
    box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: 12px 0 0; text-align: center; }
  .nav__toggle { display: flex; }
  .cform__row { grid-template-columns: 1fr; gap: 0; }
  .hero__scroll { display: none; }
}
