/* D&C Asesores Financieros - estilos v2 */
:root {
  --navy: #14283f;
  --navy-2: #0d1c2e;
  --blue: #1f5fa8;
  --blue-l: #e8f0f9;
  --gold: #c5a46d;
  --gold-d: #a8884f;
  --ivory: #f5f2eb;
  --graphite: #2b3138;
  --muted: #5d6670;
  --line: #e3ded2;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 40, 63, 0.1);
  --shadow-l: 0 22px 50px rgba(20, 40, 63, 0.18);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 400 16px/1.7 var(--sans);
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

/* ---------- Barra superior y header ---------- */
.topbar {
  background: var(--navy-2);
  color: #cfd6df;
  font-size: 0.84rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}
.topbar a {
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.2s;
}
.topbar a:hover {
  color: var(--gold);
}
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(20, 40, 63, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}
.logo img {
  height: 78px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  padding: 10px 16px;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav a:not(.btn):hover::after,
.nav a.on::after {
  transform: scaleX(1);
}
.nav .btn {
  margin-left: 12px;
  color: #fff;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font: 600 0.9rem var(--sans);
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font: 600 0.95rem var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(197, 164, 109, 0.35);
}
.btn-gold:hover {
  background: var(--gold-d);
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--blue);
}
.btn-line {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-line:hover {
  background: #fff;
  color: var(--navy);
}

/* ---------- Hero con imagen ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #e8ecf1;
  background-color: var(--navy-2);
  /* 1) capa de color  2) foto: assets/img/hero.jpg  3) degradado si no hay foto */
  background-image:
    linear-gradient(
      100deg,
      rgba(13, 28, 46, 0.96) 0%,
      rgba(20, 40, 63, 0.86) 45%,
      rgba(20, 40, 63, 0.35) 100%
    ),
    url("../assets/img/hero.jpg"), linear-gradient(135deg, #0d1c2e 0%, #14283f 55%, #1f4d82 100%);
  background-size: cover;
  background-position: center right;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 130px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  max-width: 16ch;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 54ch;
  color: #d6dee9;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
/* única animación de entrada del sitio */
.hero .container > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .container > *:nth-child(2) {
  animation-delay: 0.15s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--graphite);
  padding: 34px;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-l);
}
.panel h3 {
  margin-bottom: 0.8em;
}
.panel ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.panel li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
}
.panel li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold-d);
  border-bottom: 2px solid var(--gold-d);
  transform: rotate(-45deg);
}
.panel .btn {
  width: 100%;
  text-align: center;
}

/* ---------- Franja de confianza (bajo el hero) ---------- */
.strip {
  position: relative;
  z-index: 5;
  margin-top: -64px;
}
.strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  border-bottom: 3px solid var(--gold);
  padding: 0;
  overflow: hidden;
}
.strip .item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.35;
  color: var(--navy);
}
.strip .item:last-child {
  border-right: 0;
}
.strip .item svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--blue-l);
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
}

/* ---------- Secciones ---------- */
.section {
  padding: 88px 0;
}
.strip + .section {
  padding-top: 96px;
}
.section.alt {
  background: var(--ivory);
}
.head {
  max-width: 680px;
  margin-bottom: 48px;
}
.head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: 16px;
}
.head p {
  color: var(--muted);
  font-size: 1.05rem;
}
.grid {
  display: grid;
  gap: 28px;
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition:
    box-shadow 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-top-color: var(--gold);
  transform: translateY(-4px);
}
.card .ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.card .ic svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* imagen en secciones (Nosotros / bloques con foto) */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  position: relative;
  min-height: 340px;
  background: var(--navy);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Proceso ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  counter-reset: p;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 25px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 8px,
    transparent 8px 14px
  );
}
.step {
  counter-increment: p;
  padding: 0 14px;
  text-align: center;
  position: relative;
}
.step::before {
  content: counter(p);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  background: var(--navy);
  color: var(--gold);
  font: 600 1.15rem var(--serif);
  border-radius: 50%;
  border: 4px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold);
}
.step h3 {
  font-size: 1.02rem;
  font-family: var(--sans);
  font-weight: 700;
}
.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Por qué elegirnos ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.why div {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
  border-top: 3px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.why div:hover {
  background: var(--blue-l);
  border-top-color: var(--gold);
}
.why div:last-child {
  border-right: 0;
}
.why b {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.why p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Banda CTA ---------- */
.band {
  background: linear-gradient(100deg, #0d1c2e 0%, #14283f 50%, #1f5fa8 140%);
  color: #fff;
  padding: 72px 0;
}
.band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.band h2 {
  color: #fff;
  margin: 0;
  max-width: 24ch;
}

/* ---------- Cabecera de páginas internas ---------- */
.pagehero {
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, rgba(13, 28, 46, 0.96), rgba(20, 40, 63, 0.8)),
    url("../assets/img/hero.jpg"), linear-gradient(135deg, #0d1c2e 0%, #14283f 55%, #1f4d82 100%);
  background-size: cover;
  background-position: center right;
  color: #fff;
  padding: 80px 0;
  border-bottom: 4px solid var(--gold);
}
.pagehero h1 {
  color: #fff;
  margin-bottom: 0.3em;
}
.pagehero p {
  color: #d6dee9;
  max-width: 62ch;
  font-size: 1.1rem;
  margin: 0;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Créditos ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font: 600 0.9rem var(--sans);
  color: var(--navy);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.tab:hover {
  border-color: var(--gold);
}
.tab[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.credit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  border-left: 4px solid var(--gold);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.credit:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.credit h3 {
  margin-bottom: 0.3em;
  font-size: 1.12rem;
}
.credit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.credit small {
  display: inline-block;
  background: var(--blue-l);
  color: var(--blue);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.credit[hidden] {
  display: none;
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
}
form {
  display: grid;
  gap: 18px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
input,
select,
textarea {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid #cfc9bb;
  background: #fff;
  color: var(--graphite);
  border-radius: var(--radius);
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.2);
}
.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
#msg {
  display: none;
  padding: 14px 16px;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
}
.info {
  background: var(--ivory);
  padding: 36px;
  border-radius: var(--radius);
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow);
  align-self: start;
}
.info div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info div:last-child {
  border: 0;
}
.info b {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  color: #b9c3cf;
  padding: 64px 0 0;
  font-size: 0.94rem;
  border-top: 4px solid var(--gold);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font: 600 1rem var(--serif);
  margin: 0 0 14px;
}
.site-footer a {
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--gold);
}
.fmark {
  font: 700 2.2rem var(--serif);
  color: var(--gold);
  line-height: 1;
}
.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero .container {
    padding-top: 72px;
    padding-bottom: 110px;
  }
  .hero {
    background-position: 70% center;
  }
  .strip .container {
    grid-template-columns: 1fr 1fr;
  }
  .strip .item:nth-child(2) {
    border-right: 0;
  }
  .strip .item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .g3,
  .why {
    grid-template-columns: 1fr 1fr;
  }
  .why div {
    border-bottom: 1px solid var(--line);
  }
  .process {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .process::before {
    display: none;
  }
  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 66px 1fr;
    padding: 0;
  }
  .step::before {
    margin: 0;
  }
  .site-footer .cols {
    grid-template-columns: 1fr;
  }
  .menu-btn {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 28px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav .btn {
    margin: 8px 0 0;
    text-align: center;
  }
  .photo::after {
    display: none;
  }
}
@media (max-width: 600px) {
  .g2,
  .g3,
  .why,
  .row,
  .strip .container {
    grid-template-columns: 1fr;
  }
  .strip .item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .strip .item:last-child {
    border-bottom: 0;
  }
  .section {
    padding: 64px 0;
  }
  .logo img {
    height: 56px;
  }
  .topbar .r {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   v3 - IMÁGENES Y PROFUNDIDAD
   Fotos esperadas en assets/img/ (si falta alguna, se ve
   un degradado corporativo, nunca un hueco vacío):
   hero.jpg, empresarial.jpg, pyme.jpg, hipotecario.jpg,
   equipo.jpg, cta.jpg  (opcionales: creditos.jpg,
   nosotros.jpg, contacto.jpg para las cabeceras)
   ===================================================== */
:root {
  --ph: linear-gradient(135deg, #0d1c2e 0%, #14283f 55%, #1f4d82 100%);
  --ov: linear-gradient(100deg, rgba(13, 28, 46, 0.96), rgba(20, 40, 63, 0.8));
}

/* Tarjetas con foto */
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20, 40, 63, 0.07);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.pcard:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-6px);
}
.pimg {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: filter 0.3s;
}
.pcard .pimgwrap {
  position: relative;
  z-index: 1;
}
.pcard:hover .pimg {
  filter: brightness(1.06) saturate(1.08);
}
.pimgwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 28, 46, 0.75));
  pointer-events: none;
}
.pimg.emp {
  background-image: url("../assets/img/empresarial.jpg"), var(--ph);
}
.pimg.pyme {
  background-image: url("../assets/img/pyme.png"), var(--ph);
}
.pimg.hip {
  background-image: url("../assets/img/hipotecario.jpg"), var(--ph);
}
.pcard .ic {
  position: absolute;
  z-index: 2;
  left: 26px;
  top: calc(100% - 28px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 3px solid #fff;
}
.pcard .ic svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.pbody {
  padding: 42px 28px 30px;
}
.pbody p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Bloque foto + texto */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.photo-frame {
  position: relative;
  z-index: 0;
  padding: 0 18px 18px 0;
}
.photo-frame::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  height: 78%;
  border-radius: var(--radius);
  background: var(--gold);
  opacity: 0.9;
  z-index: -1;
}
.photo {
  min-height: 0;
  aspect-ratio: 4 / 4.4;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-l);
}
.photo::after {
  display: none;
}
.photo.equipo {
  background-image: url("../assets/img/equipo.jpg"), var(--ph);
}
.photo-badge {
  position: absolute;
  left: -24px;
  bottom: 44px;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 240px;
  font: 600 1.05rem/1.35 var(--serif);
  box-shadow: var(--shadow-l);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--navy);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-l);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* Fondos con textura para romper lo plano */
.section.alt {
  background:
    radial-gradient(circle at 1px 1px, rgba(20, 40, 63, 0.07) 1px, transparent 0)
      0 0 / 22px 22px,
    var(--ivory);
}
.band {
  background:
    linear-gradient(100deg, rgba(13, 28, 46, 0.93), rgba(20, 60, 105, 0.82)),
    url("../assets/img/cta.jpg"), var(--ph);
  background-size: cover;
  background-position: center;
}
.hero .panel {
  backdrop-filter: blur(6px);
}

/* Cabeceras de páginas internas: foto propia o la del hero */
body[data-page="creditos"] .pagehero {
  background-image: var(--ov), url("../assets/img/creditos.jpg"),
    url("../assets/img/hero.jpg"), var(--ph);
}
body[data-page="nosotros"] .pagehero {
  background-image: var(--ov), url("../assets/img/nosotros.jpg"),
    url("../assets/img/hero.jpg"), var(--ph);
}
body[data-page="contacto"] .pagehero {
  background-image: var(--ov), url("../assets/img/contacto.jpg"),
    url("../assets/img/hero.jpg"), var(--ph);
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .photo {
    aspect-ratio: 16 / 11;
  }
  .photo-badge {
    left: 12px;
  }
}

/* ---------- v4 · Por qué elegirnos (corporativo) ---------- */
.why2 {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--gold-d);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.why2-intro h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: 16px;
}
.why2-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.why2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why2-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20, 40, 63, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.why2-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.35s;
}
.why2-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
  border-color: var(--gold);
}
.why2-item:hover::before {
  transform: scaleY(1);
}
.why2-item .num {
  position: absolute;
  right: 22px;
  top: 14px;
  font: 600 2.6rem/1 var(--serif);
  color: var(--navy);
  opacity: 0.07;
}
.why2-item .ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.why2-item .ico svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why2-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.why2-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .why2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .why2-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- v4 · Créditos (tabla corporativa) ---------- */
.grid.g2 {
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 40, 63, 0.08);
  overflow: hidden;
}

.credit {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.5fr 150px;
  grid-template-areas: "name desc cat";
  align-items: center;
  column-gap: 32px;
  padding: 20px 28px;
  background: #fff;
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}
/* filas alternadas (también al filtrar) */
.credit:nth-child(odd of :not([hidden])) {
  background: #f4f6fa;
}
.credit:hover,
.credit:nth-child(odd of :not([hidden])):hover {
  background: var(--blue-l);
  border-left-color: var(--gold);
  box-shadow: none;
  transform: none;
}

.credit h3 {
  grid-area: name;
  margin: 0;
  font: 700 1rem/1.35 var(--sans);
  color: var(--navy);
}
.credit p {
  grid-area: desc;
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
}
.credit small {
  grid-area: cat;
  justify-self: end;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--gold-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .credit {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cat"
      "name"
      "desc";
    row-gap: 4px;
    padding: 18px 20px;
  }
  .credit small {
    justify-self: start;
    text-align: left;
  }
}

/* ---------- Créditos: celular (tarjetas) ---------- */
@media (max-width: 800px) {
  /* Fondo marfil para que las tarjetas resalten */
  body[data-page="creditos"] .section:first-of-type + .section,
  body[data-page="creditos"] main > .section {
    background: var(--ivory);
  }

  /* Filtros: cuadrícula de 2 columnas, "Todos" ocupa todo el ancho */
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    overflow: visible;
  }
  .tab {
    width: 100%;
    padding: 12px 10px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 2px 6px rgba(20, 40, 63, 0.06);
  }
  .tab[data-cat="todos"] {
    grid-column: 1 / -1;
  }

  /* Lista: cada crédito es una tarjeta */
  .grid.g2 {
    gap: 14px;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .credit,
  .credit:nth-child(odd of :not([hidden])) {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    box-shadow: 0 6px 16px rgba(20, 40, 63, 0.08);
    padding: 18px 20px 20px;
    row-gap: 4px;
  }
  .credit small {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
  }
  .credit h3 {
    font-size: 1.1rem;
  }
  .credit p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
  }
}

/* ---------- v4 · Contacto: WhatsApp + redes ---------- */
.wa-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px 42px;
  color: #fff;
  background: linear-gradient(100deg, #0d1c2e 0%, #14283f 60%, #1f4d82 140%);
  border-radius: var(--radius);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow-l);
}
.wa-ico {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.22);
}
.wa-txt h2 {
  color: #fff;
  margin: 0 0 0.3em;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.wa-txt p {
  margin: 0;
  color: #d6dee9;
  max-width: 52ch;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: #25d366;
  color: #0d1c2e;
  font: 700 1rem var(--sans);
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  transition:
    transform 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.btn-wa i {
  font-size: 1.35rem;
}
.btn-wa:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.contact2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.info2,
.social2 {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: 0 8px 22px rgba(20, 40, 63, 0.07);
}
.info2 h3,
.social2 h3 {
  margin-bottom: 0.5em;
}
.info2 div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info2 div:last-child {
  border-bottom: 0;
}
.info2 b {
  display: block;
  color: var(--gold-d);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.info2 span {
  color: var(--navy);
  font-weight: 600;
}

.social2 a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  transition: padding-left 0.2s;
}
.social2 a:last-child {
  border-bottom: 0;
}
.social2 a::after {
  content: "→";
  margin-left: auto;
  color: var(--gold-d);
  transition: transform 0.2s;
}
.social2 a:hover {
  padding-left: 6px;
}
.social2 a:hover::after {
  transform: translateX(4px);
}
.si {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
}
.si.fb {
  background: #1877f2;
}
.si.in {
  background: #0a66c2;
}
.si.ig {
  background: linear-gradient(
    45deg,
    #feda75 0%,
    #fa7e1e 25%,
    #d62976 50%,
    #962fbf 75%,
    #4f5bd5 100%
  );
}

@media (max-width: 900px) {
  .wa-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 34px 26px;
  }
  .contact2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dato en cabecera (discreto) ---------- */
.pagehero .hero-note {
  margin: 22px 0 0;
  padding-top: 18px;
  max-width: 56ch;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b9c6d6;
}
.pagehero .hero-note strong {
  color: #e3cfa3;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Contacto: dos botones de WhatsApp (v2) ---------- */
.wa-btns {
  display: grid;
  gap: 12px;
}
.wa-btns .btn-wa {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-width: 310px;
  padding: 12px 22px 12px 12px;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.wa-btns .btn-wa:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.36);
}
.wa-btns .btn-wa i {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.wa-lbl {
  display: grid;
  line-height: 1.3;
  text-align: left;
}
.wa-name {
  color: var(--gold-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wa-lbl b {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
}
.wa-btns .btn-wa::after {
  content: "→";
  margin-left: auto;
  padding-left: 12px;
  color: var(--gold-d);
  font-size: 1.25rem;
  transition: transform 0.25s;
}
.wa-btns .btn-wa:hover::after {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .wa-btns {
    width: 100%;
  }
  .wa-btns .btn-wa {
    min-width: 0;
  }
}