.ps-seo-hero {
  padding: 56px 0 26px;
  background:
    radial-gradient(circle at top left, rgba(186, 154, 112, 0.18), transparent 32%),
    linear-gradient(180deg, #faf5ed 0%, #fffdf9 100%);
}

.ps-seo-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.ps-page-shell {
  background:
    radial-gradient(circle at top left, rgba(186, 154, 112, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfaf6 0%, #ffffff 28%);
  color: #222529;
  font-family: var(--porto-body-font-family, "Lato", sans-serif);
}

.ps-page-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.ps-page-topbar {
  background: #1f1f1f;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.ps-page-topbar-inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ps-page-topbar a {
  color: rgba(255, 255, 255, 0.92);
}

.ps-page-topbar a:hover {
  color: #fff;
  text-decoration: none;
}

.ps-page-header-main {
  background: rgba(200, 168, 119, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 31, 26, 0.08);
  box-shadow: 0 8px 22px rgba(35, 31, 26, 0.08);
}

.ps-page-header .ps-seo-shell,
.ps-page-footer .ps-seo-shell {
  padding-left: 20px;
  padding-right: 20px;
}

.ps-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #231f1a;
}

.ps-brand:hover {
  color: #231f1a;
  text-decoration: none;
}

.ps-brand img {
  width: 280px;
  height: auto;
}

.ps-brand span {
  display: none;
}

.ps-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ps-page-nav a {
  position: relative;
  color: #231f1a;
  font-weight: 400;
  font-size: 1.08rem;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ps-page-nav a:hover,
.ps-page-nav a[aria-current="page"] {
  text-decoration: none;
  color: #5a4326;
  border-bottom-color: #231f1a;
}

.ps-page-main {
  padding: 12px 0 70px;
}

.ps-page-footer {
  background: #232323;
  padding: 0;
  color: #fff;
}

.ps-page-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.ps-page-footer h4 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 14px;
}

.ps-page-footer p,
.ps-page-footer li,
.ps-page-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.ps-page-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-page-footer li + li {
  margin-top: 8px;
}

.ps-page-footer a:hover {
  color: #fff;
}

.ps-page-footer-note {
  margin-top: 0;
  padding: 16px 0 18px;
  border-top: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  text-align: center;
}

.ps-page-footer .footer-bottom {
  margin-top: 18px;
  background: #1b1b1b;
}

.ps-page-footer .footer-center {
  text-align: center;
}

.ps-seo-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #9f7d4f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #6b6258;
  font-size: 0.95rem;
}

.ps-seo-breadcrumbs a {
  color: #6b6258;
}

.ps-seo-breadcrumbs a:hover {
  color: #5a4326;
  text-decoration: none;
}

.ps-seo-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  color: #1f1d1a;
  letter-spacing: -0.02em;
}

.ps-seo-lead,
.ps-seo-copy p,
.ps-seo-faq-answer,
.ps-seo-cta p,
.ps-inline-cta p {
  color: #433a31;
  font-size: 1.03rem;
  line-height: 1.85;
}

.ps-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ps-seo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ps-seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.ps-seo-hero-media {
  position: relative;
  min-height: 100%;
  aspect-ratio: 4 / 3;
}

.ps-seo-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
}

.ps-seo-hero-media::after {
  content: "";
  position: absolute;
  inset: auto 18px -18px auto;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(186, 154, 112, 0.12);
  z-index: -1;
}

.ps-seo-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.ps-seo-stat {
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(186, 154, 112, 0.18);
}

.ps-seo-stat strong {
  display: block;
  color: #231f1a;
  font-size: 1.1rem;
}

.ps-seo-stat span {
  display: block;
  margin-top: 4px;
  color: #5f5141;
  font-size: 0.95rem;
}

.ps-seo-card,
.ps-seo-cta,
.ps-inline-cta,
.ps-seo-faq,
.ps-case-card,
.ps-lateral-card {
  background: #fffdfa;
  border: 1px solid rgba(186, 154, 112, 0.24);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.ps-seo-card,
.ps-case-card,
.ps-lateral-card,
.ps-inline-cta,
.ps-seo-cta,
.ps-seo-faq {
  padding: 28px;
}

.ps-seo-band {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(186, 154, 112, 0.14), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(186, 154, 112, 0.16);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.06);
}

.ps-related-panel {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(186, 154, 112, 0.14), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(186, 154, 112, 0.16);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.06);
}

.ps-related-head {
  max-width: 720px;
  margin-bottom: 20px;
}

.ps-related-head h2 {
  margin: 0 0 8px;
}

.ps-related-head p {
  margin: 0;
  color: #433a31;
  line-height: 1.72;
}

.ps-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ps-related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(186, 154, 112, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ps-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.1);
  border-color: rgba(186, 154, 112, 0.32);
}

.ps-related-card::before {
  content: "";
  width: 54px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8a877 0%, #8f724b 100%);
}

.ps-related-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #9f7d4f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps-related-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.ps-related-card p {
  margin-bottom: 18px;
  color: #433a31;
  line-height: 1.72;
}

.ps-related-card .btn {
  align-self: flex-start;
  margin-top: auto;
  min-width: 158px;
  justify-content: center;
}

.ps-related-card .btn.btn-default {
  background: #fbf4e8;
  border-color: rgba(186, 154, 112, 0.38);
  color: #5a4326;
}

.ps-related-card .btn.btn-default:hover {
  background: #c8a877;
  border-color: #c8a877;
  color: #231f1a;
}

.ps-seo-band h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.ps-seo-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.ps-seo-media-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

.ps-seo-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-seo-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.ps-seo-media-copy {
  position: absolute;
  inset: auto 18px 16px 18px;
  z-index: 1;
  color: #fff;
}

.ps-seo-media-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.ps-seo-media-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.ps-seo-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ps-seo-process-step {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(186, 154, 112, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.ps-seo-process-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(186, 154, 112, 0.18);
  color: #70563a;
}

.ps-seo-card h2,
.ps-seo-card h3,
.ps-case-card h3,
.ps-lateral-card h3,
.ps-seo-faq h2,
.ps-seo-faq h3,
.ps-seo-cta h2,
.ps-inline-cta h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #231f1a;
}

.ps-seo-list {
  padding-left: 18px;
  margin: 0;
}

.ps-seo-list li {
  margin-bottom: 10px;
  color: #433a31;
  line-height: 1.7;
}

.ps-seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ps-seo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ps-seo-meta li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(186, 154, 112, 0.12);
  color: #70563a;
  font-size: 0.95rem;
}

.ps-package-nav {
  margin: 34px 0 0;
}

.ps-package-nav .ps-seo-grid {
  margin-top: 18px;
}

.ps-package-nav .btn {
  margin-top: 16px;
}

.ps-seo-section {
  padding: 24px 0 0;
}

.ps-seo-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.ps-seo-table th,
.ps-seo-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(186, 154, 112, 0.18);
  text-align: left;
  vertical-align: top;
}

.ps-seo-table th {
  background: #f5ede1;
  color: #2b261f;
  font-weight: 700;
}

.ps-seo-table tr:last-child td {
  border-bottom: 0;
}

.ps-seo-faq-item + .ps-seo-faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(186, 154, 112, 0.18);
}

.ps-seo-faq-question {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.ps-proof-grid,
.ps-lateral-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ps-case-card img,
.ps-lateral-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.ps-case-card p,
.ps-lateral-card p {
  color: #433a31;
  line-height: 1.75;
}

.ps-inline-cta {
  margin: 34px 0;
  background: linear-gradient(135deg, rgba(186, 154, 112, 0.14), rgba(255, 255, 255, 0.96));
}

.ps-inline-cta h2 {
  color: #ba9a70;
  font-family: var(--porto-body-font-family, "Lato", sans-serif);
  font-size: clamp(2rem, 2.8vw, 2.45rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ps-inline-cta .btn {
  margin-top: 10px;
}

.ps-seo-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ps-seo-anchor-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(35, 31, 26, 0.06);
  color: #433a31;
}

.ps-seo-anchor-nav a:hover {
  text-decoration: none;
  background: rgba(186, 154, 112, 0.18);
}

.ps-home-format-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.ps-home-format-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fffdfa;
  border: 1px solid rgba(186, 154, 112, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  color: #433a31;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.ps-home-format-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background: #f6ead7;
  border-color: rgba(186, 154, 112, 0.5);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
  color: #231f1a;
}

.ps-home-format-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(186, 154, 112, 0.16);
  color: #9f7d4f;
  font-size: 15px;
}

.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-estandar"],
.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-premium"],
.ps-inline-cta .ps-seo-actions a[href*="memorial-web-familiar"],
.ps-inline-cta .ps-seo-actions a[href*="comparativa-servicios-biografia-personalizada"],
.ps-inline-cta .ps-seo-actions a[href*="casos-reales"],
.ps-inline-cta .ps-seo-actions a[href*="contacto/"],
.ps-inline-cta .ps-seo-actions a[href*="nuestros-servicios/"],
.ps-inline-cta .ps-seo-actions a.ps-inline-match-btn {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fffdfa !important;
  border: 1px solid rgba(186, 154, 112, 0.28) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  color: #433a31 !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-estandar"]:hover,
.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-premium"]:hover,
.ps-inline-cta .ps-seo-actions a[href*="memorial-web-familiar"]:hover,
.ps-inline-cta .ps-seo-actions a[href*="comparativa-servicios-biografia-personalizada"]:hover,
.ps-inline-cta .ps-seo-actions a[href*="casos-reales"]:hover,
.ps-inline-cta .ps-seo-actions a[href*="contacto/"]:hover,
.ps-inline-cta .ps-seo-actions a[href*="nuestros-servicios/"]:hover,
.ps-inline-cta .ps-seo-actions a.ps-inline-match-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background: #f6ead7 !important;
  border-color: rgba(186, 154, 112, 0.5) !important;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
  color: #231f1a !important;
}

.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-estandar"]::before,
.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-premium"]::before,
.ps-inline-cta .ps-seo-actions a[href*="memorial-web-familiar"]::before,
.ps-inline-cta .ps-seo-actions a[href*="comparativa-servicios-biografia-personalizada"]::before,
.ps-inline-cta .ps-seo-actions a[href*="casos-reales"]::before,
.ps-inline-cta .ps-seo-actions a[href*="contacto/"]::before,
.ps-inline-cta .ps-seo-actions a[href*="nuestros-servicios/"]::before,
.ps-inline-cta .ps-seo-actions a.ps-inline-match-btn::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(186, 154, 112, 0.16);
  color: #9f7d4f;
  font-family: "Font Awesome 5 Free";
  font-size: 15px;
  font-weight: 900;
}

.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-estandar"]::before {
  content: "\f518";
}

.ps-inline-cta .ps-seo-actions a[href*="biografia-personal-premium"]::before {
  content: "\f5ad";
}

.ps-inline-cta .ps-seo-actions a[href*="memorial-web-familiar"]::before {
  content: "\f302";
}

.ps-inline-cta .ps-seo-actions a[href*="comparativa-servicios-biografia-personalizada"]::before {
  content: "\f24e";
}

.ps-inline-cta .ps-seo-actions a[href*="casos-reales"]::before {
  content: "\f02d";
}

.ps-inline-cta .ps-seo-actions a[href*="contacto/"]::before {
  content: "\f0e0";
}

.ps-inline-cta .ps-seo-actions a[href*="nuestros-servicios/"]::before {
  content: "\f0cb";
}

.ps-inline-cta .ps-seo-actions a.ps-inline-match-btn::before {
  content: "\f0e0";
}

.ps-inline-cta .ps-seo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.single-post .ps-inline-cta {
  margin: 26px 0 22px;
  padding: 20px 26px 18px;
}

.single-post .ps-inline-cta h2 {
  margin-bottom: 8px;
}

.single-post .ps-inline-cta p {
  margin-bottom: 0;
}

.single-post .ps-inline-cta .btn {
  margin-top: 0;
}

.single-post .ps-inline-cta .ps-seo-actions {
  margin-top: 16px;
}

@media (max-width: 991px) {
  .ps-seo-hero-grid,
  .ps-seo-grid,
  .ps-seo-grid-2,
  .ps-seo-media-grid,
  .ps-seo-process-grid,
  .ps-related-grid,
  .ps-proof-grid,
  .ps-lateral-grid {
    grid-template-columns: 1fr;
  }

  .ps-page-header-inner {
    align-items: flex-start;
    padding: 18px 0;
  }

  .ps-page-topbar-inner {
    justify-content: flex-start;
  }

  .ps-page-nav {
    width: 100%;
  }

  .ps-brand img {
    width: 190px;
  }

  .ps-page-footer-grid {
    grid-template-columns: 1fr;
  }

  .ps-related-panel {
    padding: 24px;
  }

  .ps-home-format-actions {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .ps-seo-hero {
    padding-top: 40px;
  }

  .ps-seo-hero-media img {
    min-height: 280px;
  }

  .ps-seo-card,
  .ps-case-card,
  .ps-lateral-card,
  .ps-inline-cta,
  .ps-seo-cta,
  .ps-seo-faq {
    padding: 22px;
  }

  .ps-seo-table,
  .ps-seo-table tbody,
  .ps-seo-table tr,
  .ps-seo-table th,
  .ps-seo-table td {
    display: block;
    width: 100%;
  }

  .ps-seo-table thead {
    display: none;
  }

  .ps-home-format-link {
    width: 100%;
    justify-content: flex-start;
  }

  .ps-inline-cta .ps-seo-actions a[href*="biografia-personal-estandar"],
  .ps-inline-cta .ps-seo-actions a[href*="biografia-personal-premium"],
  .ps-inline-cta .ps-seo-actions a[href*="memorial-web-familiar"],
  .ps-inline-cta .ps-seo-actions a[href*="comparativa-servicios-biografia-personalizada"] {
    width: 100%;
    justify-content: flex-start;
  }

  .single-post .ps-inline-cta {
    padding: 18px 20px 16px;
  }

  .ps-seo-table td {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
