/* ══════════════════════════════════════════════
   OJEDA – MOLINARI · ABOGADOS
   Custom styles sobre Bootstrap 5
══════════════════════════════════════════════ */

/* ── Variables de marca ── */
:root {
  --azul-noche:    #0d1f3c;
  --azul-royal:    #1e3a8a;
  --verde-bosque:  #166534;
  --azul-acento:   #4a8fd4;
  --verde-acento:  #3ab88a;
  --blanco-calido: #f7f6f2;
  --gris-texto:    #4a5568;
  --gris-claro:    #e4e4e0;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  background: var(--blanco-calido);
  color: var(--azul-noche);
  font-family: 'EB Garamond', Georgia, serif;
  overflow-x: hidden;
}

/* ══════════════════════════════
   BOOTSTRAP OVERRIDES
══════════════════════════════ */
.btn {
  border-radius: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 13px 32px;
  transition: background .25s, border-color .25s, color .25s;
}
.btn-primary {
  background: var(--azul-royal);
  border-color: var(--azul-royal);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--azul-acento);
  border-color: var(--azul-acento);
  color: #fff;
}
.btn-outline-light {
  color: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.22);
}
.btn-outline-light:hover {
  background: transparent;
  color: var(--verde-acento);
  border-color: var(--verde-acento);
}

/* Inputs Bootstrap */
.form-control, .form-select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  color: #fff;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color .25s;
}
.form-control::placeholder { color: rgba(255,255,255,.22); }
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.06);
  border-color: var(--azul-acento);
  box-shadow: none;
  color: #fff;
}
.form-select { color: rgba(255,255,255,.5); }
.form-select option { background: var(--azul-noche); color: #fff; }
.form-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 6px;
}

/* Accordion (FAQ) */
.accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.accordion-button {
  background: transparent;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  padding: 20px 0;
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.accordion-button::after {
  filter: invert(1);
  opacity: .6;
}
.accordion-button:focus { box-shadow: none; }
.accordion-body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
  padding: 0 0 20px;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.site-nav {
  background: var(--azul-noche) !important;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 16px 0 0;
  flex-direction: column;
  align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-isotipo { width: 44px; height: 38px; flex-shrink: 0; }
.nav-sep { width: 1px; height: 28px; background: rgba(255,255,255,.18); flex-shrink: 0; }
.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400; letter-spacing: .08em;
  color: #fff; line-height: 1.2;
}
.nav-wordmark small {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 7px; letter-spacing: .45em; text-transform: uppercase;
  color: rgba(255,255,255,.32); margin-top: 2px;
}
/* La fila inferior del navbar (links) — siempre visible en desktop */
.nav-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
/* En desktop (lg+) Bootstrap muestra el collapse: forzamos row */
@media (min-width: 992px) {
  .navbar-collapse { display: block !important; }
  .nav-bottom .navbar-nav { flex-direction: row; }
}
.nav-bottom .navbar-nav { flex-wrap: nowrap; }
.nav-bottom .nav-link {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.7) !important;
  padding: 8px 20px !important;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: color .2s;
  line-height: 1;
  white-space: nowrap;
}
.nav-bottom .navbar-nav li:first-child .nav-link { border-left: 1px solid rgba(255,255,255,.1); }
.nav-bottom .nav-link:hover,
.nav-bottom .nav-link.active { color: #fff !important; }
.nav-cta {
  font-family: Helvetica, Arial, sans-serif !important;
  font-size: 9px !important; letter-spacing: .22em !important;
  text-transform: uppercase !important;
  background: var(--azul-royal) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 0 !important; border: none !important;
  margin-left: 20px;
  white-space: nowrap;
  transition: background .2s !important;
  text-decoration: none;
}
.nav-cta:hover { background: var(--azul-acento) !important; }

/* Hamburger (mobile) */
.navbar-toggler {
  border-color: rgba(255,255,255,.25);
  margin-bottom: 8px;
}
.navbar-toggler-icon { filter: invert(1); }

/* Mobile: menú desplegado */
@media (max-width: 991px) {
  .navbar-collapse.show .nav-bottom,
  .navbar-collapse.collapsing .nav-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .navbar-collapse.show .navbar-nav,
  .navbar-collapse.collapsing .navbar-nav {
    flex-direction: column !important;
    width: 100%;
  }
  .navbar-collapse.show .nav-link,
  .navbar-collapse.collapsing .nav-link {
    border: none !important;
    padding: 10px 4px !important;
  }
  .navbar-collapse.show .nav-cta,
  .navbar-collapse.collapsing .nav-cta { margin: 12px 0 0; }
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: calc(100vh - 90px);
  background: var(--azul-noche);
  display: flex; align-items: center;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-diamonds {
  position: absolute; right: -40px; top: 50%;
  transform: translateY(-50%);
  width: min(520px, 50vw); height: auto;
  pointer-events: none; opacity: .7;
}
.hero-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 9px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--verde-acento);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.hero-label::before { content: ''; width: 32px; height: 1px; background: var(--verde-acento); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 300; line-height: 1.1; color: #fff;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,.45); }
.bicolor-line {
  width: 240px; height: 1px; margin-bottom: 28px;
  background: linear-gradient(to right, var(--azul-acento), var(--verde-acento));
}
.hero-desc {
  font-size: 18px; line-height: 1.75;
  color: rgba(255,255,255,.55); max-width: 500px;
}

/* ══════════════════════════════
   SECCIONES
══════════════════════════════ */
.seccion { padding: 96px 0; }
.sec-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--azul-acento);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.sec-label::before { content: ''; width: 20px; height: 1px; background: var(--azul-acento); }
.sec-label.inv { color: var(--verde-acento); }
.sec-label.inv::before { background: var(--verde-acento); }
.sec-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 300; line-height: 1.15;
  color: var(--azul-noche); margin-bottom: 18px;
}
.sec-titulo.inv { color: #fff; }
.sec-linea {
  width: 180px; height: 1px; margin-bottom: 44px;
  background: linear-gradient(to right, var(--azul-acento), var(--verde-acento));
}
.sec-intro {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; line-height: 1.8; color: var(--gris-texto);
  max-width: 680px; margin-bottom: 44px;
}
.sec-intro.inv { color: rgba(255,255,255,.52); }

/* ══════════════════════════════
   ÁREA / SERVICIO CARDS
══════════════════════════════ */
.card-area {
  background: #fff; border: none; border-radius: 0;
  padding: 36px 28px; height: 100%;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card-area::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--azul-royal), var(--verde-bosque));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card-area:hover::before { transform: scaleX(1); }
.card-area:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(13,31,60,.09);
}
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  color: var(--gris-claro); line-height: 1; margin-bottom: 12px;
}
.card-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; color: var(--azul-noche); margin-bottom: 8px;
}
.card-desc {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px; line-height: 1.7; color: var(--gris-texto);
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--azul-acento); text-decoration: none;
  transition: color .2s;
}
.card-link::after { content: '→'; transition: transform .2s; }
.card-link:hover { color: var(--verde-acento); }
.card-link:hover::after { transform: translateX(3px); }

/* Gap entre cards (simula grid gap: 2px) */
.cards-gap { gap: 2px; --bs-gutter-x: 0; --bs-gutter-y: 0; }
.cards-gap > * { padding: 0; }

/* ══════════════════════════════
   SECCIÓN OSCURA (nosotros / enfoque)
══════════════════════════════ */
.sec-dark { background: var(--azul-noche); }
.nos-texto { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.52); margin-bottom: 14px; }

.valor-item { border-left: 1px solid rgba(74,143,212,.3); padding-left: 14px; }
.valor-nombre {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8.5px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--azul-acento); margin-bottom: 4px;
}
.valor-desc { font-size: 14px; color: rgba(255,255,255,.38); line-height: 1.6; }

/* ══════════════════════════════
   EQUIPO
══════════════════════════════ */
.abogado-foto {
  background: var(--azul-noche); aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
}
.abogado-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px; color: var(--azul-noche); margin: 20px 0 5px;
}
.abogado-esp {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8.5px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--azul-acento);
}
.abogado-bio {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; line-height: 1.7; color: var(--gris-texto); margin-top: 10px;
}

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
.dato-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.dato-icono {
  width: 1px; height: 36px; flex-shrink: 0; margin-top: 4px;
  background: linear-gradient(to bottom, var(--azul-acento), var(--verde-acento));
}
.dato-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: 3px;
}
.dato-valor { font-size: 15px; color: rgba(255,255,255,.72); }
.dato-valor a { color: inherit; text-decoration: none; }
.dato-valor a:hover { color: var(--azul-acento); }

/* Feedback form */
#form-feedback {
  display: none;
  margin-top: 12px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px; padding: 12px 16px; border-radius: 0;
}

/* ══════════════════════════════
   CREDENTIAL STRIP (Laboral)
══════════════════════════════ */
.cred-strip {
  background: var(--verde-acento); padding: 13px 0;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.cred-strip span {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--azul-noche);
}
.cred-sep { opacity: .3; }

/* Urgency strip (Penal) */
.urgency-strip {
  background: var(--azul-royal); padding: 13px 0;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.urgency-strip span {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.urgency-strip .urg-hi { color: #fff; font-weight: 600; }

/* ══════════════════════════════
   PERFIL
══════════════════════════════ */
.perfil-foto {
  background: var(--azul-noche); aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.perfil-foto-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,31,60,.88));
  padding: 1.5rem;
}
.perfil-foto-tag span {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--verde-acento);
}
.cred-list { list-style: none; padding: 0; margin-top: 20px; }
.cred-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(13,31,60,.07);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px; color: var(--gris-texto); line-height: 1.5;
}
.cred-list li::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--verde-acento); flex-shrink: 0; margin-top: 3px;
}

/* ══════════════════════════════
   GARANTÍAS (Penal)
══════════════════════════════ */
.gar-card {
  text-align: center; padding: 44px 28px;
  border: 1px solid rgba(255,255,255,.06);
}
.gar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; font-style: italic;
  color: var(--azul-acento); line-height: 1; margin-bottom: 12px;
}
.gar-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: #fff; margin-bottom: 10px;
}
.gar-desc {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.4);
}

/* ══════════════════════════════
   CTA SECTION
══════════════════════════════ */
.sec-cta {
  background: var(--azul-noche); text-align: center;
  padding: 96px 0;
  border-top: 1px solid rgba(74,143,212,.2);
}
.sec-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 52px); font-weight: 300;
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.sec-cta p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; color: rgba(255,255,255,.48);
  max-width: 460px; margin: 0 auto 36px; line-height: 1.7;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: #060d1a; padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-copy {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 9px; letter-spacing: .14em; color: rgba(255,255,255,.22);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.22); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.6); }

/* ══════════════════════════════
   LOADER (transición de página)
══════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--azul-noche);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--azul-acento); margin: 0 4px;
  animation: blink .9s infinite alternate;
}
.loader-dot:nth-child(2) { animation-delay: .3s; background: var(--verde-acento); }
.loader-dot:nth-child(3) { animation-delay: .6s; }
@keyframes blink { from { opacity: .2; } to { opacity: 1; } }

/* ══════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════ */
@media (max-width: 768px) {
  .seccion, .sec-cta { padding: 64px 0; }
  .hero { padding: 60px 0; }
  .hero-diamonds { display: none; }
  .cred-strip, .urgency-strip { gap: 10px; }
}
