/* Soluciones Legales Perú | Sitio estático, sin frameworks ni licencias */
:root {
  --navy: #142c4e;
  --navy-dark: #0c203a;
  --blue: #2e5da1;
  --sky: #208dc6;
  --pale-blue: #eaf3fb;
  --ink: #182b44;
  --copy: #63748d;
  --soft: #f6f8fb;
  --line: #e2eaf1;
  --white: #fff;
  --container: 1190px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.container { width: min(calc(100% - 80px), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; background: white; padding: 10px 18px; }
.skip-link:focus { top: 8px; }

/* Header inspirado en una navegación editorial clásica */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.brand img { width: 65px; height: 56px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.brand-copy strong { color: var(--navy); text-transform: uppercase; font: 700 15px/1.1 Georgia, serif; letter-spacing: .055em; }
.brand-copy small { color: #3183b6; font-size: 9px; text-transform: uppercase; font-weight: 650; letter-spacing: .11em; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 30px); }
.main-nav > a:not(.nav-cta) { white-space: nowrap; font-size: 12.5px; font-weight: 600; letter-spacing: .015em; transition: color .2s; }
.main-nav > a:hover:not(.nav-cta) { color: var(--sky); }
.nav-cta { white-space: nowrap; display: inline-flex; gap: 17px; align-items: center; justify-content: center; background: var(--navy); color: white; padding: 17px 21px; font-size: 12px; font-weight: 650; transition: background .2s, transform .2s; }
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-cta span { font-size: 16px; }
.header-rule { border-bottom: 2px solid var(--navy); }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 12px; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: var(--navy); }

/* Portada */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(45px, 6vw, 90px); padding-block: 93px 110px; }
.hero-copy { max-width: 620px; animation: rise .65s ease both; }
.eyebrow, .section-label { color: var(--sky); letter-spacing: .19em; font-size: 12px; font-weight: 750; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; }
.eyebrow-line { display: block; width: 32px; height: 2px; background: var(--sky); }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(42px, 4.2vw, 65px); line-height: 1.12; letter-spacing: -.035em; margin: 25px 0 25px; color: var(--navy-dark); font-weight: 700; }
h1 em { font-style: normal; color: var(--blue); }
.hero-copy > p { color: var(--copy); font-size: 17px; line-height: 1.9; max-width: 505px; }
.hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; padding: 16px 23px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(15,48,88,.12); }
.btn span, .text-link span { font-size: 18px; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover,.btn-dark:hover { background: var(--blue); }
.btn-dark { background: var(--navy); color: white; margin-top: 19px; }
.text-link { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 13px; color: var(--blue); padding-block: 8px; border-bottom: 1px solid rgba(46,93,161,.32); transition: color .2s; }
.text-link:hover { color: var(--sky); }
.hero-footnote { display: flex; align-items: center; gap: 10px; margin-top: 47px; color: #7990a7; font-size: 12px; letter-spacing: .02em; }
.dot { width: 7px; height: 7px; background: #3fb4c8; border-radius: 50%; }
/* Fotografía profesional como imagen principal de Inicio */
.hero-portrait { position: relative; isolation: isolate; height: 590px; margin: 0; overflow: hidden; background: #d3dbe2; box-shadow: 21px 21px 0 #eaf1f7; animation: rise .7s .1s ease both; }
.hero-portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.portrait-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,28,48,.29) 0%, rgba(9,28,48,0) 23%, rgba(10,30,53,0) 62%, rgba(10,28,48,.84) 100%); }
.portrait-tag { position: absolute; top: 26px; left: 28px; color: white; font-size: 10px; font-weight: 700; letter-spacing: .20em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.portrait-caption { position: absolute; left: 32px; right: 28px; bottom: 36px; display: grid; gap: 9px; color: white; }
.portrait-caption span { color: #b5e2fa; font-size: 10px; letter-spacing: .2em; font-weight: 750; }
.portrait-caption strong { font: 400 clamp(22px, 2.3vw, 31px)/1.2 Georgia, serif; text-wrap: balance; }
.portrait-corner { position: absolute; width: 34px; height: 34px; border-style: solid; border-color: rgba(255,255,255,.78); }
.portrait-corner--top { right: 13px; top: 13px; border-width: 1px 1px 0 0; }
.portrait-corner--bottom { left: 13px; bottom: 13px; border-width: 0 0 1px 1px; }

.principles-bar { background: #f5f8fb; border-block: 1px solid #e7eef5; }
.principles-inner { min-height: 97px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.principles-inner > span { font: 700 13px "Segoe UI", sans-serif; letter-spacing: .025em; color: var(--navy); display: flex; gap: 16px; align-items: center; justify-content: center; }
.principles-inner > span + span { border-left: 1px solid #d5e2ee; }
.principle-mark { color: var(--sky); font: 700 12px Georgia,serif; }

/* Sección Nosotros: dos columnas como la referencia */
.section { padding-block: 118px; }
.about-grid { display: grid; grid-template-columns: 1fr .98fr; align-items: center; gap: 83px; }
.section-label { margin-bottom: 22px; }
h2 { color: var(--navy-dark); font-size: clamp(34px, 3.1vw, 48px); line-height: 1.2; letter-spacing: -.026em; }
.about-copy h2 { margin-bottom: 25px; }
.about-copy > p:not(.section-label) { color: var(--copy); font-size: 15px; line-height: 1.95; margin-bottom: 19px; }
.about-copy strong { color: var(--navy); }
.about-media { position: relative; }
.about-media-card { min-height: 440px; display: grid; place-items: center; padding: 42px; background: #f2f6fa; overflow: hidden; position: relative; }
.about-media-card::before { content:""; position:absolute; width: 380px; height: 380px; border: 1px solid #e0eaf3; border-radius: 50%; }
.about-media-card::after { content:""; position:absolute; width: 480px; height: 480px; border: 1px solid #e0eaf3; border-radius: 50%; }
.about-media-card img { width: min(100%,450px); height: auto; position: relative; z-index: 1; filter: drop-shadow(0 12px 10px rgba(17,53,89,.06)); }
.about-media-lines { position: absolute; width: 38px; height: 38px; left: 25px; top: 24px; border-left: 2px solid #9fc1dd; border-top: 2px solid #9fc1dd; }
.about-media-label { background: var(--navy); color: white; font-size: 12px; font-weight: 650; letter-spacing: .025em; width: fit-content; padding: 17px 22px; position: relative; margin-left: auto; margin-top: -22px; margin-right: -19px; display: flex; align-items: center; gap: 30px; }
.about-media-label span { font-size: 17px; }

.services { background: #f7f9fb; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 75px; margin-bottom: 45px; }
.section-heading h2 { max-width: 650px; margin: 0; }
.section-heading > p { max-width: 300px; font-size: 14px; color: var(--copy); line-height: 1.9; margin: 0 0 5px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.service-card { position: relative; min-height: 353px; background: white; border: 1px solid var(--line); padding: 28px 25px 26px; display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); border-color: #b9d1e8; box-shadow: 0 15px 35px rgba(15,53,89,.07); }
.service-num { color: #8fa7bb; letter-spacing: .1em; font-size: 10px; font-weight: 700; }
.service-icon { width: 55px; height: 55px; margin-top: 28px; margin-bottom: 23px; color: var(--blue); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.service-card p { font-size: 13px; line-height: 1.8; color: var(--copy); flex: 1; }
.service-card a { width: fit-content; margin-top: 18px; display: inline-flex; gap: 12px; align-items: center; font-size: 12px; color: var(--blue); font-weight: 750; }
.service-card a span { font-size: 16px; }

.approach-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 110px; }
.approach h2 { max-width: 490px; }
.approach-intro { color: var(--copy); font-size: 15px; line-height: 1.95; margin: 24px 0 26px; max-width: 450px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 26px 0; }
.step > span { font: 700 16px Georgia, serif; color: var(--sky); }
.step h3 { font-size: 22px; margin-bottom: 7px; }
.step p { font-size: 13px; line-height: 1.8; color: var(--copy); max-width: 375px; margin: 0; }

.contact-section { padding-block: 84px; background: linear-gradient(120deg,#122b4a 0%, #245992 80%, #2877a9 100%); color: white; }
.contact-inner { display: grid; grid-template-columns: 1fr minmax(280px, 385px); gap: 70px; align-items: start; }
.section-label--light { color: #a7d6f1; }
.contact-inner h2 { color: white; font-size: clamp(34px, 3.3vw, 49px); margin-bottom: 15px; }
.contact-inner p:not(.section-label) { color: #d0dfea; font-size: 15px; line-height: 1.8; max-width: 580px; margin-bottom: 0; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: #eaf4fc; }
.contact-phone { font-size: 14px; letter-spacing: .05em; color: white; text-align: center; }
.contact-social { margin-top: 15px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; }
.contact-social-title { color: #b6d7f0 !important; font-size: 11px !important; letter-spacing: .14em; font-weight: 750; margin-bottom: 13px !important; }
.social-link { display: flex; align-items: center; gap: 13px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); padding-block: 13px; transition: background .2s, padding .2s; }
.social-link:hover { background: rgba(255,255,255,.07); padding-left: 7px; }
.social-link svg { flex-shrink: 0; width: 22px; height: 22px; }
.social-link > span:nth-of-type(1) { display: flex; flex-direction: column; gap: 3px; }
.social-link strong { font: 650 13px/1.2 "Segoe UI",sans-serif; }
.social-link small { font: 400 11px/1.2 "Segoe UI",sans-serif; color: #c9ddec; }
.social-arrow { margin-left: auto; color: #c9ddec; font-size: 18px; }

.site-footer { background: #fbfcfe; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 50px; padding-block: 51px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 62px; height: 56px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; gap: 5px; }
.footer-brand strong { font: 700 15px Georgia, serif; text-transform: uppercase; color: var(--navy); }
.footer-brand span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--sky); }
.footer-main > p { color: var(--copy); font-size: 13px; line-height: 1.9; margin: 0; }
.footer-main nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.footer-main nav a { font-size: 12px; font-weight: 600; color: var(--ink); }
.footer-main nav a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 23px; color: #8292a4; font-size: 11px; }
.whatsapp-float { position: fixed; bottom: 25px; right: 27px; display: grid; place-items: center; width: 61px; height: 61px; z-index: 35; border-radius: 50%; color: white; background: #22ca66; box-shadow: 0 8px 24px rgba(3,83,44,.22); border: 3px solid white; transition: transform .2s, background .2s; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); background: #19b95b; }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes rise { from {opacity:0; transform: translateY(12px);} to {opacity:1;transform:translateY(0);} }

@media (max-width: 1150px) {
  .container { width: min(calc(100% - 56px), var(--container)); }
  .header-inner { min-height: 88px; }
  .brand-copy strong { font-size: 13px; }
  .main-nav { gap: 14px; }
  .main-nav > a:not(.nav-cta) { font-size: 11px; }
  .nav-cta { padding: 13px 15px; }
  .about-grid { gap: 50px; }
  .approach-grid { gap: 65px; }
  .service-card { padding: 25px 19px; }
  .service-card h3 { font-size: 19px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; margin-left: auto; z-index: 5; }
  .main-nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: 13px 28px 23px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 13px 19px rgba(12,32,58,.08); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.nav-cta) { font-size: 14px; padding: 14px 4px; }
  .nav-cta { margin-top: 12px; align-self: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding-block: 70px 90px; }
  .hero-copy { max-width: 760px; }
  .hero-portrait { height: 550px; width: min(100%, 500px); margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 630px; }
  .about-media-card { min-height: 370px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .section-heading { align-items: start; gap: 35px; }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-actions { align-items: stretch; max-width: 440px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main nav { grid-column: span 2; grid-template-columns: repeat(4,auto); justify-content: start; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 75px; }
  .brand { gap: 2px; }
  .brand img { width: 48px; height: 49px; }
  .brand-copy strong { font-size: 12px; letter-spacing: .018em; }
  .brand-copy small { font-size: 8px; letter-spacing: .02em; }
  .hero-grid { padding-block: 63px 70px; gap: 38px; }
  .hero-copy h1 { font-size: clamp(35px, 9vw, 46px); }
  .hero-copy > p { font-size: 15px; line-height: 1.85; }
  .hero-buttons { align-items: stretch; gap: 15px; }
  .hero-footnote { margin-top: 28px; }
  .hero-portrait { height: 465px; box-shadow: 10px 11px 0 var(--pale-blue); }
  .portrait-caption { left: 24px; right: 24px; bottom: 29px; }
  .portrait-caption strong { font-size: 23px; }
  .principles-inner { grid-template-columns: 1fr; padding-block: 16px; }
  .principles-inner > span { justify-content: flex-start; padding: 12px 6px; }
  .principles-inner > span + span { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding-block: 73px; }
  h2 { font-size: 34px; }
  .about-media-card { min-height: 315px; padding: 22px; }
  .about-media-label { margin-right: 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 275px; }
  .service-icon { margin-top: 18px; margin-bottom: 15px; }
  .contact-section { padding-block: 65px; }
  .contact-inner { gap: 37px; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; padding-block: 38px; }
  .footer-main nav { grid-column: auto; grid-template-columns: repeat(2,auto); }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Actualización solicitada: logotipo ORIGINAL en portada, sin filtros ni capas. */
.hero-logo-panel { background: #fff; }
.hero-logo-panel > img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* Nueva página Nuestro Equipo: se completará cuando se reciban las fotografías. */
.team-page-hero { padding: 92px 0 90px; }
.team-page-hero .team-intro { max-width: 740px; margin: 0 auto 42px; text-align: center; }
.team-page-hero .team-intro h1 { margin-block: 20px 22px; }
.team-page-hero .team-intro p:not(.section-label) { color: var(--copy); font-size: 16px; line-height: 1.85; }
.team-photo-placeholder { width: 100%; min-height: 400px; background: #f5f8fb; border: 1px dashed #b2cde2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; text-align: center; padding: 45px 26px; }
.team-photo-placeholder svg { width: 55px; height: 55px; color: #8aaccc; }
.team-photo-placeholder strong { font: 700 22px Georgia,serif; color: var(--navy); }
.team-photo-placeholder span { color: var(--copy); font-size: 13px; }
.team-members { background: var(--soft); padding-block: 90px 115px; }
.team-members .team-heading { max-width: 680px; margin-bottom: 35px; }
.team-members .team-heading p:not(.section-label) { color: var(--copy); line-height: 1.8; }
.team-pending { background: white; border: 1px solid var(--line); display: flex; align-items: center; gap: 20px; padding: 30px; }
.team-pending svg { color: var(--sky); width: 34px; height: 34px; flex: none; }
.team-pending p { color: var(--copy); line-height: 1.75; font-size: 14px; margin: 0; }
.main-nav > a[aria-current="page"] { color: var(--sky); }
@media (max-width: 1080px) {
  .menu-toggle { display: block; margin-left: auto; z-index: 5; }
  .main-nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: 13px 28px 23px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 13px 19px rgba(12,32,58,.08); display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.nav-cta) { font-size: 14px; padding: 14px 4px; }
  .nav-cta { margin-top: 12px; align-self: flex-start; }
}
@media (max-width: 600px) {
  .team-page-hero { padding-block: 62px 65px; }
  .team-page-hero .team-intro h1 { font-size: 38px; }
  .team-photo-placeholder { min-height: 270px; }
  .team-members { padding-block: 70px; }
  .team-pending { padding: 22px; }
}

/* Perfiles del equipo: integración editorial con la identidad existente */
.team-page-hero { padding: 86px 0 84px; }
.team-page-hero .team-intro { max-width: 810px; margin-bottom: 43px; }
.team-page-hero .team-intro p:not(.section-label) { max-width: 760px; margin-inline: auto; }
.team-group-media { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; background: #17171b; box-shadow: 19px 19px 0 var(--pale-blue); }
.team-group-media img { display: block; width: 100%; height: auto; }
.team-group-media figcaption { display: flex; align-items: center; justify-content: center; gap: 12px; background: #112b4b; padding: 17px 24px; color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .03em; text-align: center; }
.team-group-media figcaption span { color: #7bb3dd; }
.team-members { padding-block: 98px 115px; }
.team-members .team-heading { max-width: 790px; margin-bottom: 65px; }
.team-members .team-heading h2 { margin-bottom: 18px; }
.team-members .team-heading p:not(.section-label) { max-width: 700px; }
.member-list { display: grid; gap: 80px; }
.member-profile { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(35px, 5.2vw, 82px); padding-bottom: 80px; border-bottom: 1px solid #dbe5ee; }
.member-profile:last-child { border-bottom: 0; padding-bottom: 0; }
.member-profile--reverse { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); }
.member-profile--reverse .member-photo { order: 2; }
.member-profile--reverse .member-content { order: 1; }
.member-photo { margin: 0; background: #212026; overflow: hidden; box-shadow: 15px 15px 0 #e8f0f8; aspect-ratio: 4 / 4.75; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; display: block; }
.member-content { padding: 18px 0; }
.member-index { color: var(--sky); font-size: 11px; font-weight: 750; letter-spacing: .14em; margin-bottom: 16px; }
.member-index span { color: #9cb2c6; padding: 0 7px; }
.member-content h3 { color: var(--navy-dark); font-size: clamp(32px, 3.1vw, 46px); line-height: 1.17; letter-spacing: -.03em; margin-bottom: 11px; }
.member-role { font-size: 14px; letter-spacing: .035em; font-weight: 750; color: var(--blue); padding-bottom: 21px; border-bottom: 2px solid #dfecf6; margin-bottom: 24px; }
.member-biography p { color: var(--copy); font-size: 14px; line-height: 1.92; margin-bottom: 17px; }
.member-biography p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
 .member-profile, .member-profile--reverse { grid-template-columns: .86fr 1.14fr; gap: 34px; }
 .member-photo { box-shadow: 9px 9px 0 #e8f0f8; }
 .member-biography p { font-size: 13px; line-height: 1.8; }
 .member-profile--reverse .member-photo { order: 0; }
 .member-profile--reverse .member-content { order: 0; }
}
@media (max-width: 680px) {
 .team-page-hero { padding: 60px 0 65px; }
 .team-page-hero .team-intro { margin-bottom: 30px; }
 .team-page-hero .team-intro p:not(.section-label) { font-size: 14px; }
 .team-group-media { box-shadow: 9px 9px 0 var(--pale-blue); }
 .team-group-media figcaption { flex-wrap: wrap; font-size: 11px; padding: 14px 11px; }
 .team-members { padding-block: 68px 86px; }
 .team-members .team-heading { margin-bottom: 42px; }
 .member-list { gap: 53px; }
 .member-profile, .member-profile--reverse { grid-template-columns: 1fr; gap: 26px; padding-bottom: 48px; }
 .member-photo, .member-profile--reverse .member-photo { order: 0; width: min(100%, 460px); margin: 0 auto; aspect-ratio: 4/4.7; }
 .member-content, .member-profile--reverse .member-content { order: 1; padding: 0; }
 .member-content h3 { font-size: 33px; }
 .member-role { margin-bottom: 18px; padding-bottom: 18px; }
 .member-biography p { font-size: 14px; line-height: 1.85; }
}

/* Revisión solicitada: identidad más elegante con azul marino y portada de emergencia */
body {
  background:
    radial-gradient(circle at top right, rgba(31, 92, 149, 0.08), transparent 28%),
    linear-gradient(180deg, #f3f6fa 0%, #eef3f8 100%);
}
.site-header {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(6, 18, 36, 0.22);
}
.brand-copy strong,
.main-nav > a:not(.nav-cta),
.footer-main nav a,
.footer-brand strong {
  color: #fff;
}
.brand-copy small,
.footer-brand span {
  color: #9fd7ff;
}
.main-nav > a:hover:not(.nav-cta),
.footer-main nav a:hover,
.main-nav > a[aria-current="page"] {
  color: #8fd2ff;
}
.brand img,
.footer-brand img {
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.25));
}
.menu-toggle span {
  background: #fff;
}
.header-rule {
  border-bottom-color: rgba(145, 198, 239, 0.45);
}
@media (max-width: 1080px) {
  .main-nav,
  .main-nav.is-open {
    background: #0d2138;
    border-bottom-color: rgba(255,255,255,.08);
  }
}
@media (max-width: 900px) {
  .main-nav,
  .main-nav.is-open {
    background: #0d2138;
    border-bottom-color: rgba(255,255,255,.08);
  }
}

.hero-emergency {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(67, 140, 212, 0.26), transparent 34%),
    radial-gradient(circle at bottom right, rgba(20, 110, 180, 0.28), transparent 22%),
    linear-gradient(135deg, #081728 0%, #102845 48%, #173b66 100%);
}
.hero-emergency::before,
.hero-emergency::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.hero-emergency::before {
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.08);
  top: -180px;
  right: -140px;
}
.hero-emergency::after {
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.07);
  left: -90px;
  bottom: -100px;
}
.hero-emergency .hero-grid {
  padding-block: 88px 98px;
}
.hero-emergency .hero-copy {
  max-width: 640px;
}
.hero-emergency .eyebrow,
.hero-emergency .hero-copy > p,
.hero-emergency .hero-footnote,
.hero-emergency h1,
.hero-emergency h1 em {
  color: #fff;
}
.hero-emergency .eyebrow {
  color: #bfe4ff;
}
.hero-emergency .eyebrow-line {
  background: #6ec7ff;
}
.hero-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(180, 224, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero-emergency h1 {
  color: #fff;
  margin: 22px 0 22px;
}
.hero-emergency h1 em {
  color: #8fd6ff;
}
.hero-emergency .hero-copy > p {
  max-width: 560px;
  color: #d6e5f4;
}
.hero-buttons-emergency {
  gap: 16px;
  align-items: stretch;
}
.btn-large {
  min-height: 62px;
  padding: 18px 28px;
  font-size: 14px;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(4, 15, 27, 0.2);
}
.btn-outline-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(190, 226, 255, 0.35);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
}
.hero-footnote-light {
  color: #bdd2e6;
}
.hero-footnote-light .dot {
  background: #6ec7ff;
}
.hero-portrait-hex {
  position: relative;
  margin: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: grid;
  justify-items: center;
  gap: 20px;
}
.hero-portrait-shell {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.15;
  clip-path: polygon(25% 4%, 75% 4%, 100% 28%, 100% 72%, 75% 96%, 25% 96%, 0% 72%, 0% 28%);
  background: linear-gradient(180deg, rgba(134, 198, 255, 0.5), rgba(19, 59, 102, 0.9));
  padding: 10px;
  box-shadow: 0 24px 45px rgba(2, 12, 23, 0.34);
}
.hero-portrait-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  clip-path: inherit;
  background: #1a1f29;
}
.hero-portrait-caption {
  width: min(100%, 360px);
  text-align: center;
  padding: 16px 18px 0;
  color: #fff;
}
.hero-portrait-caption span {
  display: block;
  color: #9fd7ff;
  font-size: 11px;
  letter-spacing: .19em;
  font-weight: 800;
  margin-bottom: 10px;
}
.hero-portrait-caption strong {
  display: block;
  font: 700 clamp(25px, 3.2vw, 34px)/1.2 Georgia, serif;
}
.principles-bar {
  background: #0f2239;
  border-block: 1px solid rgba(255,255,255,.06);
}
.principles-inner > span {
  color: #edf4fb;
}
.principles-inner > span + span {
  border-left-color: rgba(255,255,255,.12);
}
.principle-mark {
  color: #7fd2ff;
}
.section,
.site-footer {
  background: transparent;
}
.about-grid,
.section-heading,
.approach-grid,
.contact-inner,
.footer-main,
.team-members .team-heading,
.member-list,
.team-page-hero .team-intro,
.team-group-media {
  position: relative;
  z-index: 1;
}
.about .container,
.approach .container,
.services .container,
.team-members .container,
.team-page-hero .container {
  position: relative;
}
.about .container::before,
.approach .container::before,
.services .container::before,
.team-members .container::before,
.team-page-hero .container::before {
  content: "";
  position: absolute;
  inset: -28px -24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(214, 226, 236, 0.9);
  box-shadow: 0 18px 38px rgba(17, 44, 75, 0.06);
  z-index: 0;
}
.about .container::before,
.approach .container::before,
.services .container::before,
.team-members .container::before {
  border-radius: 24px;
}
.team-page-hero .container::before {
  border-radius: 24px;
}
.services {
  background: transparent;
}
.service-card,
.about-media-card,
.member-photo,
.team-group-media,
.contact-actions .btn-white {
  border-radius: 18px;
}
.about-media-card,
.service-card,
.member-photo,
.team-group-media {
  box-shadow: 0 18px 36px rgba(17, 44, 75, 0.08);
}
.contact-section {
  background: linear-gradient(120deg,#081728 0%, #102845 48%, #173b66 100%);
}
.site-footer {
  background: #0d1e33;
}
.footer-main > p,
.footer-bottom {
  color: #b8cadc;
}
.footer-bottom {
  border-top-color: rgba(255,255,255,.09);
}

@media (max-width: 900px) {
  .hero-emergency .hero-grid {
    gap: 40px;
    padding-block: 65px 78px;
  }
  .hero-portrait-shell {
    width: min(100%, 430px);
  }
  .about .container::before,
  .approach .container::before,
  .services .container::before,
  .team-members .container::before,
  .team-page-hero .container::before {
    inset: -20px -16px;
  }
}
@media (max-width: 600px) {
  .hero-alert-badge {
    font-size: 11px;
    letter-spacing: .12em;
    padding: 10px 14px;
  }
  .hero-buttons-emergency {
    flex-direction: column;
  }
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  .hero-portrait-shell {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1.18;
  }
  .hero-portrait-caption {
    padding-top: 8px;
  }
  .hero-portrait-caption strong {
    font-size: 26px;
  }
  .about .container::before,
  .approach .container::before,
  .services .container::before,
  .team-members .container::before,
  .team-page-hero .container::before {
    inset: -10px -8px;
    border-radius: 18px;
  }
}

/* Corrección de legibilidad: la tarjeta decorativa queda detrás de los textos. */
.about .container, .approach .container, .services .container, .team-members .container, .team-page-hero .container { isolation: isolate; }
.about .container::before, .approach .container::before, .services .container::before, .team-members .container::before, .team-page-hero .container::before { z-index: -1; }

/* Isotipo restaurado con transparencia limpia: nitidez en encabezado oscuro. */
.site-header .brand img { filter: none; image-rendering: auto; }

/* PORTADA INSTITUCIONAL + BLOQUE DE EMERGENCIAS: NOVIEMBRE 2026 */
/* La web inicia con la presentación del estudio; emergencias es una segunda sección. */
.hero-institutional {
  background: radial-gradient(circle at 93% 12%, rgba(58, 134, 204, .08), transparent 33%), linear-gradient(140deg, #fff 0%, #f5f9fd 70%, #edf4fa 100%);
}
.hero-institutional .hero-grid { padding-block: 76px 74px; }
.hero-institutional .hero-copy h1 { color: #10233d; }
.hero-institutional .hero-copy h1 em { color: #315fa7; }
.hero-institutional .hero-portrait-caption { color: #102845; }
.hero-institutional .hero-portrait-caption span { color: #297fb6; }
.hero-institutional .hero-portrait-shell { filter: drop-shadow(0 22px 38px rgba(13, 42, 74, .18)); }

.emergency-contact {
  position: relative;
  padding: 49px 0;
  background: linear-gradient(120deg, #081727 0%, #102b4a 54%, #173f6a 100%);
  border-top: 2px solid rgba(115, 184, 235, .32);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  overflow: hidden;
}
.emergency-contact:before { content:""; position:absolute; right:-70px; top:-170px; width:410px; height:410px; border-radius:50%; border:1px solid rgba(170,216,251,.11); pointer-events:none; }
.emergency-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); align-items: center; gap: 55px; position: relative; z-index: 1; }
.emergency-overline { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; line-height: 1.4; font-weight: 760; letter-spacing: .13em; color: #9dd4ff; }
.emergency-status { width: 9px; height: 9px; border-radius:50%; background:#65c6fd; box-shadow: 0 0 0 5px rgba(101,198,253,.13); flex-shrink:0; }
.emergency-copy h2 { font-size: clamp(28px, 3.1vw, 43px); margin: 16px 0 12px; color:white; line-height:1.13; }
.emergency-copy h2 span { color: #8fd3ff; }
.emergency-copy p { font-size: 14px; line-height: 1.75; color:#d5e4f1; margin:0; max-width: 620px; }
.emergency-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items:center; }
.emergency-actions a { min-height: 66px; border-radius: 9px; padding: 13px 14px; gap: 12px; justify-content:center; text-align:center; font-size: 13px; white-space:normal; line-height:1.35; }
.emergency-actions a svg { flex:0 0 24px; width:24px; height:24px; }
.emergency-call { background: #fff; color: #132c48; }
.emergency-call:hover { background: #e6f3ff; }
.emergency-whatsapp { background: #20b960; color:#fff; }
.emergency-whatsapp:hover { background: #169b50; }
.emergency-phone { grid-column:1/-1; text-align:center; letter-spacing:.10em; font-size:12px; font-weight:700; color:#d6e8f6; margin-top:3px; }
/* Keep introductory presentation readable on mobiles while keeping portrait on the right on desktop. */
@media (max-width: 1000px) {
 .emergency-inner { grid-template-columns: 1fr; gap: 24px; }
 .emergency-actions { max-width: 580px; }
}
@media (max-width: 600px) {
 .hero-institutional .hero-grid { padding-block: 52px 61px; }
 .hero-institutional .hero-portrait-caption { padding-top: 0; }
 .emergency-contact { padding: 40px 0; }
 .emergency-actions { grid-template-columns: 1fr; }
 .emergency-actions a { min-height: 60px; }
}


/* Ajustes finales: azul marino institucional + tipografía de alto contraste.
   El diseño, la estructura y el contenido permanecen sin cambios. */
body {
  color: #edf5fc;
  /* Azul marino cercano a la versión original, algo más tenue y homogéneo. */
  background-color: #132a41;
  background-image:
    radial-gradient(circle at 5% 6%, rgba(63, 143, 207, .15), transparent 29%),
    radial-gradient(circle at 96% 41%, rgba(52, 119, 181, .13), transparent 32%),
    radial-gradient(circle at 0% 88%, rgba(40, 105, 158, .09), transparent 36%),
    linear-gradient(165deg, #10253a 0%, #18344e 47%, #10243a 100%);
}
.hero-institutional {
  background:
    radial-gradient(circle at 80% 0%, rgba(62, 138, 206, .21), transparent 39%),
    linear-gradient(128deg, #091b30 0%, #142f4e 66%, #102943 100%);
  border-bottom: 1px solid rgba(188, 223, 250, .11);
}
.hero-institutional .hero-copy h1 { color: #f7faff; }
.hero-institutional .hero-copy h1 em { color: #91ceff; }
.hero-institutional .hero-copy > p { color: #cfdeed; }
.hero-institutional .eyebrow { color: #a2d9fe; }
.hero-institutional .eyebrow-line { background: #76c8ff; }
.hero-institutional .text-link { color: #a5dbff; border-color: rgba(177, 223, 250, .48); }
.hero-institutional .text-link:hover { color: #fff; }
.hero-institutional .hero-footnote { color: #a9c7df; }
.hero-institutional .btn-primary { background: #2d6ea7; border-radius: 4px; }
.hero-institutional .btn-primary:hover { background: #3c88c1; }
.hero-institutional .hero-portrait-hex { gap: 0; }
.hero-institutional .hero-portrait-shell {
  filter: drop-shadow(0 20px 35px rgba(2, 9, 19, .36));
}
/* Secciones sobre superficies de azul marino, no sobre blanco. */
.about .container::before,
.approach .container::before,
.services .container::before,
.team-members .container::before,
.team-page-hero .container::before {
  background: linear-gradient(145deg, rgba(27, 55, 85, .97), rgba(14, 34, 57, .97));
  border-color: rgba(141, 190, 229, .17);
  box-shadow: 0 20px 50px rgba(0, 9, 21, .18);
}
.about .section-label,
.services .section-label,
.approach .section-label,
.team-members .section-label,
.team-page-hero .section-label { color: #80ccff; }
.about-copy h2,
.section-heading h2,
.approach h2,
.team-page-hero .team-intro h1,
.team-members .team-heading h2,
.member-content h3 { color: #f7fbff; }
.team-page-hero .team-intro h1 em { color: #9cd6ff; }
.about-copy > p:not(.section-label),
.section-heading > p,
.approach-intro,
.step p,
.team-page-hero .team-intro p:not(.section-label),
.team-members .team-heading p:not(.section-label),
.member-biography p { color: #c9d8e8; }
.about-copy strong { color: #fff; }
.about-media-card { background: #f2f6fa; }
.about-media-label { background: #123451; }
.services, .team-members { background: transparent; }
.service-card {
  background: linear-gradient(155deg, #234564 0%, #183452 100%);
  border-color: rgba(148, 190, 228, .22);
  box-shadow: 0 15px 35px rgba(0, 10, 20, .12);
}
.service-card:hover { border-color: #75b3e1; box-shadow: 0 18px 34px rgba(0, 8, 20, .22); }
.service-card h3,
.step h3 { color: #f7fbff; }
.service-card p { color: #c9d8e8; }
.service-card a { color: #8ed1fc; }
.service-icon, .service-num, .step > span { color: #88cdfb; }
.steps { border-top-color: rgba(186, 215, 240, .18); }
.step { border-bottom-color: rgba(186, 215, 240, .18); }
.approach .text-link { color: #94d5ff; border-bottom-color: rgba(180, 219, 245, .43); }
.member-profile { border-bottom-color: rgba(175, 211, 240, .18); }
.member-index, .member-role { color: #8fd2ff; }
.member-role { border-bottom-color: rgba(166, 203, 234, .24); }
.team-group-media figcaption { background: #0e233d; }
.member-photo { box-shadow: 12px 12px 0 #204768; }
/* La portada muestra solamente la foto del abogado, sin nombre ni cargo debajo. */
.hero-portrait-caption { display: none; }

@media (max-width: 600px) {
  .hero-institutional .hero-grid { padding-block: 48px 58px; }
  .member-photo { box-shadow: 8px 8px 0 #204768; }
}
