/* Página de destino: Derecho Civil */
.civil-page { background: #08141d; }

.civil-hero-shade {
  background:
    linear-gradient(90deg, rgba(7,18,26,.90) 0%, rgba(7,18,26,.82) 30%, rgba(7,18,26,.58) 56%, rgba(7,18,26,.36) 75%, rgba(7,18,26,.40) 100%),
    linear-gradient(180deg, rgba(6,17,25,.15), rgba(6,17,25,.34));
}
.civil-hero-copy { max-width: 760px; }
.civil-hero h1 { max-width: 650px; }
.civil-lead {
  max-width: 670px;
  margin-top: 22px;
  color: #f0f3f5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  text-shadow: 0 5px 15px rgba(0,0,0,.28);
}
.civil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.civil-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(200,165,107,.3);
  border-radius: 999px;
  color: #f2f5f7;
  background: rgba(7,18,26,.38);
  backdrop-filter: blur(4px);
  font-size: .82rem;
}
.civil-tags i { color: var(--gold); }
.civil-trust { max-width: 760px; }

.civil-cases { background: var(--cream); color: var(--ink); }
.civil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.civil-card {
  position: relative;
  min-height: 250px;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(29,43,52,.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.civil-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(200,165,107,.12));
}
.civil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(29,43,52,.10);
  border-color: rgba(169,129,69,.26);
}
.civil-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  color: var(--gold-deep);
  background: #f7f1e7;
  border: 1px solid #e7dac4;
  font-size: 1.05rem;
}
.civil-card h3 { color: var(--ink); font-size: 1.45rem; margin-bottom: 10px; }
.civil-card p { color: #53616b; }
.civil-card-cta { background: linear-gradient(145deg, #fff 0%, #f6f0e6 100%); }
.text-cta {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: #26353f;
  font-weight: 700;
  font-size: .86rem;
}
.text-cta span { color: var(--gold-deep); transition: transform .2s ease; }
.text-cta:hover span { transform: translateX(4px); }

.civil-mid-cta {
  padding: 54px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(200,165,107,.14), transparent 30%),
    linear-gradient(120deg, #123243 0%, #0c1e2a 62%, #312a20 115%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.civil-mid-inner { display: flex; flex-direction: column; gap: 25px; align-items: flex-start; }
.civil-mid-inner h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; margin-bottom: 9px; }
.civil-mid-inner p:last-child { max-width: 760px; color: #c5d0d6; }

.civil-process { background: var(--navy-2); }
.civil-steps .step-card { min-height: 220px; }

.civil-proof { background: #eee8de; color: var(--ink); }
.proof-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.proof-grid h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.13; }
.proof-copy {
  padding: 30px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(20,32,42,.10);
  border-radius: 18px;
}
.proof-copy p { color: #4d5b64; }
.proof-copy p + p { margin-top: 18px; }

.civil-faq { background: #102431; }
.civil-contact { padding-bottom: 94px; }
.landing-links { padding-top: 22px; color: #91a0aa; font-size: .82rem; }
.landing-links a:hover { color: #fff; }

.mobile-whatsapp {
  position: fixed;
  z-index: 1200;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #06150b;
  font-weight: 800;
  font-size: .86rem;
  box-shadow: 0 16px 35px rgba(0,0,0,.32);
}

@media (min-width: 760px) {
  .civil-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: .9fr 1.1fr; gap: 70px; }
  .civil-mid-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 60px; }
}

@media (min-width: 980px) {
  .civil-grid { grid-template-columns: repeat(3, 1fr); }
  .civil-hero .hero-copy-inner { padding-top: 54px; }
  .mobile-whatsapp { display: none; }
}

@media (max-width: 560px) {
  .civil-hero .hero-logo { margin-bottom: 22px; }
  .civil-lead { font-size: 1.15rem; }
  .civil-tags span { width: 100%; justify-content: flex-start; }
  .civil-card { min-height: auto; }
  .civil-contact { padding-bottom: 112px; }
}

/* =========================================================
   Landing Civil v3 — más aire, CTA visible, sin comprimir
   ========================================================= */
.civil-hero {
  min-height: 880px;
}
.civil-hero-shade {
  background:
    linear-gradient(90deg, rgba(7,18,26,.91) 0%, rgba(7,18,26,.82) 31%, rgba(7,18,26,.57) 57%, rgba(7,18,26,.32) 78%, rgba(7,18,26,.38) 100%),
    linear-gradient(180deg, rgba(6,17,25,.13), rgba(6,17,25,.32));
}
.civil-hero .hero-overlay-content {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.civil-hero-copy {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 58px;
}
.civil-hero .hero-logo {
  width: min(340px, 82vw);
  margin-bottom: 30px;
}
.civil-hero .eyebrow {
  margin-bottom: 15px;
}
.civil-hero h1 {
  max-width: 680px;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: .99;
}
.civil-lead {
  max-width: 700px;
  margin-top: 24px;
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.48;
}
.civil-primary-actions {
  align-items: center;
  margin-top: 28px;
  gap: 18px;
}
.civil-primary-actions .btn-primary {
  min-height: 54px;
  padding-inline: 25px;
}
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 4px;
  color: #e0e6ea;
  font-size: .83rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(200,165,107,.42);
}
.hero-secondary-link span { color: var(--gold); }
.hero-secondary-link:hover { color: #fff; border-color: var(--gold); }
.civil-tags {
  gap: 10px;
  margin-top: 27px;
}
.civil-tags span {
  padding: 9px 13px;
  font-size: .82rem;
  background: rgba(7,18,26,.30);
}
.civil-hero-note {
  max-width: 650px;
  margin-top: 22px;
  color: #c5d0d6;
  font-size: .93rem;
  line-height: 1.55;
}

/* La información de confianza pasa debajo de la portada: libera espacio sin perder contenido */
.civil-trust-band {
  background: #0b1a24;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.civil-trust-band-inner {
  display: grid;
  grid-template-columns: 1fr;
}
.civil-trust-band-inner > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
}
.civil-trust-band-inner > div + div {
  border-top: 1px solid rgba(255,255,255,.07);
}
.civil-trust-band i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200,165,107,.28);
  border-radius: 50%;
  color: var(--gold);
}
.civil-trust-band span {
  display: grid;
  gap: 2px;
}
.civil-trust-band strong {
  color: #fff;
  font-size: .84rem;
}
.civil-trust-band small {
  color: #8fa0ab;
  font-size: .75rem;
}

@media (min-width: 760px) {
  .civil-trust-band-inner {
    grid-template-columns: repeat(3, 1fr);
  }
  .civil-trust-band-inner > div {
    padding: 24px 22px;
  }
  .civil-trust-band-inner > div:first-child { padding-left: 0; }
  .civil-trust-band-inner > div + div {
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,.07);
  }
}

@media (min-width: 980px) {
  .civil-hero {
    min-height: 820px;
    height: calc(100vh - 0px);
    max-height: 980px;
  }
  .civil-hero-copy {
    padding-top: 58px;
    padding-bottom: 50px;
  }
  .mobile-whatsapp { display: none; }
}

/* Pantallas de notebook: conserva aire pero garantiza CTA en el primer pantallazo */
@media (min-width: 980px) and (max-height: 850px) {
  .civil-hero {
    min-height: 760px;
    height: auto;
  }
  .civil-hero-copy {
    padding-top: 48px;
    padding-bottom: 42px;
  }
  .civil-hero .hero-logo {
    width: 310px;
    margin-bottom: 24px;
  }
  .civil-hero .eyebrow { margin-bottom: 12px; }
  .civil-hero h1 {
    font-size: clamp(2.75rem, 5vw, 4.45rem);
  }
  .civil-lead {
    margin-top: 19px;
    font-size: clamp(1.12rem, 1.55vw, 1.34rem);
  }
  .civil-primary-actions { margin-top: 23px; }
  .civil-tags { margin-top: 22px; }
  .civil-hero-note { margin-top: 18px; }
}

@media (max-width: 560px) {
  .civil-hero {
    min-height: auto;
  }
  .civil-hero .hero-overlay-content {
    display: block;
  }
  .civil-hero-copy {
    padding-top: 42px;
    padding-bottom: 45px;
  }
  .civil-hero .hero-logo {
    width: min(300px, 84vw);
    margin-bottom: 24px;
  }
  .civil-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
  }
  .civil-lead {
    margin-top: 18px;
    font-size: 1.12rem;
  }
  .civil-primary-actions {
    margin-top: 23px;
  }
  .civil-primary-actions .btn-primary {
    width: 100%;
  }
  .hero-secondary-link {
    margin: 0 auto;
  }
  .civil-tags {
    margin-top: 22px;
  }
  .civil-tags span {
    width: auto;
    justify-content: center;
  }
  .civil-hero-note {
    margin-top: 20px;
    font-size: .88rem;
    text-align: left;
  }
}


/* Ajuste final: CTA intermedio alineado y texto en una sola línea */
.civil-mid-inner > .btn-light {
  flex: 0 0 auto;
  min-width: 190px;
  white-space: nowrap;
  padding-inline: 22px;
}
@media (max-width: 759px) {
  .civil-mid-inner > .btn-light {
    min-width: 0;
  }
}
