/* ESTRADA ABOGADOS V13 — Cinematic editorial layer.
   The V12 text, actual signage photo, legal claims and bookings logic remain unchanged. */
:root{--cine-night:#061728;--cine-blue:#102c49;--cine-gilt:#d7ba86;--cine-curve:cubic-bezier(.18,1,.32,1)}
@view-transition{navigation:auto}
::view-transition-old(root){animation:v13PageOut .32s ease-in both}
::view-transition-new(root){animation:v13PageIn .64s var(--cine-curve) both}
@keyframes v13PageOut{to{opacity:.25;transform:translateY(-6px)}}
@keyframes v13PageIn{from{opacity:.28;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}
/* An editorial progress line, only on standalone scrollable pages. */
.v13-progress{position:fixed;z-index:67;top:0;left:0;right:var(--v6-space,94px);height:2px;background:linear-gradient(90deg,#b49c77,#f2e6d0);pointer-events:none;transform:scaleX(0);transform-origin:left center;will-change:transform}
body.v8-home .v13-progress{display:none}
/* Photography: keep the original photo completely sharp; animation uses transforms, NEVER blur/filter. */
body.v8-home.cinematic-v13 .v8-scene{transform-origin:center center;animation:v13CameraDrift 23s ease-in-out 1.65s infinite alternate;will-change:transform}
body.v8-home.cinematic-v13 .v8-scene img{filter:none!important;opacity:1!important;image-rendering:auto;transform:none!important;animation:none!important;backface-visibility:hidden}
@keyframes v13CameraDrift{0%{transform:scale(1.002) translate3d(0,0,0)}100%{transform:scale(1.048) translate3d(-.45%,.30%,0)}}
body.v8-home.cinematic-v13 .v6-hero:after{background:linear-gradient(90deg,rgba(1,11,22,.79) 0%,rgba(1,11,22,.63) 23%,rgba(1,11,22,.30) 43%,rgba(1,11,22,.02) 66%),linear-gradient(0deg,rgba(0,7,14,.52) 0%,transparent 18%)!important}
.v13-reveal-curtain{position:absolute;inset:0;z-index:2;background:#061625;transform:translateX(0);pointer-events:none;animation:v13Curtain 1.35s .12s var(--cine-curve) both}
@keyframes v13Curtain{0%{transform:translateX(0)}100%{transform:translateX(-102%)}}
body.v8-home .v6-hero-copy{isolation:isolate}
body.v8-home.cinematic-v13 .v6-hero-copy>*{animation:v13TextRise 1.05s var(--cine-curve) both}
body.v8-home.cinematic-v13 .v6-hero-eyebrow{animation-delay:.36s}
body.v8-home.cinematic-v13 .v6-hero h1{animation-delay:.50s}
body.v8-home.cinematic-v13 .v6-hero-copy>p{animation-delay:.70s}
body.v8-home.cinematic-v13 .v6-hero-actions{animation-delay:.91s}
@keyframes v13TextRise{0%{opacity:0;translate:0 29px;clip-path:inset(0 0 100% 0)}60%{opacity:1}100%{opacity:1;translate:0 0;clip-path:inset(0 0 0 0)}}
body.v8-home.cinematic-v13 .v6-hero h1{font-weight:400;text-shadow:0 4px 26px rgba(0,0,0,.38);text-wrap:balance}
body.v8-home.cinematic-v13 .v6-hero h1 em{color:#dfc59c}
body.v8-home.cinematic-v13 .v6-hero-eyebrow{position:relative;align-items:center;display:flex;gap:13px}
body.v8-home.cinematic-v13 .v6-hero-eyebrow::before{content:'';display:block;width:38px;height:1px;background:#d8b681;flex:none}
body.v8-home.cinematic-v13 .v6-hero-actions a{position:relative;overflow:hidden;transition:transform .5s var(--cine-curve),background .3s ease,border-color .3s ease,box-shadow .4s ease}
body.v8-home.cinematic-v13 .v6-hero-actions a:hover{transform:translateY(-4px);box-shadow:0 15px 33px rgba(0,0,0,.21)}
body.v8-home.cinematic-v13 .v6-hero-actions a span{transition:translate .4s var(--cine-curve)}
body.v8-home.cinematic-v13 .v6-hero-actions a:hover span{translate:4px -4px}
body.v8-home.cinematic-v13 .v6-hero-bottom{animation:v13BottomIn .9s 1s ease-out both}
@keyframes v13BottomIn{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
/* Small cinematic framing markers, intentionally not covering the office plaque. */
.v13-frame-corner{position:absolute;z-index:3;top:clamp(105px,13.5vh,148px);left:clamp(24px,3.2vw,54px);width:12px;height:12px;border-left:1px solid rgba(218,191,151,.56);border-top:1px solid rgba(218,191,151,.56);pointer-events:none;animation:v13BottomIn 1.3s 1.2s both}
.v13-frame-corner.bottom{top:auto;bottom:clamp(104px,13vh,156px);left:auto;right:clamp(24px,3.2vw,54px);border:0;border-right:1px solid rgba(218,191,151,.56);border-bottom:1px solid rgba(218,191,151,.56)}
/* Nav: agency-grade interactions, while preserving explicit page destinations. */
body.cinematic-v13 .v6-dock{background:linear-gradient(180deg,#121e2a 0%,#0c1b2c 48%,#0c1824 100%);border-left:1px solid rgba(213,190,149,.3)}
body.cinematic-v13 .v6-dock-link{transition:background .35s ease,color .35s ease,transform .5s var(--cine-curve);position:relative}
body.cinematic-v13 .v6-dock-link::before{content:'';position:absolute;left:0;top:25%;height:50%;width:2px;background:var(--cine-gilt);opacity:0;transform:scaleY(.25);transform-origin:center;transition:opacity .4s,transform .5s var(--cine-curve)}
body.cinematic-v13 .v6-dock-link:hover::before,body.cinematic-v13 .v6-dock-link[aria-current="page"]::before{opacity:1;transform:scaleY(1)}
body.cinematic-v13 .v6-dock-link:hover svg{transform:translateY(-3px)}
body.cinematic-v13 .v6-dock-link svg{transition:transform .4s var(--cine-curve)}
body.cinematic-v13 .site-header .brand{transition:opacity .3s ease,translate .5s var(--cine-curve)}
body.cinematic-v13 .site-header .brand:hover{translate:0 -2px}
/* Standalone internal page hero: editorial photography and staggered type. */
body.cinematic-v13.v6-internal .internal-hero{position:relative;overflow:hidden;isolation:isolate;background-color:#081b30;background-image:linear-gradient(90deg,rgba(3,13,27,.94) 0%,rgba(4,24,44,.78) 42%,rgba(5,27,48,.42) 72%,rgba(4,20,37,.3) 100%),url('https://static.wixstatic.com/media/32e6e9_6de2f23104384126986b95304aaf0900~mv2.webp')!important;background-position:center 48%!important;background-size:cover!important}
body.cinematic-v13.v6-internal .internal-hero::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(0deg,rgba(4,15,27,.52),transparent 37%),linear-gradient(90deg,rgba(11,39,65,.24),transparent 78%)}
body.cinematic-v13.v6-internal .internal-hero>.container-wide{position:relative;z-index:1}
body.cinematic-v13.v6-internal .internal-hero .overline{display:flex;align-items:center;gap:13px;animation:v13TextRise .85s .12s var(--cine-curve) both}
body.cinematic-v13.v6-internal .internal-hero .overline::before{content:'';height:1px;width:34px;flex-shrink:0;background:#d6b583}
body.cinematic-v13.v6-internal .internal-hero h1{animation:v13TextRise 1.05s .2s var(--cine-curve) both;text-shadow:0 10px 34px rgba(0,0,0,.23)}
body.cinematic-v13.v6-internal .internal-hero p{animation:v13TextRise 1.03s .38s var(--cine-curve) both;color:#e7e5e1}
/* Scroll reveal, applied only after JS starts observing a component. */
body.cinematic-v13.v13-observer-on [data-v13-reveal]:not(.v13-in-view){opacity:0;translate:0 28px}
body.cinematic-v13 [data-v13-reveal]{transition:opacity .9s var(--cine-curve),translate 1s var(--cine-curve)}
body.cinematic-v13 [data-v13-reveal].v13-in-view{opacity:1;translate:0 0}
body.cinematic-v13 .service-row{transition:background .4s ease,border-color .3s ease,box-shadow .45s ease,translate .6s var(--cine-curve),opacity .85s var(--cine-curve)}
body.cinematic-v13 .service-row:hover{background:linear-gradient(90deg,rgba(218,201,169,.14),rgba(226,219,205,.04) 73%);border-color:#b5a181}
body.cinematic-v13 .service-row:hover h2{color:#87683f}
body.cinematic-v13 .service-row h2{transition:color .3s ease}
body.cinematic-v13 .v12-book-link,body.cinematic-v13 .v12-service-cta,body.cinematic-v13 .editorial-link{transition:background .3s ease,color .3s ease,translate .35s var(--cine-curve),border-color .3s ease}
body.cinematic-v13 .v12-book-link:hover,body.cinematic-v13 .v12-service-cta:hover,body.cinematic-v13 .editorial-link:hover{translate:4px 0}
body.cinematic-v13 .team-card-img img,body.cinematic-v13 .profile-photo img{transition:transform 1.1s var(--cine-curve),filter .5s ease}
body.cinematic-v13 .team-card:hover .team-card-img img{transform:scale(1.045)}
body.cinematic-v13 .search-overlay{background:rgba(7,20,35,.985)}
body.cinematic-v13 .search-overlay.is-open .search-panel{animation:v13SearchOpen .46s var(--cine-curve) both}
@keyframes v13SearchOpen{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
/* The calendar is live API-driven; animations should never hide selectable slots or alter dates. */
body.cinematic-v13.v9-booking-page .v10-calendar,body.cinematic-v13.v9-booking-page .v9-appointment-section{isolation:isolate}
body.cinematic-v13.v9-booking-page .v9-appointment-card,body.cinematic-v13.v9-booking-page .v10-slot{transition:transform .24s var(--cine-curve),border-color .25s ease,box-shadow .25s ease,background .25s ease}
body.cinematic-v13.v9-booking-page .v10-slot:hover{transform:translateY(-2px)}
/* Tablet/mobile navigation has the same functionality, with faster and calmer motion. */
@media(max-width:780px){
  .v13-progress{right:0;height:2px}
  .v13-frame-corner{display:none}
  body.v8-home.cinematic-v13 .v8-scene{animation:none!important;transform:none!important;will-change:auto}
  body.v8-home.cinematic-v13 .v8-scene img{transform:none!important;animation:none!important;will-change:auto}
  body.v8-home.cinematic-v13 .v6-hero:after{background:linear-gradient(0deg,rgba(1,9,19,.96) 0%,rgba(2,12,23,.90) 27%,rgba(3,15,26,.39) 58%,rgba(4,17,29,.03) 79%),linear-gradient(180deg,rgba(5,16,28,.55),transparent 24%)!important}
  body.v8-home.cinematic-v13 .v6-hero-eyebrow::before{width:18px}
  .v13-reveal-curtain{animation-duration:.8s}
  body.cinematic-v13 .v6-dock-link::before{height:2px;width:44%;left:28%;top:0;transform:scaleX(.1);transform-origin:center}
  body.cinematic-v13 .v6-dock-link:hover::before,body.cinematic-v13 .v6-dock-link[aria-current="page"]::before{transform:scaleX(1)}
  body.cinematic-v13.v6-internal .internal-hero{background-position:65% 45%!important;background-image:linear-gradient(90deg,rgba(3,13,27,.88),rgba(3,13,27,.67)),url('https://static.wixstatic.com/media/32e6e9_8a6cbd7a0d784745b6a3b7c50a0dd254~mv2.webp')!important}
}
@media(max-width:430px){body.v8-home.cinematic-v13 .v6-hero-eyebrow{gap:7px;letter-spacing:.07em}}
@media(prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
  body.v8-home.cinematic-v13 .v8-scene{animation:none!important;transform:none!important;will-change:auto}
  body.v8-home.cinematic-v13 .v8-scene img{animation:none!important;transform:none!important;will-change:auto}
  .v13-reveal-curtain,.v13-frame-corner{display:none!important}
  body.v8-home.cinematic-v13 .v6-hero-copy>*,body.cinematic-v13.v6-internal .internal-hero .overline,body.cinematic-v13.v6-internal .internal-hero h1,body.cinematic-v13.v6-internal .internal-hero p{animation:none!important;opacity:1!important;translate:0!important;clip-path:none!important}
  body.cinematic-v13.v13-observer-on [data-v13-reveal]:not(.v13-in-view){opacity:1!important;translate:0!important}
}


/* ESTRADA ABOGADOS V14 — urgent visual overlap polish (all changes are additive). */
/* The booking CTA in header was redundantly floating on top of the real-looking
   engraved wall plaque. Booking stays prominent in the hero and permanent nav. */
body.cinematic-v13 .site-header .v6-whatsapp-top{display:none!important}
body.cinematic-v13 .site-header{isolation:isolate}
body.cinematic-v13 .site-header .brand{flex:0 1 auto;min-width:0;max-width:calc(100% - 54px)}
body.cinematic-v13 .site-header .brand-words{min-width:0}
body.cinematic-v13 .site-header .header-right{flex:0 0 auto;gap:10px;z-index:1}
body.cinematic-v13 .site-header .search-toggle{flex:0 0 auto;width:43px;height:43px;justify-content:center;border:1px solid rgba(228,217,197,.45);border-radius:50%;background:rgba(7,18,29,.35)}
/* Respect the wall sign; keep text and chrome in two genuinely separate zones. */
body.v8-home.cinematic-v13 .v6-hero-copy{max-width:min(570px,47%)}
body.v8-home.cinematic-v13 .v6-hero-eyebrow{max-width:100%;line-height:1.55;text-wrap:pretty}
body.v8-home.cinematic-v13 .v6-hero-actions{max-width:100%}
body.v8-home.cinematic-v13 .v6-hero-actions a{min-width:0}
body.v8-home.cinematic-v13 .v6-hero-bottom{padding-left:clamp(24px,4.7vw,75px)}
/* On shorter laptop screens and horizontally held phones, the baseline V13
   centered the long headline in the brand. Anchor it above the information bar. */
@media (min-width:781px) and (max-height:790px){
 body.v8-home.cinematic-v13 .site-header{height:clamp(69px,11vh,88px)!important;padding-top:0;padding-bottom:0}
 body.v8-home.cinematic-v13 .site-header .brand-symbol{height:clamp(40px,7vh,50px);width:clamp(40px,7vh,50px)}
 body.v8-home.cinematic-v13 .site-header .brand-words strong{font-size:clamp(19px,2.6vh,25px)}
 body.v8-home.cinematic-v13 .site-header .brand-words small{font-size:clamp(8px,1.35vh,11px)}
 body.v8-home.cinematic-v13 .v6-hero-copy{top:auto!important;bottom:clamp(88px,12.5vh,104px)!important;transform:none!important;width:min(555px,49vw);max-width:min(555px,49vw)}
 body.v8-home.cinematic-v13 .v6-hero h1{font-size:clamp(36px,7.15vh,58px)!important;line-height:1.03}
 body.v8-home.cinematic-v13 .v6-hero-eyebrow{font-size:clamp(9px,1.55vh,11px);letter-spacing:.13em;margin-bottom:clamp(6px,1.5vh,13px)}
 body.v8-home.cinematic-v13 .v6-hero-copy p{font-size:clamp(11px,1.7vh,14px);line-height:1.43;margin:clamp(10px,2.3vh,17px) 0!important;max-width:490px}
 body.v8-home.cinematic-v13 .v6-hero-actions a{font-size:clamp(10px,1.55vh,12px);min-height:clamp(40px,6.5vh,48px);padding:0 12px}
 body.v8-home.cinematic-v13 .v6-hero-bottom{min-height:clamp(55px,10vh,72px);padding-block:8px}
 body.cinematic-v13 .v6-dock{top:50%;transform:translateY(-50%)}
 body.cinematic-v13 .v6-dock-link{height:clamp(56px,11vh,84px)}
 body.cinematic-v13 .v6-dock-link svg{width:clamp(20px,3.5vh,26px);height:clamp(20px,3.5vh,26px)}
 body.cinematic-v13 .v6-dock-label{font-size:clamp(8px,1.35vh,10px)}
}
/* Landscape phones that report tablet/desktop CSS width need the same bottom
   navigation as portrait phones, otherwise the six-item right rail covers the photo. */
@media (orientation:landscape) and (pointer:coarse) and (min-width:781px) and (max-height:650px){
 :root{--v7-rail:0px}
 body.v7{padding-right:0!important}
 body.v7 .site-header,body.v7 .site-header.scrolled{right:0!important;padding-left:clamp(18px,3.6vw,40px);padding-right:clamp(18px,3.6vw,40px)}
 body.cinematic-v13 .v6-dock{position:fixed;left:0;right:0;top:auto!important;bottom:0;transform:none!important;width:100%;height:calc(64px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:row;align-items:stretch;border-radius:0;border:0;border-top:1px solid #9aa4aa45;z-index:65;overflow:hidden}
 body.cinematic-v13 .v6-dock-link{width:16.66667%;min-width:0;height:64px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:5px 2px;border-bottom:0;border-right:1px solid #bfc1be24}
 body.cinematic-v13 .v6-dock-link svg{width:20px;height:20px}
 body.cinematic-v13 .v6-dock-label{font-size:9px;line-height:1.05}
 body.cinematic-v13 .v6-dock-link::before{width:50%;height:2px;top:0;left:25%;transform:scaleX(.3)}
 body.cinematic-v13 .v6-dock-link:is(:hover,[aria-current="page"])::before{transform:scaleX(1)}
 body.v8-home main#contenido{height:calc(100svh - 64px)!important}
 body.v8-home .v6-hero{height:calc(100svh - 64px)!important}
 body.v8-home .v6-hero-copy{bottom:clamp(58px,14vh,86px)!important;width:min(560px,55vw);max-width:min(560px,55vw)}
 body.v8-home .v6-hero-bottom{min-height:54px;padding-right:25px;grid-template-columns:1fr 1fr}
 body.v8-home .v7-info:nth-child(3){display:none}
 body.v8-home .v7-concept-notice{right:11px}
 body.cinematic-v13 .v13-progress{right:0}
 body.cinematic-v13.v6-internal{padding-bottom:64px!important}
}
@media (max-width:780px){
 body.cinematic-v13 .site-header .search-toggle{width:38px;height:38px}
 body.v8-home.cinematic-v13 .v6-hero-copy{max-width:none}
 body.cinematic-v13 .v6-dock{transform:none}
}
/* Extra-small landscape screens still show both actions and keep the brand safe. */
@media (orientation:landscape) and (max-height:470px) and (min-width:781px){
 body.v8-home.cinematic-v13 .site-header{height:55px!important}
 body.v8-home.cinematic-v13 .v6-hero-copy{bottom:62px!important}
 body.v8-home.cinematic-v13 .v6-hero-eyebrow{font-size:8px;margin-bottom:3px}
 body.v8-home.cinematic-v13 .v6-hero h1{font-size:clamp(27px,7.3vh,34px)!important}
 body.v8-home.cinematic-v13 .v6-hero-copy p{font-size:10px;line-height:1.25;margin:6px 0!important}
 body.v8-home.cinematic-v13 .v6-hero-actions a{min-height:34px;font-size:10px}
}
