:root {
  --green: #0f3d2e;
  --green-dark: #08271e;
  --gold: #c8a45b;
  --gold-dark: #a98638;
  --cream: #faf7f2;
  --cream-2: #f3efe6;
  --text: #15211d;
  --muted: #59635f;
  --border: rgba(200, 164, 91, 0.35);
  --shadow: 0 18px 45px rgba(8, 39, 30, 0.14);
  --radius: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid rgba(200, 164, 91, 0.22);
  backdrop-filter: blur(14px);
}

.header-content {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--gold-dark);
  font-size: 0.76rem;
  margin-top: 4px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 61, 46, 0.2);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--green);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.hero {
  padding-top: 54px;
  background:
    radial-gradient(circle at 78% 12%, rgba(200, 164, 91, 0.16), transparent 28%),
    linear-gradient(90deg, #fbf8f2 0%, #f3efe6 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--green);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 30px;
  color: #273832;
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 30px rgba(15, 61, 46, 0.22);
}

.btn-secondary {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.3);
}

.btn.full {
  width: 100%;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-badges article {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: Arial, sans-serif;
  color: var(--green);
}

.hero-badges span {
  color: var(--gold-dark);
  font-size: 1.6rem;
}

.hero-badges p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-image {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}

.hero-image > img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow);
  background: var(--cream-2);
}

.lawyer-card {
  position: absolute;
  right: 22px;
  bottom: 26px;
  width: min(420px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: rgba(15, 61, 46, 0.96);
  color: white;
  box-shadow: 0 20px 40px rgba(8, 39, 30, 0.28);
}

.lawyer-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.lawyer-card span {
  display: block;
  margin-top: 6px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
}

.lawyer-card p {
  margin: 12px 0 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.section-dark {
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.12), transparent 35%),
    linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.section-dark .section-heading h2 {
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px 18px;
  border-right: 1px solid rgba(200, 164, 91, 0.46);
  text-align: center;
}

.service-card:last-child {
  border-right: 0;
}

.service-card .icon {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 2.2rem;
}

.service-card h3 {
  margin-bottom: 10px;
  color: white;
  font-size: 1.12rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.value-card,
.contact-card,
.location-card,
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 28px rgba(8, 39, 30, 0.06);
}

.value-card {
  padding: 30px;
}

.value-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: 2rem;
}

.value-card h3,
.info-card h3 {
  color: var(--green);
  text-transform: uppercase;
}

.value-card p,
.info-card p {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--muted);
  line-height: 1.55;
}

.info {
  background: #fffaf1;
  border-top: 1px solid rgba(200, 164, 91, 0.22);
  border-bottom: 1px solid rgba(200, 164, 91, 0.22);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.info-card {
  overflow: hidden;
  border: 1px solid rgba(200, 164, 91, 0.28);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 26px rgba(8, 39, 30, 0.08);
}

.info-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--cream-2);
}

.info-card div {
  padding: 22px;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.9fr;
  gap: 24px;
}

.faq,
.contact-card,
.location-card {
  padding: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(200, 164, 91, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.faq-item.open p {
  display: block;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(200, 164, 91, 0.44);
  border-radius: 10px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 91, 0.16);
}

.form-error {
  min-height: 22px;
  margin: 0 0 12px;
  color: #9a2d1f;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.map-placeholder {
  display: grid;
  place-items: center;
  height: 190px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 61, 46, 0.1), rgba(200, 164, 91, 0.16)),
    var(--cream-2);
  border: 1px solid rgba(200, 164, 91, 0.35);
}

.map-placeholder span {
  font-size: 3rem;
}

.contact-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: Arial, sans-serif;
}

.contact-list li {
  margin-bottom: 12px;
  line-height: 1.45;
}

.contact-list strong {
  color: var(--green);
}

.contact-list a {
  color: var(--gold-dark);
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: #148c4a;
  color: white;
  font-family: Arial, sans-serif;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.site-footer {
  padding: 42px 0;
  background: var(--green-dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.footer-logo {
  width: 76px;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer span,
.site-footer small,
.site-footer a {
  display: block;
  margin: 6px 0;
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .service-grid,
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card {
    border-right: 0;
    border: 1px solid rgba(200, 164, 91, 0.28);
    border-radius: 14px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .header-content {
    min-height: 72px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 0.82rem;
  }

  .brand-text span {
    font-size: 0.66rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--cream);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .header-whatsapp {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    justify-self: stretch;
    width: 100%;
  }

  .hero-image > img {
    min-height: 420px;
  }

  .hero-badges,
  .value-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 54px 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .lawyer-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -4px;
    border-radius: 0 0 18px 18px;
  }

  .floating-whatsapp {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .site-footer {
    padding-bottom: 82px;
  }
}

/* Imagen principal del cliente */
.lawyer-card {
  display: none;
}

.hero-image > img {
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
}

/* Ajuste final del hero: imagen más contenida */
.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
}

.hero-image {
  width: min(100%, 390px);
  justify-self: center;
}

.hero-image > img {
  width: 100%;
  height: 560px;
  min-height: unset;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

@media (max-width: 850px) {
  .hero-image {
    width: min(100%, 360px);
  }

  .hero-image > img {
    height: 480px;
  }
}

@media (max-width: 560px) {
  .hero-image {
    width: 100%;
  }

  .hero-image > img {
    height: 420px;
  }
}

/* Íconos jurídicos dorados en servicios */
.service-card .service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.service-card .service-icon svg {
  width: 46px;
  height: 46px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  color: #e0bf70;
}

/* Efecto hover profesional en imagen principal */
.hero-image {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(8, 39, 30, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-image > img {
  transition: transform 0.45s ease, filter 0.45s ease;
}

.hero-image:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(8, 39, 30, 0.22),
    0 0 0 1px rgba(200, 164, 91, 0.35);
}

.hero-image:hover > img {
  transform: scale(1.035);
  filter: contrast(1.03) saturate(1.04);
}

/* Corrección: efecto sobrio en imagen principal, sin zoom ni movimiento */
.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(8, 39, 30, 0.12);
  transform: none !important;
  transition: box-shadow 0.3s ease;
}

.hero-image > img {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: none !important;
  box-shadow: 0 22px 48px rgba(8, 39, 30, 0.16);
}

.hero-image:hover > img {
  transform: none !important;
  filter: none !important;
}

.hero-image:hover::after {
  border-color: rgba(200, 164, 91, 0.75);
  box-shadow: inset 0 0 0 3px rgba(200, 164, 91, 0.10);
}

/* Rediseño sección valores */
.values {
  position: relative;
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.10), transparent 34%),
    linear-gradient(180deg, #faf7f2 0%, #f7f1e8 100%);
}

.values .section-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 42px;
}

.section-description {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.value-grid {
  align-items: stretch;
}

.value-card {
  position: relative;
  min-height: 250px;
  padding: 34px 30px 32px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 246, 0.92));
  border: 1px solid rgba(200, 164, 91, 0.34);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(8, 39, 30, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.9;
}

.value-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(200, 164, 91, 0.20);
  border-radius: 50%;
  background: rgba(200, 164, 91, 0.045);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 164, 91, 0.70);
  box-shadow: 0 24px 46px rgba(8, 39, 30, 0.13);
}

.value-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(200, 164, 91, 0.18), rgba(200, 164, 91, 0.06));
  border: 1px solid rgba(200, 164, 91, 0.42);
}

.value-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 0 auto 16px;
  color: var(--green);
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.value-card p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 850px) {
  .value-card {
    min-height: auto;
  }
}

/* Rediseño sección información jurídica */
.info {
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.10), transparent 34%),
    linear-gradient(180deg, #fffaf1 0%, #faf7f2 100%);
}

.legal-topics-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.legal-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 91, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(8, 39, 30, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.legal-topic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 164, 91, 0.72);
  box-shadow: 0 26px 54px rgba(8, 39, 30, 0.14);
}

.legal-topic-featured {
  grid-row: span 2;
}

.legal-topic-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--cream-2);
}

.legal-topic-featured .legal-topic-image {
  height: 360px;
}

.legal-topic-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 61, 46, 0.00) 35%, rgba(15, 61, 46, 0.18) 100%);
  pointer-events: none;
}

.legal-topic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.legal-topic-card:hover .legal-topic-image img {
  transform: scale(1.025);
}

.legal-topic-content {
  position: relative;
  flex: 1;
  padding: 26px 26px 28px;
}

.topic-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 164, 91, 0.13);
  color: var(--gold-dark);
  border: 1px solid rgba(200, 164, 91, 0.35);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-topic-content h3 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.legal-topic-featured .legal-topic-content h3 {
  font-size: 1.75rem;
}

.legal-topic-content p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 1050px) {
  .legal-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-topic-featured {
    grid-row: auto;
    grid-column: span 2;
  }

  .legal-topic-featured .legal-topic-image {
    height: 300px;
  }
}

@media (max-width: 680px) {
  .legal-topics-grid {
    grid-template-columns: 1fr;
  }

  .legal-topic-featured {
    grid-column: auto;
  }

  .legal-topic-card {
    min-height: auto;
  }

  .legal-topic-image,
  .legal-topic-featured .legal-topic-image {
    height: 230px;
  }

  .legal-topic-featured .legal-topic-content h3 {
    font-size: 1.35rem;
  }
}

/* Sección información jurídica limpia, sin imágenes con texto */
.info-clean {
  position: relative;
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.10), transparent 36%),
    linear-gradient(180deg, #fffaf1 0%, #faf7f2 100%);
  border-top: 1px solid rgba(200, 164, 91, 0.20);
  border-bottom: 1px solid rgba(200, 164, 91, 0.20);
}

.info-clean .section-heading {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.insight-card {
  position: relative;
  min-height: 430px;
  padding: 34px 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 91, 0.36);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.98));
  box-shadow: 0 18px 38px rgba(8, 39, 30, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.insight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.insight-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(200, 164, 91, 0.18);
  border-radius: 50%;
  background: rgba(200, 164, 91, 0.045);
}

.insight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 164, 91, 0.75);
  box-shadow: 0 26px 54px rgba(8, 39, 30, 0.13);
}

.insight-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(200, 164, 91, 0.18), rgba(200, 164, 91, 0.06));
  border: 1px solid rgba(200, 164, 91, 0.44);
}

.insight-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 164, 91, 0.12);
  color: var(--gold-dark);
  border: 1px solid rgba(200, 164, 91, 0.36);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-card h3 {
  position: relative;
  z-index: 1;
  min-height: 76px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.insight-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.62;
}

.insight-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Arial, sans-serif;
  color: var(--text);
  font-size: 0.92rem;
}

.insight-card li {
  position: relative;
  padding-left: 22px;
  line-height: 1.4;
}

.insight-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 1100px) {
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-card h3 {
    min-height: auto;
  }
}

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

  .insight-card {
    min-height: auto;
  }
}

/* Información jurídica: tarjeta con imagen + cuerpo con ícono */
.info-hybrid {
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.10), transparent 36%),
    linear-gradient(180deg, #fffaf1 0%, #faf7f2 100%);
  border-top: 1px solid rgba(200, 164, 91, 0.20);
  border-bottom: 1px solid rgba(200, 164, 91, 0.20);
}

.hybrid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.hybrid-card {
  overflow: hidden;
  border: 1px solid rgba(200, 164, 91, 0.36);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(8, 39, 30, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hybrid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 91, 0.72);
  box-shadow: 0 26px 54px rgba(8, 39, 30, 0.13);
}

.hybrid-image {
  height: 250px;
  overflow: hidden;
  background: var(--cream-2);
  border-bottom: 1px solid rgba(200, 164, 91, 0.25);
}

.hybrid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ajuste del encuadre para que se vea más imagen y menos texto */
.hybrid-image-infancia img {
  object-position: 62% center;
}

.hybrid-image-danos img {
  object-position: 76% center;
}

.hybrid-image-consumidor img {
  object-position: 74% center;
}

.hybrid-image-previsional img {
  object-position: 78% center;
}

.hybrid-body {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  padding: 28px;
}

.hybrid-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(200, 164, 91, 0.18), rgba(200, 164, 91, 0.06));
  border: 1px solid rgba(200, 164, 91, 0.44);
}

.hybrid-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hybrid-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 164, 91, 0.12);
  color: var(--gold-dark);
  border: 1px solid rgba(200, 164, 91, 0.36);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hybrid-card h3 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.42rem;
  line-height: 1.14;
  text-transform: uppercase;
}

.hybrid-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hybrid-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text);
}

.hybrid-card li {
  position: relative;
  padding-left: 22px;
  line-height: 1.4;
}

.hybrid-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold-dark);
  font-size: 1.35rem;
  line-height: 1;
}

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

@media (max-width: 620px) {
  .hybrid-image {
    height: 210px;
  }

  .hybrid-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hybrid-icon {
    width: 60px;
    height: 60px;
  }
}

/* Carrusel de temas frecuentes con tarjetas diseñadas */
.info-carousel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.10), transparent 34%),
    linear-gradient(180deg, #fffaf1 0%, #faf7f2 100%);
  border-top: 1px solid rgba(200, 164, 91, 0.20);
  border-bottom: 1px solid rgba(200, 164, 91, 0.20);
}

.info-carousel .section-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.topics-carousel-wrapper {
  position: relative;
  margin-top: 34px;
}

.topics-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(200, 164, 91, 0.12);
}

.topic-image-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 91, 0.38);
  border-radius: 22px;
  background: #fffaf1;
  box-shadow: 0 18px 38px rgba(8, 39, 30, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.topic-image-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 164, 91, 0.78);
  box-shadow: 0 26px 54px rgba(8, 39, 30, 0.15);
}

.topic-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(200, 164, 91, 0.55);
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.92);
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 39, 30, 0.16);
  transform: translateY(-50%);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.carousel-btn:hover {
  background: var(--green);
  color: white;
  transform: translateY(-50%) scale(1.04);
}

.carousel-btn-prev {
  left: -18px;
}

.carousel-btn-next {
  right: -18px;
}

.topics-cta {
  width: min(760px, 100%);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(200, 164, 91, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(8, 39, 30, 0.08);
}

.topics-cta-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--gold-dark);
  border: 1px solid rgba(200, 164, 91, 0.45);
  background: rgba(200, 164, 91, 0.10);
  font-size: 1.5rem;
}

.topics-cta p {
  margin: 0;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.topics-cta strong {
  color: var(--gold-dark);
}

@media (min-width: 1200px) {
  .topics-carousel {
    grid-auto-columns: calc((100% - 48px) / 3);
  }
}

@media (max-width: 900px) {
  .topics-carousel {
    grid-auto-columns: minmax(320px, 80%);
  }

  .carousel-btn {
    display: none;
  }

  .topics-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .topics-cta-icon {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .topics-carousel {
    grid-auto-columns: 88%;
    gap: 16px;
  }
}

/* Credencial profesional en hero */
.hero-image {
  overflow: visible !important;
}

.lawyer-card {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  display: grid !important;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  width: calc(100% - 26px) !important;
  margin: -46px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(200, 164, 91, 0.85);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 61, 46, 0.98), rgba(8, 39, 30, 0.98));
  color: white;
  box-shadow:
    0 18px 38px rgba(8, 39, 30, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 3;
}

.lawyer-card::before,
.lawyer-card::after {
  content: "";
  position: absolute;
  bottom: 16px;
  width: 54px;
  height: 1px;
  background: rgba(200, 164, 91, 0.72);
}

.lawyer-card::before {
  left: 20px;
}

.lawyer-card::after {
  right: 20px;
}

.lawyer-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--green);
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.lawyer-card-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lawyer-card-info {
  position: relative;
  z-index: 1;
}

.lawyer-card-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1.12rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lawyer-card-info span {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lawyer-card-info p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 850px) {
  .lawyer-card {
    margin-top: -34px;
  }
}

@media (max-width: 560px) {
  .lawyer-card {
    grid-template-columns: 1fr;
    text-align: center;
    width: 94% !important;
    margin-top: -28px;
  }

  .lawyer-card-icon {
    margin: 0 auto;
  }

  .lawyer-card-info p {
    margin-left: auto;
    margin-right: auto;
  }

  .lawyer-card::before,
  .lawyer-card::after {
    display: none;
  }
}

/* Ajuste fino credencial profesional */
.lawyer-card {
  width: calc(100% - 34px) !important;
  margin: -36px auto 0;
  padding: 16px 18px 17px;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  border-radius: 16px;
}

.lawyer-card-icon {
  width: 50px;
  height: 50px;
}

.lawyer-card-icon svg {
  width: 28px;
  height: 28px;
}

.lawyer-card-info strong {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.lawyer-card-info span {
  font-size: 0.82rem;
  margin-bottom: 7px;
}

.lawyer-card-info p {
  font-size: 0.82rem;
  line-height: 1.42;
}

.lawyer-card::before,
.lawyer-card::after {
  bottom: 13px;
  width: 44px;
}

.hero-image > img {
  box-shadow: 0 18px 42px rgba(8, 39, 30, 0.13);
}

@media (max-width: 560px) {
  .lawyer-card {
    margin-top: -26px;
    width: 92% !important;
  }
}

/* Credencial profesional separada de la foto */
.hero-credential {
  max-width: 560px;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  padding: 18px 22px;
  border: 1px solid rgba(200, 164, 91, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 61, 46, 0.98), rgba(8, 39, 30, 0.98));
  color: white;
  box-shadow: 0 18px 38px rgba(8, 39, 30, 0.18);
}

.hero-credential img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  padding: 4px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.95);
  border: 1px solid rgba(200, 164, 91, 0.55);
}

.hero-credential strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1.08rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-credential span {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-credential p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* La foto queda limpia, sin credencial superpuesta */
.hero-image {
  overflow: hidden !important;
}

@media (max-width: 650px) {
  .hero-credential {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-credential p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ajuste de llamados a la acción */
.header-whatsapp {
  background: var(--green);
}

.floating-whatsapp {
  font-size: 0;
  width: 58px;
  height: 58px;
  padding: 0;
}

.floating-whatsapp::before {
  content: "☎";
  font-size: 1.45rem;
}

@media (min-width: 900px) {
  .floating-whatsapp {
    opacity: 0.88;
  }

  .floating-whatsapp:hover {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .floating-whatsapp {
    left: auto;
    right: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }
}

/* Modal de confirmación de consulta */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 39, 30, 0.62);
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  display: grid;
}

.success-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 38px 34px 32px;
  border: 1px solid rgba(200, 164, 91, 0.62);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.14), transparent 38%),
    #faf7f2;
  color: var(--text);
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.25s ease;
}

.success-modal-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  border: 1px solid rgba(200, 164, 91, 0.7);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.success-modal h2 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 2rem;
  line-height: 1.1;
}

.success-modal p {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200, 164, 91, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  color: var(--green);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--green);
  color: white;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animación específica para la imagen principal del hero */
.hero .hero-image.reveal {
  opacity: 0 !important;
  transform: translateX(36px) translateY(10px) !important;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    box-shadow 0.3s ease;
}

.hero .hero-image.reveal.visible {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}

.hero .hero-image.reveal:hover {
  transform: translateX(0) translateY(0) !important;
}

@media (max-width: 850px) {
  .hero .hero-image.reveal {
    transform: translateY(24px) !important;
  }

  .hero .hero-image.reveal.visible {
    transform: translateY(0) !important;
  }
}

/* Tipografías oficiales de marca */
:root {
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Montserrat", Arial, sans-serif;
}

body {
  font-family: var(--font-text);
}

h1,
h2,
h3,
.brand-text,
.lawyer-card-info strong,
.hero-credential strong,
.section-heading h2 {
  font-family: var(--font-title);
}

p,
a,
button,
input,
textarea,
label,
.main-nav,
.btn,
.eyebrow,
.hero-subtitle,
.hero-badges,
.service-card p,
.value-card p,
.contact-list,
.faq-item button,
.faq-item p,
.form-row label,
.form-error,
.site-footer p,
.site-footer span,
.site-footer small,
.site-footer a {
  font-family: var(--font-text);
}

/* Ajuste fino del título principal del hero */
.hero-copy {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(3.2rem, 5.6vw, 5.25rem) !important;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero-subtitle {
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 8px;
}

@media (max-width: 850px) {
  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem) !important;
  }
}

/* Ajuste fino del título principal del hero */
.hero-copy {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(3.2rem, 5.6vw, 5.25rem) !important;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero-subtitle {
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 8px;
}

@media (max-width: 850px) {
  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem) !important;
  }
}

/* Ajuste definitivo del título principal */
main .hero .hero-copy {
  max-width: 570px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

main .hero .hero-copy h1 {
  max-width: 540px !important;
  font-size: clamp(2.9rem, 4.8vw, 4.45rem) !important;
  line-height: 1.03 !important;
  letter-spacing: 0.015em !important;
  margin-bottom: 24px !important;
}

main .hero .hero-subtitle {
  max-width: 540px !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* Ajuste header: separar menú del botón principal */
.main-nav {
  gap: 26px;
}

.header-whatsapp {
  margin-left: 18px;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }

  .header-whatsapp {
    margin-left: 8px;
  }
}

/* Ajuste logo header: más chico y sin deformación */
.site-header .brand-logo {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.site-header .brand {
  gap: 12px;
}

.site-header .header-content {
  min-height: 74px;
}

@media (max-width: 850px) {
  .site-header .brand-logo {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
  }
}

/* Efecto para botón Contacto del header */
.site-header .header-whatsapp {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.site-header .header-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(200, 164, 91, 0.28),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.site-header .header-whatsapp:hover {
  transform: translateY(-3px);
  background: #082f24;
  box-shadow:
    0 18px 32px rgba(8, 39, 30, 0.24),
    0 0 0 1px rgba(200, 164, 91, 0.45);
}

.site-header .header-whatsapp:hover::after {
  transform: translateX(120%);
}

.site-header .header-whatsapp:active {
  transform: translateY(-1px);
}

/* Mapa de ubicación */
.map-embed {
  overflow: hidden;
  height: 230px;
  border-radius: 14px;
  border: 1px solid rgba(200, 164, 91, 0.35);
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(0.95);
}

@media (max-width: 620px) {
  .map-embed {
    height: 260px;
  }
}

/* Redes sociales en ubicación */
.social-box {
  margin-top: 26px;
  padding: 22px 18px 20px;
  border: 1px solid rgba(200, 164, 91, 0.36);
  border-radius: 16px;
  background:
    radial-gradient(circle at top center, rgba(200, 164, 91, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.54);
  text-align: center;
}

.social-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.social-title span {
  height: 1px;
  background: rgba(200, 164, 91, 0.42);
}

.social-title strong {
  color: var(--green);
  font-family: var(--font-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(200, 164, 91, 0.42);
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.85);
  color: var(--green);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link span {
  font-family: var(--font-text);
  font-size: 0.94rem;
  font-weight: 900;
}

.social-link.active {
  background: var(--green);
  color: white;
  border-color: rgba(200, 164, 91, 0.75);
  box-shadow: 0 12px 24px rgba(8, 39, 30, 0.16);
}

.social-link.active:hover {
  transform: translateY(-3px);
  background: var(--green-dark);
  color: var(--gold);
  box-shadow:
    0 18px 34px rgba(8, 39, 30, 0.24),
    0 0 0 1px rgba(200, 164, 91, 0.46);
}

.social-link.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.social-link.disabled:hover {
  transform: none;
}

.social-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Redes sociales centradas debajo de los tres paneles de contacto */
.contact-social-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.social-box-wide {
  width: min(620px, 100%);
  margin-top: 0;
  padding: 26px 28px 24px;
}

.social-box-wide .social-links {
  gap: 18px;
}

.social-box-wide .social-link {
  width: 52px;
  height: 52px;
}

.social-box-wide .social-link svg {
  width: 24px;
  height: 24px;
}

.social-box-wide .social-link span {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.social-box-wide .social-note {
  margin-top: 4px;
}

@media (max-width: 680px) {
  .contact-social-row {
    margin-top: 0;
  }

  .social-box-wide {
    padding: 22px 18px 20px;
  }
}

/* Botón flotante WhatsApp */
.floating-whatsapp {
  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #148c4a !important;
  color: white !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-whatsapp::before {
  content: none !important;
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  background: #0f7a3e !important;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.26);
}

/* Ajuste final botón flotante WhatsApp: estilo compacto */
.floating-whatsapp {
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: #073d30 !important;
  color: #25d366 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(37, 211, 102, 0.18) !important;
  box-shadow: 0 12px 28px rgba(8, 39, 30, 0.24) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease !important;
}

.floating-whatsapp::before {
  content: none !important;
}

.floating-whatsapp svg {
  width: 25px !important;
  height: 25px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) !important;
  background: #052f25 !important;
  border-color: rgba(37, 211, 102, 0.38) !important;
  box-shadow: 0 18px 34px rgba(8, 39, 30, 0.34) !important;
}

/* Ícono oficial WhatsApp como imagen */
.floating-whatsapp img {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

.floating-whatsapp svg {
  display: none !important;
}

/* Ajuste logo footer: quitar efecto de cuadrado blanco */
.site-footer img,
.footer-brand img,
.footer-logo,
.site-footer .brand-logo {
  width: 76px !important;
  height: 76px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  background: transparent !important;
  display: block;
}

.site-footer .brand,
.footer-brand {
  align-items: flex-start;
}

.site-footer img {
  box-shadow: 0 0 0 1px rgba(200, 164, 91, 0.35);
}

/* Firma BASE 9 en footer */
.footer-base9 {
  max-width: 330px;
}

.base9-brand {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(250, 247, 242, 0.94);
  border: 1px solid rgba(200, 164, 91, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.base9-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.base9-brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-base9 p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.footer-base9 strong {
  color: var(--gold);
}

.base9-hook {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.88rem !important;
}

.base9-link {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 14px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 91, 0.52);
  color: var(--gold);
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.base9-link:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--green);
}

.footer-base9 small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Firma BASE 9 en footer */
.footer-base9 {
  max-width: 360px;
}

.base9-brand {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(250, 247, 242, 0.95);
  border: 1px solid rgba(200, 164, 91, 0.30);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.base9-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.base9-brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-base9 p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.footer-base9 strong {
  color: var(--gold);
}

.base9-hook {
  max-width: 290px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.88rem !important;
}

.base9-link {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 14px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 91, 0.52);
  color: var(--gold);
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.base9-link:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--green);
}

.footer-base9 small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Footer ajustado con firma BASE 9 */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.footer-brand img {
  width: 76px !important;
  height: 76px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(200, 164, 91, 0.35);
}

.footer-brand p,
.footer-brand span,
.footer-contact p,
.footer-contact a {
  font-family: var(--font-text);
}

.footer-contact h3 {
  color: var(--gold);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-base9 {
  max-width: 360px;
}

.base9-brand {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(250, 247, 242, 0.95);
  border: 1px solid rgba(200, 164, 91, 0.30);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.base9-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.base9-brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-base9 p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.footer-base9 strong {
  color: var(--gold);
}

.base9-hook {
  max-width: 290px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.88rem !important;
}

.base9-link {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 14px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 91, 0.52);
  color: var(--gold);
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.base9-link:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--green);
}

.footer-base9 small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-text);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-base9 {
    max-width: 100%;
  }
}

/* Corrección definitiva logo BASE 9 footer */
.footer-base9 .base9-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 210px !important;
  max-width: 210px !important;
  height: auto !important;
  margin-bottom: 18px !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  background: rgba(250, 247, 242, 0.96) !important;
  border: 1px solid rgba(200, 164, 91, 0.30) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;
}

.footer-base9 .base9-brand img {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
}

.footer-base9 p {
  margin-bottom: 12px !important;
}

.footer-base9 .base9-hook {
  display: none !important;
}

/* Footer BASE 9 orden final */
.footer-base9 {
  max-width: 360px !important;
}

.footer-base9 .base9-developed {
  margin: 0 0 14px !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-family: var(--font-text) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

.footer-base9 .base9-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 230px !important;
  max-width: 230px !important;
  margin: 0 auto 18px !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  background: rgba(250, 247, 242, 0.96) !important;
  border: 1px solid rgba(200, 164, 91, 0.30) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18) !important;
}

.footer-base9 .base9-brand img {
  width: 190px !important;
  max-width: 190px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.footer-base9 .base9-link {
  width: 100% !important;
  justify-content: center !important;
  margin: 0 0 14px !important;
  padding: 10px 16px !important;
  color: var(--gold) !important;
  opacity: 1 !important;
}

.footer-base9 .base9-link:hover {
  background: var(--gold) !important;
  color: var(--green) !important;
}

.footer-base9 .base9-copy {
  display: block !important;
  text-align: left !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-family: var(--font-text) !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

/* Ocultar restos viejos si quedaron */
.footer-base9 .base9-hook {
  display: none !important;
}

/* Ajuste final BASE 9 footer */
.footer-base9 {
  max-width: 330px !important;
}

.footer-base9 .base9-developed {
  margin-bottom: 12px !important;
  font-size: 0.96rem !important;
}

.footer-base9 .base9-brand {
  width: 200px !important;
  max-width: 200px !important;
  margin-bottom: 16px !important;
  padding: 10px 14px !important;
  border-radius: 15px !important;
}

.footer-base9 .base9-brand img {
  width: 162px !important;
  max-width: 162px !important;
}

.footer-base9 .base9-link {
  max-width: 260px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 14px !important;
  padding: 9px 14px !important;
  font-size: 0.76rem !important;
}

.footer-base9 .base9-copy {
  white-space: nowrap !important;
  text-align: left !important;
  font-size: 0.82rem !important;
}

@media (max-width: 520px) {
  .footer-base9 .base9-copy {
    white-space: normal !important;
  }
}

/* Corrección final footer BASE 9: botón adaptable y copyright en una línea */
.footer-base9 {
  text-align: center !important;
}

.footer-base9 .base9-brand {
  width: 190px !important;
  max-width: 190px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-base9 .base9-brand img {
  width: 154px !important;
  max-width: 154px !important;
}

.footer-base9 .base9-link {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: unset !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 16px !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.footer-base9 .base9-copy {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  margin-top: 6px !important;
}

.footer-base9 .base9-copy span {
  display: inline !important;
}

/* Centrado bloque institucional del footer */
.footer-brand {
  text-align: center !important;
  align-items: center !important;
  justify-items: center !important;
}

.footer-brand img {
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-brand p,
.footer-brand span {
  text-align: center !important;
}

/* Ícono dorado para atención personalizada en hero */
.hero-badge-icon-svg {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.hero-badge-icon-svg svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hover dorado para botón Enviar consulta */
.btn-primary:hover,
.contact-form .btn-primary:hover,
button.btn-primary:hover {
  background: var(--gold) !important;
  color: var(--green) !important;
  border-color: var(--gold) !important;
  transform: translateY(-3px);
  box-shadow:
    0 18px 34px rgba(200, 164, 91, 0.24),
    0 0 0 1px rgba(15, 61, 46, 0.10);
}

/* Corrección hover botón Enviar consulta: solo letras doradas */
.btn-primary:hover,
.contact-form .btn-primary:hover,
button.btn-primary:hover {
  background: var(--green) !important;
  color: var(--gold) !important;
  border-color: var(--green) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(8, 39, 30, 0.18);
}

/* Campo antispam oculto: no completar manualmente. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
