/* ==========================================================================
   Pravice Abogados — Perfiles Profesionales
   Estilo: Editorial jurídico premium
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Cormorant:ital,wght@1,400;1,500&display=swap');

:root {
  --navy-900: #0a1f3d;
  --navy-800: #102a4c;
  --navy-700: #1a3a63;
  --navy-600: #25497d;
  --navy-500: #3b6098;
  --navy-100: #e8eef7;
  --navy-50: #f4f7fc;

  --gold-700: #8a6914;
  --gold-600: #a8841d;
  --gold-500: #c69a2a;
  --gold-400: #d4a740;
  --gold-300: #e0b962;
  --gold-100: #f5e8c3;
  --gold-50: #fbf6e7;

  --cream-100: #faf7f0;
  --cream-200: #f0ebde;
  --ink: #0e1119;
  --ink-soft: #2a2f3b;
  --muted: #5c6273;
  --line: #d8d3c4;
  --line-soft: #ebe6d6;

  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-italic: 'Cormorant', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1180px;
  --container-narrow: 920px;
  --radius: 2px;
  --radius-lg: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a { color: var(--gold-300); }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 22px; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 2.5px;
  line-height: 1;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 2.8px;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(10,31,61,.06);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold-600); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  background: var(--navy-50);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 1px;
}
.breadcrumb-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy-700); }
.breadcrumb-sep { margin: 0 10px; color: var(--gold-500); }

/* ==========================================================================
   Hero — perfil del abogado
   ========================================================================== */
.profile-hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background:
    radial-gradient(circle at 70% 30%, rgba(212,167,64,.12), transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(212,167,64,.08), transparent 50%);
  pointer-events: none;
}
.profile-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative;
}
.profile-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-400);
}
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.profile-name .first { display: block; font-weight: 400; }
.profile-name .last { display: block; color: var(--gold-300); font-style: italic; font-family: var(--font-italic); font-weight: 500; }
.profile-role {
  font-family: var(--font-italic);
  font-size: 22px;
  color: var(--navy-100);
  font-style: italic;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}
.profile-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(212,167,64,.3);
  border-bottom: 1px solid rgba(212,167,64,.3);
  margin-bottom: 32px;
}
.profile-meta-item {
  display: flex;
  flex-direction: column;
}
.profile-meta-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 4px;
}
.profile-meta-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  font-weight: 500;
}
.profile-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s;
  font-family: var(--font-body);
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn-gold:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: #fff;
}
.btn-navy {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.btn-navy:hover { background: var(--navy-700); color: #fff; }

.profile-photo-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-photo-frame {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 100%;
  border: 1px solid var(--gold-500);
  border-radius: 0;
}
.profile-photo-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212,167,64,.3);
}
.profile-photo {
  position: relative;
  max-height: 560px;
  width: auto;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 80px 0;
}
.section-narrow { padding: 60px 0; }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section-narrow-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-500);
}
.section-eyebrow.centered {
  justify-content: center;
}
.section-eyebrow.centered::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-500);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}
.section-title .accent {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--gold-600);
  font-weight: 500;
}

/* Perfil profesional (bio) */
.bio-section {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}
.bio-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.bio-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--gold-600);
  font-weight: 600;
}

/* ==========================================================================
   Áreas de especialidad - lista
   ========================================================================== */
.especialidades {
  background: var(--cream-100);
}
.esp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.esp-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all .3s;
}
.esp-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(10,31,61,.08);
}
.esp-card-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold-600);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.esp-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}
.esp-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.esp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 500;
}
.esp-card-link:hover { color: var(--gold-600); }
.esp-card-link::after {
  content: '→';
  transition: transform .2s;
}
.esp-card-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Enfoque de trabajo
   ========================================================================== */
.enfoque {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.enfoque::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,167,64,.08), transparent 70%);
  pointer-events: none;
}
.enfoque .section-eyebrow { color: var(--gold-400); }
.enfoque .section-eyebrow::before { background: var(--gold-400); }
.enfoque .section-title { color: #fff; }
.enfoque .section-title .accent { color: var(--gold-300); }

.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.enfoque-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(212,167,64,.4);
}
.enfoque-item-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  color: var(--gold-400);
  font-weight: 500;
  line-height: 1;
}
.enfoque-item-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
}

/* ==========================================================================
   Quote / pull
   ========================================================================== */
.pullquote {
  background: var(--cream-200);
  padding: 70px 0;
  text-align: center;
}
.pullquote-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.pullquote-text {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--navy-900);
  font-weight: 500;
  position: relative;
}
.pullquote-text::before,
.pullquote-text::after {
  content: '"';
  font-family: var(--font-display);
  color: var(--gold-500);
  font-size: 48px;
  line-height: 0;
  position: relative;
  top: 12px;
  margin: 0 8px;
}

/* ==========================================================================
   Servicios SEO (links contextuales al servicio)
   ========================================================================== */
.servicios-seo {
  background: #fff;
  border-top: 1px solid var(--line-soft);
}
.servicios-seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.servicios-seo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 20px;
}
.servicios-seo-text h2 .accent {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--gold-600);
}
.servicios-seo-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.servicios-seo-links {
  background: var(--navy-50);
  padding: 36px 32px;
  border-left: 3px solid var(--gold-500);
}
.servicios-seo-links h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-900);
  margin-bottom: 22px;
  font-weight: 600;
}
.servicios-seo-links ul {
  list-style: none;
}
.servicios-seo-links li {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}
.servicios-seo-links li:last-child { border-bottom: none; }
.servicios-seo-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy-800);
  font-weight: 500;
  font-size: 15px;
}
.servicios-seo-links a::after {
  content: '→';
  color: var(--gold-500);
  transition: transform .2s;
}
.servicios-seo-links a:hover::after { transform: translateX(5px); }
.servicios-seo-links a:hover { color: var(--gold-700); }

/* ==========================================================================
   Cobertura geo
   ========================================================================== */
.cobertura {
  background: var(--cream-100);
}
.cobertura-intro {
  max-width: 720px;
  margin-bottom: 40px;
}
.cobertura-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.cobertura-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.cobertura-city {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--navy-800);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .2s;
}
.cobertura-city:hover {
  border-color: var(--gold-500);
  background: var(--navy-50);
  color: var(--navy-900);
}
.cobertura-city.primary {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.cobertura-city.primary:hover {
  background: var(--navy-800);
  color: var(--gold-300);
}

/* ==========================================================================
   Contacto / CTA final
   ========================================================================== */
.cta-contact {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-contact::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.cta-contact-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.cta-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
}
.cta-contact h2 .accent {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--gold-300);
}
.cta-contact p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-contact-info {
  margin-top: 40px;
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid rgba(212,167,64,.3);
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.cta-contact-info span { color: var(--gold-300); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #06142a;
  color: rgba(255,255,255,.65);
  padding: 60px 0 30px;
  font-size: 14px;
}
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--gold-300); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; font-size: 13px; }
.site-footer-brand .footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.site-footer-brand .brand-logo {
  width: 48px;
  height: 48px;
  filter: brightness(1.05);
}
.site-footer-brand .brand-name { color: #fff; font-size: 22px; letter-spacing: 2.5px; }
.site-footer-brand .brand-tag { color: var(--gold-400); }
.site-footer-brand p {
  margin-top: 6px;
  line-height: 1.7;
  font-size: 13px;
}
.site-footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
}

/* ==========================================================================
   Floating buttons (WhatsApp)
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 99;
  transition: transform .2s;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Reveal animations (progressive enhancement)
   Solo aplicar opacity:0 si JS está disponible — fallback a visible
   ========================================================================== */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
}

/* Active nav state */
.site-nav a.is-active { color: var(--gold-600); }
.site-nav a.is-active::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold-500);
  margin-top: 4px;
}
@media (max-width: 980px) {
  .profile-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 24px 40px;
  }
  .profile-photo-wrap {
    order: -1;
    max-height: 420px;
    overflow: hidden;
  }
  .profile-photo {
    max-height: 420px;
  }
  .profile-photo-frame { width: 280px; }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .servicios-seo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .site-nav { display: none; }
  .topbar-contact { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 50px 0; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .profile-meta { gap: 20px; }
  .profile-meta-value { font-size: 18px; }
  .pullquote { padding: 50px 0; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 9px; }
}
