/* ESTRADA V39 — ajustes de composición puntuales
   Desktop: elimina esquinas y alinea CTAs con Emergencias.
   Mobile: título con espacio, CTAs en dos columnas y dock de cinco celdas. */

/* Retirar las marcas decorativas en L, de ambos ángulos. */
body.cinematic-v13 .v13-frame-corner,
body.cinematic-v13 .v13-frame-corner.bottom {
 display:none!important;
 visibility:hidden!important;
}

/* Desktop: ancho común y altura equilibrada de CTAs y Emergencias. */
@media(min-width:781px){
 body.v8-home .v6-hero-copy .v6-hero-actions {
  display:flex!important;
  flex-wrap:nowrap!important;
  width:min(100%,520px)!important;
  max-width:520px!important;
  gap:12px!important;
 }
 body.v8-home .v6-hero-copy .v6-hero-actions>a {
  flex:1 1 0!important;
  min-width:0!important;
  min-height:53px!important;
  box-sizing:border-box!important;
  padding-inline:15px!important;
 }
 body.v8-home .v6-hero-copy .v17-emergency-menu {
  display:block!important;
  width:min(100%,520px)!important;
  max-width:520px!important;
  box-sizing:border-box!important;
  margin-top:11px!important;
 }
 body.v8-home .v6-hero-copy .v17-emergency-menu>summary {
  box-sizing:border-box!important;
  min-height:53px!important;
  padding:11px 15px!important;
  font-size:13px!important;
  line-height:1.35!important;
 }
}

/* Mobile: keep V38's complete original photograph and independent text. */
@media(max-width:780px){
 /* Text must have a real word-space when the original desktop BR is hidden. */
 body.v8-home .hero-home.v6-hero .v6-hero-copy h1 br {
  display:none!important;
 }
 body.v8-home .hero-home.v6-hero .v6-hero-copy h1 em::before {
  content:" "!important;
  white-space:pre!important;
 }
 body.v8-home .hero-home.v6-hero .v6-hero-copy h1 {
  font-size:clamp(24px,6.4vw,34px)!important;
  line-height:1.31!important;
  letter-spacing:-.035em!important;
  margin-bottom:15px!important;
  text-wrap:balance!important;
 }
 /* Compact heading without squeezing the body into unreadable lines. */
 body.v8-home .hero-home.v6-hero .v6-hero-copy {
  padding-top:clamp(19px,5.4vw,27px)!important;
  padding-bottom:25px!important;
 }
 body.v8-home .hero-home.v6-hero .v6-hero-eyebrow {
  margin-bottom:12px!important;
  max-width:none!important;
  font-size:clamp(9px,2.6vw,11px)!important;
  line-height:1.45!important;
 }
 body.v8-home .hero-home.v6-hero .v6-hero-copy>p {
  font-size:clamp(12px,3.4vw,14px)!important;
  line-height:1.62!important;
  margin-bottom:17px!important;
  text-align:left!important;
  text-align-last:left!important;
  word-spacing:normal!important;
 }
 /* Two equal, compact buttons immediately above Emergencias. */
 body.v8-home .hero-home.v6-hero .v6-hero-actions {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  width:100%!important;
  margin-bottom:11px!important;
 }
 body.v8-home .hero-home.v6-hero .v6-hero-actions>a {
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  min-height:49px!important;
  height:auto!important;
  padding:9px 8px!important;
  box-sizing:border-box!important;
  font-size:clamp(10px,2.85vw,12px)!important;
  line-height:1.3!important;
  text-align:center!important;
  white-space:normal!important;
  border-radius:7px!important;
 }
 body.v8-home .hero-home.v6-hero .v6-hero-actions>a span {
  flex:0 0 auto!important;
 }
 body.v8-home .hero-home.v6-hero .v17-emergency-menu {
  margin:0!important;
  max-width:100%!important;
  width:100%!important;
  border-radius:7px!important;
 }
 body.v8-home .hero-home.v6-hero .v17-emergency-menu>summary {
  min-height:49px!important;
  padding:10px 13px!important;
  font-size:clamp(11px,3.1vw,13px)!important;
  line-height:1.32!important;
 }
 /* Nav: 5 real destinations => 5 equal columns (not legacy 7ths). */
 body.cinematic-v13 .v6-dock {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;
  justify-content:stretch!important;
  align-items:stretch!important;
  position:fixed!important;
  left:0!important;
  right:0!important;
  top:auto!important;
  bottom:0!important;
  width:100%!important;
  height:calc(74px + env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;
  padding:0 0 env(safe-area-inset-bottom,0px)!important;
  margin:0!important;
  transform:none!important;
  border-radius:0!important;
  overflow:hidden!important;
  z-index:100!important;
  box-sizing:border-box!important;
  background:rgba(9,25,40,.98)!important;
 }
 body.cinematic-v13 .v6-dock .v6-dock-link,
 body.cinematic-v13 .v6-dock .v6-dock-link:last-child {
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:74px!important;
  min-height:0!important;
  margin:0!important;
  padding:7px 2px!important;
  box-sizing:border-box!important;
  gap:5px!important;
  border:0!important;
  border-right:1px solid rgba(175,186,198,.16)!important;
  border-radius:0!important;
  text-align:center!important;
  transform:none!important;
 }
 body.cinematic-v13 .v6-dock .v6-dock-link:last-child {
  border-right:0!important;
 }
 body.cinematic-v13 .v6-dock .v6-dock-link>svg {
  display:block!important;
  position:static!important;
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  margin:0 auto!important;
  padding:0!important;
  align-self:center!important;
  transform:none!important;
 }
 body.cinematic-v13 .v6-dock .v6-dock-label {
  display:block!important;
  position:static!important;
  width:100%!important;
  max-width:100%!important;
  min-height:22px!important;
  margin:0 auto!important;
  padding:0 2px!important;
  font:500 clamp(9px,2.45vw,11px)/1.15 'DM Sans',Arial,sans-serif!important;
  letter-spacing:0!important;
  white-space:normal!important;
  word-break:normal!important;
  text-align:center!important;
  text-align-last:center!important;
  align-self:center!important;
  opacity:1!important;
  transform:none!important;
  background:transparent!important;
  border:0!important;
 }
 body.cinematic-v13 .v6-dock .v6-dock-link.is-current::before,
 body.cinematic-v13 .v6-dock .v6-dock-link[aria-current="page"]::before {
  left:20%!important;
  right:20%!important;
  top:0!important;
  width:60%!important;
  height:3px!important;
  transform:none!important;
  opacity:1!important;
 }
 /* Keep guiding action above dock, outside touch area. */
 .v17-assistant-trigger {
  bottom:calc(83px + env(safe-area-inset-bottom,0px))!important;
  right:11px!important;
  font-size:11px!important;
  padding:8px 11px!important;
 }
 body.v8-home {
  padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;
 }
}
@media(max-width:350px){
 body.v8-home .hero-home.v6-hero .v6-hero-actions>a {font-size:10px!important;padding-inline:5px!important;}
 body.cinematic-v13 .v6-dock .v6-dock-label {font-size:9px!important;}
}
