/* =========================================================
   Carola Maza Silva — Abogada Laboral
   Estilo: jurídico-moderno, sobrio. Navy + dorado + neutros.
   ========================================================= */

:root {
  --navy-900: #0F1B33;
  --navy-800: #142340;
  --navy-700: #1B2D52;
  --navy-600: #2A3F6B;
  --gold:     #C8A35A;
  --gold-soft:#E2C896;
  --ink:      #1A1F2E;
  --ink-soft: #4A5469;
  --line:     #E5E0D6;
  --paper:    #FBF8F3;
  --paper-2:  #F4EFE6;
  --white:    #FFFFFF;
  --shadow-1: 0 4px 14px rgba(15, 27, 51, 0.08);
  --shadow-2: 0 12px 32px rgba(15, 27, 51, 0.14);
  --radius:   10px;
  --radius-lg:18px;
  --max-w:    1140px;
  --sans:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif:    'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
}

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
button, input, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-mark {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy-900);
  color: var(--gold);
  border-radius: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy-900);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--navy-700);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--navy-900);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--navy-900) !important;
}

@media (max-width: 720px) {
  .brand-name { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--navy-900) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--paper) !important;
}
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(200, 163, 90, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: -200px; top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,27,51,0.04), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.05;
  color: var(--navy-900);
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--navy-700);
  margin: 0 0 22px;
  line-height: 1.35;
}
.hero-lead {
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 560px;
  font-size: 17px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}
.portrait-frame {
  position: relative;
  width: 360px;
  height: 360px;
  max-width: 100%;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.45;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-2);
}
.portrait-badge {
  position: absolute;
  bottom: 8px;
  right: -10px;
  background: var(--navy-900);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  letter-spacing: 0.5px;
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
  .hero-portrait { order: -1; }
  .portrait-frame { width: 240px; height: 240px; }
  .portrait-badge { font-size: 14px; padding: 10px 14px; right: 0; }
}

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
  position: relative;
}
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 48px;
  max-width: 760px;
  letter-spacing: -0.3px;
}
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}
.section-eyebrow.light { color: var(--gold-soft); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 32px; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  max-width: 62ch;
}
.about-text p:last-child { margin-bottom: 0; }
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stats li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-1);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  color: var(--navy-900);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-plus {
  color: var(--gold);
  font-size: 0.7em;
  margin-left: 2px;
}
.stat-label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ CARDS (Áreas) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold-soft);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy-900);
  margin: 0 0 12px;
  line-height: 1.25;
}
.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ============ TIMELINE ============ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
  max-width: 820px;
}
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 18px 0 28px 28px;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 28px;
  width: 12px; height: 12px;
  background: var(--gold);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
}
.t-year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy-900);
  letter-spacing: 0.5px;
  padding-top: 4px;
}
.t-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy-900);
  margin: 0 0 6px;
}
.t-body p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15.5px;
}

@media (max-width: 720px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 22px;
  }
  .timeline li::before { top: 22px; }
}

/* ============ EDUCATION ============ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.edu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.edu-card:hover {
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-1);
}
.edu-card.edu-featured {
  background: var(--navy-900);
  color: var(--paper);
  border-color: var(--navy-900);
}
.edu-card.edu-featured h3,
.edu-card.edu-featured .edu-institution { color: var(--paper); }
.edu-card.edu-featured .edu-degree { color: var(--gold-soft); }
.edu-degree {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 8px;
}
.edu-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy-900);
  margin: 0 0 8px;
  line-height: 1.25;
}
.edu-institution {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

/* ============ CONTACTO (dark) ============ */
.section-dark {
  background:
    radial-gradient(ellipse at top right, rgba(200, 163, 90, 0.18), transparent 50%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--paper);
}
.section-dark .section-title.light { color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-lead {
  color: rgba(251, 248, 243, 0.78);
  font-size: 17px;
  margin: 0 0 32px;
  max-width: 480px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ci-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-soft);
}
.contact-list a, .contact-list span:not(.ci-label) {
  color: var(--paper);
  font-size: 17px;
  font-weight: 500;
}
.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: rgba(251, 248, 243, 0.06);
  border: 1px solid rgba(251, 248, 243, 0.14);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: 0.3px;
}
.field .optional {
  font-weight: 400;
  color: rgba(251, 248, 243, 0.5);
  font-size: 12px;
  margin-left: 4px;
}
.field input, .field textarea {
  background: rgba(251, 248, 243, 0.08);
  border: 1px solid rgba(251, 248, 243, 0.18);
  color: var(--paper);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(251, 248, 243, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.contact-form .btn-primary:hover {
  background: var(--paper);
  color: var(--navy-900) !important;
}
.form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(251, 248, 243, 0.6);
  text-align: center;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.site-foot {
  background: var(--navy-900);
  color: rgba(251, 248, 243, 0.7);
  padding: 28px 0;
  border-top: 1px solid rgba(251, 248, 243, 0.06);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
}
.foot-note { margin: 0; opacity: 0.7; }
.foot-inner p { margin: 0; }

@media (max-width: 540px) {
  .foot-inner { flex-direction: column; text-align: center; }
}

/* ===== NOTICIAS ===== */
.section-lead {
  font-size: 1.0625rem;
  color: var(--ink-soft, #4a5263);
  max-width: 60ch;
  margin: 0 0 2.5rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.news-card {
  background: #fff;
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 27, 51, 0.10);
  border-color: rgba(200, 163, 90, 0.4);
}
.news-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f1edE5;
  overflow: hidden;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-cat {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8A35A;
  font-weight: 600;
  margin: 0;
}
.news-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0;
  color: #0F1B33;
}
.news-card h3 a {
  color: inherit;
  text-decoration: none;
}
.news-card h3 a:hover { text-decoration: underline; }
.news-date {
  font-size: 0.8rem;
  color: #6c7382;
  margin: 0;
}
.news-excerpt {
  font-size: 0.95rem;
  color: #4a5263;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.55;
}
.news-more {
  align-self: flex-start;
  font-size: 0.9rem;
  color: #0F1B33;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}
.news-more:hover { color: #C8A35A; }

/* ===== ARTÍCULO INDIVIDUAL ===== */
.article-page {
  padding: 4rem 0 5rem;
  background: #FBF8F3;
}
.article-narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-back {
  margin-bottom: 1.5rem;
}
.article-back a {
  color: #6c7382;
  text-decoration: none;
  font-size: 0.9rem;
}
.article-back a:hover { color: #0F1B33; }
.article-cat {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8A35A;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  color: #0F1B33;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.article-date {
  color: #6c7382;
  font-size: 0.95rem;
  margin: 0 0 2rem;
}
.article-figure {
  margin: 0 0 2rem;
  border-radius: 8px;
  overflow: hidden;
}
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2a3142;
}
.article-body p {
  margin: 0 0 1.25rem;
}
.article-body h2,
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #0F1B33;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}
.article-body h2 { font-size: 1.7rem; }
.article-body h3 { font-size: 1.35rem; }
.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  border-left: 3px solid #C8A35A;
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4a5263;
}
.article-body a {
  color: #0F1B33;
  text-decoration: underline;
  text-decoration-color: #C8A35A;
  text-underline-offset: 3px;
}
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 12px;
  text-align: center;
}
.article-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #0F1B33;
  margin: 0 0 1rem;
}

/* ===== FOOTER LINKS ===== */
.foot-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.foot-link:hover { border-bottom-color: currentColor; }
