/* =========================================================
   MATEOS Y MARCO ABOGADOS — CSS Páginas Internas
   ========================================================= */

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  background: transparent;
  padding: 18px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,.75);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
}

.breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: #fff; }

.breadcrumb span {
  margin: 0 6px;
  color: rgba(255,255,255,.5);
}

.breadcrumb strong {
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   HERO DE PÁGINA INTERNA
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, #1a3a6b 0%, #1a2e4a 100%);
  padding: 36px 40px 52px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
}

/* Caja del icono en el hero */
.page-hero-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-icon svg {
  width: 46px;
  height: 46px;
}

.page-hero-text h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 14px;
}

.page-hero-text p {
  font-size: 1.175rem;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  max-width: 640px;
}

/* =========================================================
   LAYOUT PRINCIPAL (2 columnas)
   ========================================================= */
.page-body {
  background: #FAFAFB;
  padding: 52px 40px 64px;
}

.page-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */
.page-main-content {}

/* Título de sección con línea dorada */
.page-main-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1F4770;
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-main-content h2::after {
  content: '';
  display: block;
  width: 130px;
  height: 2px;
  background: #c9a84c;
  margin-top: 10px;
  margin-bottom: 18px;
}

.page-main-content p:not(.intro-text) {
  font-size: 16px;
  color: #435A72;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.page-main-content .intro-text {
  font-size: 1.125rem;
  color: #435A72;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 680px;
}

/* ---- Cita literaria / blockquote ---- */
.familia-quote {
  background: #f4f7fb;
  border-left: 4px solid #c9a84c;
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin: 0 0 32px;
  position: relative;
}

.familia-quote::before {
  content: '\201C';
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  color: #c9a84c;
  opacity: .18;
  position: absolute;
  top: -10px;
  left: 14px;
  line-height: 1;
  pointer-events: none;
}

.familia-quote p {
  font-size: 1.095rem;
  color: #2a3a50;
  line-height: 1.85;
  margin: 0 0 12px;
}

.familia-quote cite {
  display: block;
  font-size: .975rem;
  font-style: normal;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* ---- Bloque CTA inline herencias ---- */
.herencias-cta-inline {
  background: #f4f7fb;
  border-left: 4px solid #c9a84c;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 0 0 36px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.herencias-cta-inline svg { flex-shrink: 0; margin-top: 2px; }
.herencias-cta-inline p { font-size: 1.095rem; color: #3a4a5c; line-height: 1.7; margin: 0; }
.herencias-cta-inline a { color: #1F4770; text-decoration: underline; transition: color .2s; }
.herencias-cta-inline a:hover { color: #c9a84c; }

/* ---- Segunda Oportunidad: ventajas ---- */
.so-ventajas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 32px;
}
.so-ventaja {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #E5E8EE;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(31,55,86,.04);
}
.so-icon {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #c9a84c;
  margin-top: 1px;
  min-width: 18px;
  text-align: center;
}
.so-ventaja p { font-size: 1.055rem; color: #1F4770; line-height: 1.5; margin: 0; }

/* ---- Segunda Oportunidad: bloque CTA final ---- */
.so-cta-block {
  background: #1a2e4a;
  border-radius: 14px;
  padding: 32px 28px;
  margin: 36px 0 8px;
  box-shadow: 0 8px 24px rgba(26,46,74,.18);
}
.so-cta-block h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #c9a84c;
  font-weight: 700;
  margin-bottom: 12px;
}
.so-cta-block p {
  font-size: 1.075rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 20px;
}
.so-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   AUTORÍA, FUENTES Y BLOQUES DE RESPUESTA
   ========================================================= */
.answer-block {
  margin: 42px 0 30px;
  padding-top: 4px;
}

.process-list {
  counter-reset: legal-step;
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
}

.process-list li {
  counter-increment: legal-step;
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  background: #f8fafc;
  color: #4d6075;
  line-height: 1.65;
}

.process-list li::before {
  content: counter(legal-step);
  position: absolute;
  left: 17px;
  top: 16px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a2e4a;
  color: #efd77e;
  font-weight: 800;
  font-size: .78rem;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 25px 0 0;
}

.faq-list details {
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 45px 16px 18px;
  color: #1a2e4a;
  font-weight: 750;
  cursor: pointer;
  position: relative;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 12px;
  color: #a4822d;
  font-size: 1.35rem;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  padding: 0 18px 17px;
  margin: 0 !important;
}

.content-trust {
  margin-top: 42px;
  border: 1px solid #d8e0e8;
  border-top: 3px solid #c9a84c;
  border-radius: 11px;
  padding: 20px;
  background: #f8fafc;
  display: grid;
  gap: 13px;
}

.content-trust > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .88rem;
}

.content-trust strong {
  color: #1a2e4a;
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.content-trust a {
  color: #1f4770;
  text-decoration: underline;
  text-decoration-color: #c9a84c;
  text-underline-offset: 3px;
}

.content-trust span,
.content-trust time { color: #536579; }

.content-trust > p {
  margin: 3px 0 0 !important;
  padding-top: 13px;
  border-top: 1px solid #dfe5eb;
  color: #69798b !important;
  font-size: .82rem !important;
}

@media (max-width: 640px) {
  .content-trust > div { grid-template-columns: 1fr; gap: 3px; }
  .process-list li { padding-left: 52px; }
}
.so-cta-badges span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .975rem;
  font-weight: 600;
}

/* ---- Bloque de estadísticas penales ---- */
.penal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}

.penal-stat-item {
  background: #1a2e4a;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.penal-stat-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1;
}

.penal-stat-label {
  font-size: .925rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .penal-stats { grid-template-columns: 1fr; }
}

/* ---- Grid de servicios ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 44px;
}

.service-item {
  background: #fff;
  border: 1px solid #E5E8EE;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(31,55,86,.06);
}

.service-item .si-icon {
  flex-shrink: 0;
  color: #c9a84c;
  margin-top: 1px;
}

.service-item p {
  font-size: 1.055rem;
  color: #1F4770;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* ---- Casos típicos ---- */
.casos-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 44px;
}

.caso-item {
  background: #F8F9FB;
  border-left: 3px solid #1F4770;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
}

.caso-item p {
  font-style: italic;
  font-size: 1.095rem;
  color: #233F62;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.page-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Caja ¿Por qué elegirnos? */
.sidebar-why {
  background: #fff;
  border-radius: 12px;
  border-top: 3px solid #c9a84c;
  box-shadow: 0 6px 18px rgba(31,55,86,.08);
  padding: 26px 24px;
}

.sidebar-why h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: #1F4770;
  font-weight: 700;
  margin-bottom: 18px;
}

.sidebar-why ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-why ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.025rem;
  color: #435A72;
  line-height: 1.5;
}

.sidebar-why ul li::before {
  content: '●';
  color: #c9a84c;
  font-size: .55rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Caja CTA azul */
.sidebar-cta-box {
  background: #1a2e4a;
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: 0 10px 24px rgba(29,53,79,.22);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.sidebar-cta-box h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.sidebar-cta-box p {
  font-size: .995rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cta-btn-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: #1F4770;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 1.045rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background .2s;
}
.cta-btn-phone:hover { background: #f0f4f8; }

.cta-btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #c9a84c;
  color: #1a2e4a;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 1.045rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.cta-btn-email:hover { background: #b8933e; }

/* =========================================================
   SECCIÓN "OTRAS ÁREAS DE PRÁCTICA"
   ========================================================= */
.otras-areas {
  background: #fff;
  padding: 56px 40px;
  text-align: center;
}

.otras-areas h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  color: #1F4770;
  font-weight: 700;
  margin-bottom: 36px;
}

.otras-areas-grid {
  max-width: 860px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.otra-area-card {
  background: #F4F6F9;
  border-radius: 12px;
  padding: 30px 20px 24px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}

.otra-area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(31,55,86,.1);
}

.otra-area-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F4770;
}

/* Botón volver */
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #7B92AB;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 1.045rem;
  font-weight: 500;
  color: #1F4770;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  background: transparent;
}
.btn-volver:hover {
  background: #f0f4f8;
  border-color: #1F4770;
}

.content-subheading {
  margin: 2rem 0 .6rem;
  color: var(--azul);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.services-grid-spaced {
  margin-top: 16px;
  margin-bottom: 36px;
}

.casos-list-spaced {
  margin-bottom: 2rem;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 900px) {
  .page-body-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-sidebar { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .otras-areas-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-text h1 { font-size: 34px; }
  .page-hero { padding: 28px 24px 40px; }
  .page-body { padding: 40px 24px 52px; }
  .otras-areas { padding: 44px 24px; }
}

/* =========================================================
   RESPONSIVE — MÓVIL
   ========================================================= */
@media (max-width: 640px) {
  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .page-hero-icon { width: 72px; height: 72px; }
  .page-hero-icon svg { width: 32px; height: 32px; }
  .page-hero-text h1 { font-size: 28px; }
  .page-hero-text p { font-size: 16px; }
  .page-main-content h2 { font-size: 26px; }
  .otras-areas-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding-left: 20px; }
  .page-body { padding: 32px 20px 48px; }
}
