@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #172638;
  --navy-2: #20364b;
  --ink: #1b2a39;
  --muted: #617080;
  --gold: #c7a76c;
  --paper: #f5f6f7;
  --white: #fff;
  --line: #e1e5e9;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "DM Sans", Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: white; padding: 12px; }
.site-header { background: var(--navy); color: white; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 260px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 1px rgba(199,167,108,.6); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font: 700 12px Manrope, sans-serif; letter-spacing: .09em; }
.brand-copy small { color: #c6d0da; font-size: 9px; letter-spacing: .11em; }
nav { display: flex; align-items: center; gap: 25px; font-size: 13px; }
nav a { color: #e0e6eb; text-decoration: none; transition: color .2s; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
nav .nav-icons { display: flex; align-items: center; gap: 10px; }
nav .nav-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(199,167,108,.75); color: white; }
nav .nav-icon svg { width: 20px; height: 20px; }
nav .nav-icon[href*="wa.me"] { color: #25d366; border-color: rgba(37,211,102,.75); }
nav .nav-icon[href*="wa.me"]:hover, nav .nav-icon[href*="wa.me"]:focus-visible { color: #fff; background: #25d366; border-color: #25d366; }
nav .nav-icon:hover, nav .nav-icon:focus-visible { color: var(--gold); border-color: var(--gold); }
.hero { background: radial-gradient(ellipse at 80% 45%, #2a4055 0%, var(--navy) 56%); color: white; overflow: hidden; }
.hero-grid { min-height: 550px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-block: 64px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; }
h1 { max-width: 670px; margin-bottom: 24px; font-size: clamp(38px, 4.7vw, 60px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; }
h1 em { color: var(--gold); font-style: normal; }
.hero-lead { max-width: 580px; color: #d4dde5; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; gap: 15px; padding: 14px 18px; text-decoration: none; font-weight: 700; font-size: 13px; }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #d8bd8c; }
.text-link { color: #e1e8ee; text-decoration-color: var(--gold); text-underline-offset: 5px; font-size: 13px; }
.location { margin-top: 44px; color: #b9c6d1; font-size: 14px; }
.location span { color: var(--gold); font-size: 19px; margin-right: 7px; }
.hero-visual { position: relative; min-height: 350px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(199,167,108,.22); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 360px; height: 240px; }
.orbit-two { width: 420px; height: 290px; transform: rotate(28deg); border-color: rgba(255,255,255,.08); }
.digital-card { z-index: 1; width: min(100%, 350px); padding: 20px; background: linear-gradient(145deg, rgba(39,59,78,.97), rgba(19,34,49,.98)); border: 1px solid rgba(199,167,108,.45); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: .12em; color: #b9c7d3; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: auto; }
.card-code { color: var(--gold); }
.shield { width: 112px; margin: 25px auto 17px; color: #dbe2e9; }
.shield svg { display: block; width: 100%; }

.portrait-frame {
  width: 100%;
  height: 330px;
  margin: 24px auto 17px;
  overflow: hidden;
  border: 1px solid rgba(199,167,108,.45);
  background: #263b50;
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 40%;
  transform: scale(1.7);
  transform-origin: 64% 38%;
}
@media (max-width: 760px) {
  .portrait-frame { height: 300px; }
}
.signal-lines { display: flex; justify-content: center; align-items: end; gap: 4px; height: 28px; opacity: .65; }
.signal-lines i { display: block; width: 5px; background: var(--gold); height: 10px; }
.signal-lines i:nth-child(3n) { height: 22px; }
.signal-lines i:nth-child(4n) { height: 15px; }
.signal-lines i:nth-child(5n) { height: 26px; }
.card-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 20px; padding-top: 13px; }
.card-bottom span:last-child { color: var(--gold); }
.card-bottom .card-link { color: var(--gold); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s; }
.card-bottom .card-link::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.card-bottom .card-link:hover { color: #fff; }
.card-bottom .card-link:hover::after { transform: translateX(4px); }
.visual-caption { position: absolute; bottom: -2px; color: #a9b8c6; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-items { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 20px; }
.trust-items > div { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #465565; }
.mini-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d9c59f; color: #8b6d36; font-size: 10px; }
.section { padding-block: 100px; }
.section-heading { max-width: 660px; margin-bottom: 42px; }
.section-heading h2, .method-grid h2, .profile-copy h2, .contact-grid h2 { margin-bottom: 17px; font-size: clamp(29px, 3.3vw, 41px); line-height: 1.2; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); max-width: 620px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.service-card { position: relative; min-height: 270px; padding: 27px 23px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); border-color: #d4c19d; box-shadow: 0 15px 35px rgba(22,38,56,.07); }
.service-number { position: absolute; top: 22px; right: 22px; color: #a6afb8; font-size: 10px; letter-spacing: .12em; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e4d5b9; color: #9b7a42; font-size: 25px; margin-bottom: 28px; }
.service-card h3 { font-size: 16px; line-height: 1.4; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.disclaimer { margin: 25px 0 0; color: #77828d; font-size: 13px; }
.method-section { background: var(--paper); padding-block: 94px; }
.method-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.method-grid h2 { max-width: 430px; }
.method-intro { color: var(--muted); max-width: 420px; font-size: 14px; line-height: 1.9; }
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li { display: grid; grid-template-columns: 44px 1fr; gap: 19px; padding: 0 0 23px; margin-bottom: 23px; border-bottom: 1px solid #dfe4e8; }
.method-list li:last-child { margin-bottom: 0; }
.method-list li > span { color: #a17e43; font-size: 12px; font-weight: 700; padding-top: 3px; }
.method-list h3 { margin-bottom: 5px; font-size: 15px; }
.method-list p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.profile-section { padding-block: 95px; }
.profile-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 75px; align-items: center; max-width: 1000px; }
.profile-monogram { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: var(--gold); background: var(--navy); position: relative; overflow: hidden; }
.profile-monogram::before, .profile-monogram::after { content: ""; position: absolute; border: 1px solid rgba(199,167,108,.3); border-radius: 50%; width: 260px; height: 260px; }
.profile-monogram::after { width: 190px; height: 190px; }
.profile-monogram img, .profile-monogram small { z-index: 1; }
.profile-monogram img { width: 126px; height: 126px; object-fit: contain; }
.profile-monogram small { text-align: center; font-size: 9px; letter-spacing: .18em; line-height: 1.7; }
.profile-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.profile-copy .profile-note { margin-bottom: 5px; font-size: 14px !important; }
.profile-note strong { color: var(--ink); }
.credentials-section { background: #fff; }
.credentials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.credential-block { padding: 27px 25px; border: 1px solid var(--line); background: var(--paper); }
.credential-block h3 { font-size: 15px; margin-bottom: 14px; color: var(--ink); }
.credential-block ul { list-style: none; margin: 0; padding: 0; }
.credential-block li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px dashed #dfe4e8; }
.credential-block li:last-child { border-bottom: none; padding-bottom: 0; }
.credential-block li:first-child { padding-top: 0; }
.credential-block li strong { font-size: 15px; color: var(--ink); }
.credential-block li span { font-size: 13px; color: var(--muted); }
.credential-block .court-logos { display: flex; align-items: center; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed #dfe4e8; }
.credential-block .court-logos img { height: 84px; width: auto; max-width: 45%; object-fit: contain; mix-blend-mode: multiply; }
.contact-section { padding-block: 80px; background: var(--navy); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 75px; }
.contact-grid h2 { max-width: 470px; }
.contact-grid > div:first-child > p:last-child { color: #c5d0da; max-width: 430px; font-size: 14px; }
.contact-panel { border: 1px solid rgba(255,255,255,.17); padding: 25px 28px; }
.contact-row { display: grid; grid-template-columns: 135px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 15px; overflow-wrap: anywhere; }
.contact-label { color: #b5c1cc; }
.contact-row a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.privacy-note { margin: 20px 0 0; color: #aebdca; font-size: 12px; line-height: 1.7; }
.site-footer { background: #101c29; color: #aebbc7; font-size: 12px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s; }
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.footer-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 18px; gap: 16px; }
  nav { flex-wrap: wrap; gap: 13px 20px; }
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 20px; }
  .hero-visual { transform: scale(.9); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { grid-template-columns: 1fr; }
  .method-grid { gap: 45px; }
  .profile-grid, .contact-grid { gap: 40px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 34px, var(--max)); }
  .header-inner { min-height: auto; }
  .brand { min-width: 0; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 8px; }
  nav { gap: 10px 16px; font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 58px 40px; }
  h1 { font-size: clamp(36px, 11vw, 49px); }
  .hero-lead { font-size: 15px; }
  .hero-visual { min-height: 300px; transform: none; margin-top: 8px; }
  .digital-card { width: min(100%, 330px); }
  .orbit-one { width: 300px; height: 210px; }
  .orbit-two { width: 330px; height: 245px; }
  .trust-items { grid-template-columns: repeat(2, 1fr); padding-block: 18px; gap: 16px; }
  .trust-items > div { font-size: 13px; }
  .section { padding-block: 68px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .method-section { padding-block: 68px; }
  .method-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .profile-section { padding-block: 68px; }
  .profile-monogram { min-height: 190px; }
  .contact-section { padding-block: 65px; }
  .contact-panel { padding: 18px; }
  .contact-row { grid-template-columns: 1fr; gap: 3px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* Identidad visual y navegación responsive */
.brand-logo { display:block; width:48px; height:48px; object-fit:contain; flex:0 0 auto; }
.profile-monogram img { position:relative; z-index:1; display:block; width:min(52%,150px); height:auto; object-fit:contain; }
.mobile-nav { display:none; }
.desktop-nav { display:flex; }
@media (max-width:900px) {
  .header-inner { flex-direction:row; align-items:center; }
  .desktop-nav { display:none; }
  .mobile-nav { display:block; position:relative; margin-left:auto; }
  .mobile-nav summary { cursor:pointer; list-style:none; color:#fff; border:1px solid rgba(199,167,108,.75); padding:9px 12px; font-size:13px; white-space:nowrap; }
  .mobile-nav summary::-webkit-details-marker { display:none; }
  .mobile-nav summary span { color:var(--gold); margin-left:7px; }
  .mobile-nav nav { position:absolute; z-index:20; right:0; top:calc(100% + 8px); min-width:190px; padding:12px; display:flex; flex-direction:column; align-items:stretch; gap:0; background:#172638; border:1px solid rgba(199,167,108,.45); box-shadow:0 15px 35px rgba(0,0,0,.25); }
  .mobile-nav nav a { padding:10px 8px; }
  .mobile-nav nav .nav-icons { justify-content:center; margin-top:8px; }
}
@media (max-width:640px) {
  .container { width:calc(100% - 32px); }
  .header-inner { min-height:76px; gap:12px; }
  .brand { gap:10px; }
  .brand-logo { width:40px; height:40px; }
  .brand-copy strong { font-size:9px; letter-spacing:.04em; }
  .brand-copy small { font-size:7px; letter-spacing:.07em; }
  .hero-grid { min-height:0; }
  .hero-visual { width:100%; overflow:hidden; }
  .hero-actions { align-items:flex-start; flex-direction:column; gap:17px; }
  .button { min-height:46px; }
  .trust-items { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .trust-items > div { gap:8px; }
  .mini-icon { width:28px; height:28px; flex:0 0 auto; }
  .contact-row { overflow-wrap:anywhere; }
}


/* Presentación centrada en el profesional y sus matrículas */
.hero-copy { max-width: 660px; }
.hero-role { color: #fff; font-size: clamp(19px, 2vw, 24px); font-weight: 600; margin: -7px 0 9px; }
.hero-sublead { color: #c6d2dc; font-size: 14px; letter-spacing: .015em; margin-bottom: 23px; }
.hero-credentials { display:flex; flex-wrap:wrap; gap:12px; margin: 24px 0 28px; }
.hero-credentials > div { display:flex; flex-direction:column; gap:4px; min-width:205px; padding:12px 15px; border:1px solid rgba(199,167,108,.45); background:rgba(255,255,255,.035); }
.hero-credentials span { color:#c7a76c; font-size:9px; font-weight:700; letter-spacing:.12em; }
.hero-credentials strong { color:#f1f4f7; font-size:12px; font-weight:600; }
.hero-credentials small { color:#9aa7b4; font-size:10px; font-weight:600; letter-spacing:.08em; }
@media (max-width:640px) {
  .hero-credentials { display:grid; grid-template-columns:1fr; }
  .hero-credentials > div { min-width:0; }
  .hero-sublead { line-height:1.7; }
}
