/* Video fills the established responsive hero; the original logo remains subtle. */
#inicio.hero-forest .hero-video {object-position:35% 50%;pointer-events:none}
#inicio.hero-forest::before {transform:none;filter:none;border-radius:0;width:100%;height:100%;background:linear-gradient(180deg,#0003,#0007 50%,#0005)}
#inicio .hero-video-toggle {position:absolute;right:24px;bottom:22px;z-index:2;display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffff80;border-radius:50%;background:#0006;color:#fff;font:20px/1 Arial;cursor:pointer}
#inicio .hero-video-toggle[hidden] {display:none}
#inicio .hero-video-toggle:focus-visible {outline:3px solid white;outline-offset:4px}
@media(max-width:767px){#inicio.hero-forest .hero-video {object-position:center}#inicio .hero-video-toggle {right:18px;bottom:18px}}

/* The opening frame includes the navigation bar. */
html.corporate-home #inicio.hero-forest {margin-top:calc(-1 * var(--corporate-header-height,104px));min-height:100svh;padding-top:calc(var(--corporate-header-height,104px) + 48px);padding-bottom:64px}
html.corporate-home .site-header.video-over-hero {background:transparent!important;border-bottom-color:transparent;color:#fff}
html.corporate-home .site-header.video-over-hero .logo-surface {background:transparent}
html.corporate-home .site-header.video-over-hero :is(.main-nav a,.language-trigger,.theme-toggle,.menu-toggle) {color:#fff!important}
html.corporate-home .site-header.video-over-hero :is(.brand-wordmark,.brand-subline) {fill:#fff!important}
html.corporate-home .site-header.video-over-hero [data-tricios-t="original"] path {fill:#fff!important}
html.corporate-home .site-header.video-over-hero :is(a,button):focus-visible {outline-color:#fff}
html.corporate-home #inicio.hero-forest .quiet-link {background:#fff;color:#191b1d!important;border-color:#fff;box-shadow:0 4px 24px #0002}
html.corporate-home #inicio.hero-forest .quiet-link:hover {background:#eceeed;border-color:#eceeed}
@media(max-width:768px){
 html.corporate-home #inicio.hero-forest {margin-top:calc(-1 * var(--corporate-header-height,77px));padding-top:calc(var(--corporate-header-height,77px) + 36px);padding-bottom:60px}
 html.corporate-home .site-header.video-over-hero.menu-open {background:rgba(12,18,18,.94)!important}
}
/* Compact menu overlays the film without moving the hero or adding dividers. */
@media(max-width:768px){
 html.corporate-home .site-header.video-over-hero.menu-open {background:transparent!important}
 html.corporate-home .site-header.video-over-hero.menu-open .main-nav {
  position:absolute;top:100%;left:calc(50% - 50vw);width:100vw;
  margin:0;padding:8px 24px 20px;gap:2px;
  background:linear-gradient(180deg,rgba(14,22,22,.28),rgba(14,22,22,.12));
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:0;box-sizing:border-box;
 }
 html.corporate-home .site-header.video-over-hero.menu-open .main-nav a {
  border:0!important;padding:10px 16px;font-size:15px;line-height:1.5;text-align:center;
 }
 html.corporate-home .site-header.video-over-hero.menu-open .main-nav a:hover {background:rgba(255,255,255,.1);border-radius:8px}
}

/* A restrained final softening preserves the original video detail. */
#inicio.hero-forest .hero-video {filter:blur(var(--hero-end-blur,0px));transform:none;transition:filter .3s linear}
#inicio.hero-forest::before {background-color:rgba(0,0,0,var(--hero-end-shade,0));transition:background-color .3s linear}
@media(prefers-reduced-motion:reduce){#inicio.hero-forest .hero-video,#inicio.hero-forest::before {transition:none}}

/* Full-width header backing prevents exposed strips beside the page shell. */
html.corporate-home .site-header {background:transparent!important;border-bottom:0;isolation:isolate}
html.corporate-home .site-header::before {
 content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;
 background:var(--ivory);opacity:var(--video-header-opacity,1);z-index:-1;pointer-events:none;
}
html.corporate-home .site-header .logo-surface {background:transparent}
html.corporate-home .site-header :is(.main-nav a,.header-word,.menu-toggle) {transition:color .22s ease}
html.corporate-home .site-header :is(.brand-wordmark,.brand-subline),html.corporate-home .site-header .brand-symbol path {transition:fill .22s ease}
/* Keep a clean edge below the video. */
html.corporate-home #inicio.hero-forest::after {display:none!important}
@media(prefers-reduced-motion:reduce){html.corporate-home .site-header :is(.main-nav a,.header-word,.menu-toggle,.brand-wordmark,.brand-subline,.brand-symbol path){transition:none}}

@media(max-width:767px){#inicio.hero-forest .hero-video[data-original="true"]{object-position:23% 50%}}

html.corporate-home #inicio.hero-forest {border:0!important}
html.corporate-home #grupo {border-top:0}

/* A quieter, compact call to action on phones. */
@media(max-width:767px){
 html.corporate-home #inicio.hero-forest .quiet-link {
  min-height:44px;padding:10px 18px;gap:12px;font-size:15px;line-height:1.4;
  background:rgba(255,255,255,.16);color:#fff!important;border-color:rgba(255,255,255,.42);
  box-shadow:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
 }
 html.corporate-home #inicio.hero-forest .quiet-link:hover {background:rgba(255,255,255,.26);border-color:rgba(255,255,255,.6)}
 html.corporate-home #inicio.hero-forest .quiet-link .ui-arrow {width:18px;height:18px}
}

/* Fine static film grain and restrained edge shading at every screen size. */
#inicio.hero-forest .hero-film-effect {display:none;pointer-events:none}
@media(min-width:0px){
 #inicio.hero-forest .hero-film-effect {display:block;position:absolute;inset:0;z-index:0;overflow:hidden}
 #inicio.hero-forest .hero-film-effect::before,
 #inicio.hero-forest .hero-film-effect::after {content:"";position:absolute;inset:0;pointer-events:none}
 #inicio.hero-forest .hero-film-effect::before {background:radial-gradient(ellipse at 50% 44%,transparent 36%,rgba(0,0,0,.14) 70%,rgba(0,0,0,.40) 100%)}
 #inicio.hero-forest .hero-film-effect::after {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background-size:180px 180px;opacity:.19;mix-blend-mode:soft-light;
 }
}

/* The same white glass finish at every screen size. */
html.corporate-home #inicio.hero-forest .quiet-link {
 background:rgba(255,255,255,.16);color:#fff!important;border-color:rgba(255,255,255,.42);
 box-shadow:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
html.corporate-home #inicio.hero-forest .quiet-link:hover {background:rgba(255,255,255,.26);border-color:rgba(255,255,255,.6)}

/* Keep the approved phone framing; follow the full-width source only on tablets. */
@media(min-width:768px) and (max-width:1024px),(min-width:768px) and (hover:none) and (pointer:coarse){
 #inicio.hero-forest .hero-video[data-original]{object-position:var(--hero-frame-x,23%) 50%}
}
