/* Páginas internas — page-header institucional */

.page-hero,
.page-header {
  position: relative;
  overflow: hidden;
  text-align: left;
  border-bottom: 1px solid var(--border-gold, rgba(179, 148, 74, 0.32));
  padding: calc(var(--nav-h, 72px) + 3.25rem) 0 3.75rem;
  background-color: var(--navy);
  background-image: none;
  min-height: clamp(240px, 32vh, 340px);
  display: flex;
  align-items: flex-end;
}
.page-header-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(11, 28, 51, 0.55) 0%,
      rgba(11, 28, 51, 0.68) 45%,
      rgba(11, 28, 51, 0.78) 100%
    );
  pointer-events: none;
}
.page-hero::before,
.page-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
}
.page-hero .container,
.page-header-content,
.page-header .container {
  position: relative;
  z-index: 2;
  max-width: var(--container, 1120px);
  width: 100%;
}
.page-header-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin: 0.85rem 0 0;
  background: var(--gold);
}
.page-header .section-label,
.page-hero .section-label {
  color: var(--gold-light);
}
.page-header .page-title,
.page-hero .page-title {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 22ch;
}
.page-header .page-title .gradient-text,
.page-hero .page-title .gradient-text {
  background: none;
  -webkit-text-fill-color: var(--gold-light);
  color: var(--gold-light);
}
.page-header .page-subtitle,
.page-hero .page-subtitle {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.85rem;
}
.page-header .article-meta,
.page-hero .article-meta {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.85rem;
  font-size: 0.85rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--gold-light);
}
.breadcrumb [aria-current="page"] {
  color: var(--gold-light);
}

.page-hero--404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
}
.page-hero--404 .page-title { max-width: none; }
.page-hero--404 .page-subtitle { max-width: 32rem; }
.page-hero--404 .cta-actions { margin-top: 1.5rem; }
.footer-bottom--solo {
  border: 0;
  padding-top: 0;
}
.footer-bottom--solo p + p { margin-top: 0.35rem; }

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  line-height: var(--lh-tight, 1.15);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
  margin-bottom: 0.85rem;
}
.legal-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--gold-dark, #8a6f2e); }

.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1, clamp(2.35rem, 4.8vw, 3.75rem));
  font-weight: 600;
  color: var(--text-on-navy);
  margin-bottom: 0.9rem;
  line-height: var(--lh-tight, 1.15);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.page-subtitle {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-on-navy-muted, #cfc6b6);
  max-width: 38rem;
  margin: 0;
  line-height: var(--lh-relaxed, 1.85);
}
.page-hero .btn-primary,
.page-hero .cta-actions {
  margin-top: 1.35rem;
}

.service-main {
  padding: var(--section-y, 4.5rem) 0;
  background: var(--cream);
}
.service-body {
  max-width: var(--prose, 42rem);
  min-width: 0;
}
.service-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2, clamp(1.75rem, 3.2vw, 2.35rem));
  font-weight: 600;
  color: var(--navy);
  margin: 2.15rem 0 0.85rem;
  line-height: var(--lh-tight, 1.15);
}
.service-body h2:first-child { margin-top: 0; }
.service-body p {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
  margin-bottom: 1rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.35rem 0;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--ivory);
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--gold);
  min-width: 0;
}
.step:hover {
  border-color: var(--gold);
  box-shadow: none;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: var(--lh-snug, 1.35);
}
.step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--lh-body, 1.7);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.35rem 0;
}
.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-item:hover,
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  padding: 1.1rem 2.25rem 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  line-height: var(--lh-snug, 1.35);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  padding: 0 0 1.15rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
}

.cta-box {
  background: var(--navy);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: 2.5rem;
  border: 1px solid var(--border-gold, rgba(179, 148, 74, 0.35));
}
.cta-box h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text-on-navy);
  margin-bottom: 0.5rem;
  line-height: var(--lh-snug, 1.35);
}
.cta-box p {
  color: var(--text-on-navy-muted, #cfc6b6);
  font-size: 1rem;
  line-height: var(--lh-body, 1.7);
  margin-bottom: 0;
}

.blog-main {
  padding: var(--section-y, 4.5rem) 0;
  background: var(--cream);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: block;
  min-width: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.blog-card-img {
  height: 140px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(179, 148, 74, 0.22);
  color: var(--gold-light);
}
.blog-card-img i { color: rgba(212, 188, 125, 0.65) !important; }
.blog-card-body { padding: 1.25rem 1.2rem 1.4rem; }
.blog-tag {
  font-size: var(--fs-xs, 0.72rem);
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
  display: block;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
  line-height: var(--lh-snug, 1.35);
  overflow-wrap: break-word;
}
.blog-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: var(--lh-body, 1.7);
}
.blog-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.article-hero {
  background: var(--navy);
  padding: calc(var(--ad-offset, 98px) + var(--nav-h, 72px) + 2rem) 0 3.5rem;
  border-bottom: 1px solid rgba(179, 148, 74, 0.28);
}
.article-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-navy-soft, #a89f90);
  margin-bottom: 0.85rem;
}
.article-body {
  max-width: var(--prose, 42rem);
  margin: 0 auto;
  padding: 3rem clamp(1.15rem, 3vw, 1.5rem) 4.25rem;
  background: var(--cream);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.7rem;
  line-height: var(--lh-tight, 1.15);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.35rem 0 0.45rem;
}
.article-body p {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
  margin-bottom: 1rem;
}
.article-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  list-style: disc;
}
.article-body li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: var(--lh-body, 1.7);
  margin-bottom: 0.35rem;
}
.article-body strong { color: var(--navy); }

.testimonials-page {
  padding: var(--section-y, 4.5rem) 0;
  background: var(--cream);
}
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.contact-page {
  padding: var(--section-y, 4.5rem) 0;
  background: var(--cream);
}
.map-placeholder {
  width: 100%;
  min-height: 260px;
  background: var(--ivory);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding: 2rem 1rem;
  text-align: center;
}

.about-section {
  padding: var(--section-y, 4.5rem) 0;
  background: var(--cream);
}
/* Sin franja crema entre CTA navy y footer navy */
.about-section:has(> .firm-cta-bar),
.service-main:has(> .firm-cta-bar),
.attorney-profile-page:has(> .firm-cta-bar) {
  padding-bottom: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.9rem;
  line-height: var(--lh-tight, 1.15);
}
.about-text h2 + h2,
.about-text .mt-section { margin-top: 2rem; }
.about-text p {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
  margin-bottom: 1rem;
}
.license-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.license-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.license-item::before {
  content: '—';
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
}

/* Hubs de servicios (grids en páginas hub) */
.service-main .services-grid {
  margin-top: 2rem;
}

/* Áreas de práctica — hub listado */
.practice-hub-page {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}
.practice-hub-intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.practice-hub-intro p {
  color: var(--text-secondary);
  font-size: var(--fs-md, 1.0625rem);
  line-height: var(--lh-relaxed, 1.85);
  margin-top: 0.85rem;
}
.practice-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 3rem;
}
.practice-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory, #fff);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--gold);
  padding: 1.75rem 1.5rem 1.5rem;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.practice-hub-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.practice-hub-icon {
  font-size: 1.35rem;
  color: var(--gold-dark, var(--gold));
  margin-bottom: 0.9rem;
}
.practice-hub-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}
.practice-hub-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.15rem;
  flex: 1;
}
.practice-hub-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.practice-hub-link::after {
  content: " →";
  color: var(--gold);
}
.practice-hub-link:hover {
  color: var(--gold-dark, var(--gold));
}
.practice-hub-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.practice-detail-page .practice-topic-list {
  margin: 1rem 0 2rem;
  padding-left: 1.15rem;
}
.practice-detail-page .practice-topic-list li {
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
  line-height: 1.65;
}
.practice-detail-body {
  max-width: 46rem;
}
.practice-detail-body > p {
  font-size: var(--fs-md, 1.0625rem);
  line-height: var(--lh-relaxed, 1.85);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.practice-detail-body > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--navy);
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}
.practice-sections {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 0.5rem;
}
.practice-section {
  padding: 1.25rem 1.35rem;
  background: var(--ivory, #fff);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--gold);
}
.practice-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.55rem;
  line-height: 1.3;
}
.practice-section p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.practice-related {
  margin: 2.5rem 0 1rem;
}
.practice-related h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.services-grid--hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.cta-box--spaced {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .practice-hub-grid {
    grid-template-columns: 1fr;
  }
}

/* Abogados — listado y perfiles */
.page-hero--attorneys .page-title,
.page-hero--attorney .page-title {
  max-width: none;
}
.attorney-profile-page {
  padding-bottom: 0;
}
.attorney-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 3rem;
}
.attorney-profile-photo {
  margin: 0;
}
.attorney-profile-photo-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.attorney-profile-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.attorney-profile-sidebar {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.attorney-profile-role {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark, #8a6f2e);
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.attorney-profile-contact {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.attorney-profile-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.attorney-profile-contact i {
  color: var(--gold);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.attorney-profile-contact a {
  color: var(--navy);
  text-decoration: none;
}
.attorney-profile-contact a:hover {
  color: var(--gold-dark, #8a6f2e);
  text-decoration: underline;
}
.attorney-profile-areas-block h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.attorney-profile-areas {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.attorney-profile-areas a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.attorney-profile-areas a::before {
  content: '›';
  color: var(--gold);
  font-weight: 600;
}
.attorney-profile-areas a:hover {
  color: var(--navy);
  padding-left: 0.25rem;
}
.attorney-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.attorney-profile-body {
  max-width: var(--prose, 42rem);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}
.attorney-profile-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2, clamp(1.75rem, 3.2vw, 2.35rem));
  font-weight: 600;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
}
.attorney-profile-body p {
  font-size: var(--fs-md, 1.0625rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed, 1.85);
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --ad-offset: 0px;
    --nav-h: 64px;
  }
  .attorney-profile-grid { grid-template-columns: 1fr; }
  .attorney-profile-photo-slot { max-width: 320px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .page-hero,
  .page-header {
    padding: calc(var(--nav-h) + 2.25rem) 0 2.5rem;
    min-height: 200px;
  }
  .page-title { max-width: none; font-size: clamp(1.65rem, 7vw, 2.15rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .article-body { padding-top: 2.5rem; }
}

@media (max-width: 480px) {
  .step { flex-direction: row; }
  .faq-item summary { font-size: 1.02rem; padding-right: 1.85rem; }
  .page-hero .btn-primary,
  .page-hero .cta-actions .btn-primary,
  .page-hero .cta-actions .btn-outline,
  .page-hero .cta-actions .btn-outline--light {
    width: 100%;
  }
  .page-hero .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
}

/* --- Fase A: breadcrumbs, mapa, áreas, FAQ, CTA móvil --- */
.breadcrumbs {
  background: var(--paper);
  border-bottom: 1px solid var(--border-light);
  padding: 0.65rem 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--gold);
}
.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

.map-section {
  padding: 3rem 0 4rem;
  background: var(--paper);
}
.map-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.map-section-copy h2 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 1rem;
}
.map-address, .map-hours {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.map-embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  min-height: 320px;
}
.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.practice-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.practice-toc {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 1rem);
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1rem;
}
.practice-toc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.practice-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.practice-toc a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
}
.practice-toc a:hover {
  color: var(--navy);
  border-left-color: var(--gold);
}
.practice-related--blog { margin-top: 2rem; }
.practice-blog-links {
  display: grid;
  gap: 0.65rem;
}
.practice-blog-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.practice-blog-link:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.practice-faq {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.faq-accordion .faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--ivory);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-question i { transition: transform 0.2s; color: var(--gold); }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.1rem 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-answer[hidden] { display: none; }

.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(7, 19, 34, 0.96);
  border-top: 1px solid rgba(179, 148, 74, 0.35);
  gap: 0.5rem;
}
.mobile-sticky-cta-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-sticky-cta-btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.mobile-sticky-cta-btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.how-we-work {
  padding: 4rem 0;
  background: var(--paper);
}
.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.how-step {
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
}
.how-step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}
.how-step-icon {
  color: var(--gold-dark);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}
.how-step h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.how-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.home-blog {
  padding: 4rem 0;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.home-blog-card {
  display: block;
  background: var(--ivory);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.home-blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.home-blog-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  font-weight: 700;
}
.home-blog-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0.5rem 0;
  font-size: 1.1rem;
}
.home-blog-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

.home-mini-faq {
  padding: 4rem 0;
  background: var(--navy-deep);
  color: var(--text-on-navy);
}
.home-mini-faq .section-title { color: var(--text-on-navy); }
.home-mini-faq-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 48rem;
}
.home-mini-faq .faq-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.home-mini-faq .faq-question { color: var(--text-on-navy); }
.home-mini-faq .faq-answer { color: var(--text-on-navy-muted); }
.home-mini-faq-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gold-light);
  font-weight: 600;
}

.thanks-page {
  padding: 4rem 0 5rem;
  text-align: center;
}
.thanks-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(47, 107, 79, 0.12);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}
.footer-hours {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

@media (max-width: 1024px) {
  .practice-detail-layout { grid-template-columns: 1fr; }
  .practice-toc { position: static; }
  .how-we-work-grid { grid-template-columns: 1fr 1fr; }
  .home-blog-grid { grid-template-columns: 1fr 1fr; }
  .map-section-grid { grid-template-columns: 1fr; }
}

/* Tarjetas de listado siempre visibles */
.practice-hub-card,
.blog-card,
.practice-section {
  opacity: 1;
  transform: none;
}

.map-place-name {
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.map-place-name i {
  color: var(--gold);
  margin-right: 0.35rem;
}

@media (max-width: 768px) {
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .whatsapp-float { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .how-we-work-grid,
  .home-blog-grid { grid-template-columns: 1fr; }
}
