
/* PRODENVASES - Pulido visual final 2026
   Archivo de sobreescrituras: no sustituye los estilos principales. */

/* Ritmo general: menos espacio vertical sin perder aire */
@media (min-width: 981px){
  .section{padding-top:68px;padding-bottom:68px}
  .section-head{margin-bottom:28px}
}

/* Inicio - Nuestra historia: 20-25% más compacta */
.home-history-section{padding-top:58px!important;padding-bottom:60px!important}
.home-history-shell{gap:38px!important;align-items:center!important}
.home-history-media{min-height:460px!important;border-radius:22px!important}
.home-history-badge{left:24px!important;right:24px!important;bottom:22px!important}
.home-history-badge strong{font-size:22px!important}
.home-history-content h2{font-size:clamp(32px,3.5vw,46px)!important;margin:10px 0 12px!important}
.home-history-content>.lead{margin-bottom:18px!important;font-size:15.5px!important;line-height:1.6!important}
.home-history-visual-timeline{gap:10px!important;margin:16px 0 20px!important}
.home-history-visual-point{grid-template-columns:96px 1fr!important;border-radius:15px!important}
.home-history-point-media{min-height:100px!important}
.home-history-point-copy{padding:12px 13px!important}
.home-history-point-copy .home-history-year{height:34px!important;width:66px!important;font-size:12px!important;margin-bottom:5px!important}
.home-history-point-copy strong{font-size:14px!important}
.home-history-point-copy p{font-size:11.5px!important;line-height:1.4!important;margin-top:4px!important}
.home-history-content .btn{min-height:44px!important;padding:11px 19px!important;font-size:14px!important;border-radius:999px!important}

/* Quiénes Somos - bloque de experiencia más proporcionado */
.about-story-exact{padding:62px 0 70px!important}
.about-story-exact-shell{max-width:1120px!important;min-height:500px!important;border-radius:27px!important}
.about-story-exact-media{min-height:500px!important}
.about-story-exact-caption{left:23px!important;right:78px!important;bottom:22px!important}
.about-story-exact-caption span{padding:6px 10px!important;margin-bottom:8px!important;font-size:9px!important}
.about-story-exact-caption strong{max-width:380px!important;font-size:22px!important}
.about-story-exact-panel{padding:30px 32px 28px 27px!important}
.about-story-exact-kicker{margin-bottom:10px!important;font-size:10px!important;letter-spacing:2px!important}
.about-story-exact-kicker i{width:25px!important}
.about-story-exact-panel h2{margin-bottom:14px!important;font-size:clamp(33px,3.4vw,46px)!important;line-height:.99!important;letter-spacing:-1.3px!important}
.about-story-exact-intro{margin-bottom:14px!important;font-size:13.5px!important;line-height:1.58!important}
.about-story-exact-points{margin:0 0 18px!important}
.about-story-exact-point{grid-template-columns:44px 1fr!important;gap:12px!important;padding:9px 0!important}
.about-story-exact-point>span{width:36px!important;height:36px!important;border-radius:11px!important;font-size:10px!important}
.about-story-exact-point strong{font-size:14px!important;margin-bottom:2px!important}
.about-story-exact-point p{font-size:11.5px!important;line-height:1.4!important}
.about-story-exact-btn{min-height:42px!important;padding:10px 18px!important;font-size:13px!important}

/* Biblioteca de documentos - compacta en Sostenibilidad, Calidad y Ética */
.section-theme-sostenibilidad .doc-file-card.doc-file-card-brand,
.section-theme-calidad .doc-file-card.doc-file-card-brand,
.section-theme-etica-gobierno .doc-file-card.doc-file-card-brand{
  grid-template-columns:128px minmax(0,1fr) 190px!important;
  min-height:148px!important;
  border-radius:18px!important;
}
.section-theme-sostenibilidad .doc-brand-logo-panel,
.section-theme-calidad .doc-brand-logo-panel,
.section-theme-etica-gobierno .doc-brand-logo-panel{
  min-height:148px!important;
  padding:18px!important;
}
.section-theme-sostenibilidad .doc-brand-logo-box,
.section-theme-calidad .doc-brand-logo-box,
.section-theme-etica-gobierno .doc-brand-logo-box{
  width:70px!important;height:70px!important;border-radius:17px!important;
}
.section-theme-sostenibilidad .doc-brand-content,
.section-theme-calidad .doc-brand-content,
.section-theme-etica-gobierno .doc-brand-content{
  padding:20px 18px!important;
}
.section-theme-sostenibilidad .doc-brand-kicker-row,
.section-theme-calidad .doc-brand-kicker-row,
.section-theme-etica-gobierno .doc-brand-kicker-row{margin-bottom:6px!important}
.section-theme-sostenibilidad .doc-brand-kicker,
.section-theme-calidad .doc-brand-kicker,
.section-theme-etica-gobierno .doc-brand-kicker{font-size:9px!important;letter-spacing:2.2px!important}
.section-theme-sostenibilidad .doc-file-card.doc-file-card-brand h3,
.section-theme-calidad .doc-file-card.doc-file-card-brand h3,
.section-theme-etica-gobierno .doc-file-card.doc-file-card-brand h3{
  font-size:20px!important;line-height:1.12!important;margin-bottom:7px!important;
}
.section-theme-sostenibilidad .doc-file-card.doc-file-card-brand p,
.section-theme-calidad .doc-file-card.doc-file-card-brand p,
.section-theme-etica-gobierno .doc-file-card.doc-file-card-brand p{
  font-size:12.5px!important;line-height:1.48!important;margin-bottom:8px!important;
}
.section-theme-sostenibilidad .doc-brand-meta,
.section-theme-calidad .doc-brand-meta,
.section-theme-etica-gobierno .doc-brand-meta{gap:6px!important}
.section-theme-sostenibilidad .doc-brand-meta span,
.section-theme-calidad .doc-brand-meta span,
.section-theme-etica-gobierno .doc-brand-meta span{padding:5px 8px!important;font-size:10px!important}
.section-theme-sostenibilidad .doc-brand-actions,
.section-theme-calidad .doc-brand-actions,
.section-theme-etica-gobierno .doc-brand-actions{
  padding:18px 16px!important;gap:9px!important;
}
.section-theme-sostenibilidad .doc-brand-btn,
.section-theme-calidad .doc-brand-btn,
.section-theme-etica-gobierno .doc-brand-btn{
  min-height:44px!important;padding:10px 12px!important;font-size:13px!important;border-radius:999px!important;
}

/* Tarjetas de categorías de documentos: un poco más bajas */
.section-theme-sostenibilidad .doc-theme-card,
.section-theme-calidad .doc-theme-card,
.section-theme-etica-gobierno .doc-theme-card{min-height:205px!important;border-radius:18px!important}
.doc-theme-body{padding-top:14px!important;min-height:112px!important}
.doc-theme-body h3{font-size:22px!important;line-height:1.12!important}
.doc-theme-body p{font-size:12.5px!important;line-height:1.45!important}

/* Botones y tarjetas: acabado coherente */
.btn{transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.card,.product-card,.doc-file-card{transition:transform .22s ease,box-shadow .22s ease}

@media(max-width:1080px){
  .home-history-media{min-height:400px!important}
  .about-story-exact-shell{min-height:auto!important}
  .about-story-exact-media{min-height:400px!important}
  .section-theme-sostenibilidad .doc-file-card.doc-file-card-brand,
  .section-theme-calidad .doc-file-card.doc-file-card-brand,
  .section-theme-etica-gobierno .doc-file-card.doc-file-card-brand{grid-template-columns:110px minmax(0,1fr) 170px!important}
}
@media(max-width:760px){
  .home-history-section{padding-top:46px!important;padding-bottom:48px!important}
  .home-history-media{min-height:315px!important}
  .home-history-visual-timeline{grid-template-columns:1fr!important}
  .about-story-exact{padding:48px 0 54px!important}
  .about-story-exact-media{min-height:300px!important}
  .about-story-exact-panel{padding:23px 20px 22px!important}
  .about-story-exact-panel h2{font-size:31px!important}
  .section-theme-sostenibilidad .doc-file-card.doc-file-card-brand,
  .section-theme-calidad .doc-file-card.doc-file-card-brand,
  .section-theme-etica-gobierno .doc-file-card.doc-file-card-brand{grid-template-columns:1fr!important;min-height:auto!important}
  .section-theme-sostenibilidad .doc-brand-logo-panel,
  .section-theme-calidad .doc-brand-logo-panel,
  .section-theme-etica-gobierno .doc-brand-logo-panel{min-height:115px!important}
  .section-theme-sostenibilidad .doc-brand-actions,
  .section-theme-calidad .doc-brand-actions,
  .section-theme-etica-gobierno .doc-brand-actions{border-left:0!important;border-top:1px solid #e5ebef!important;display:grid!important;grid-template-columns:1fr 1fr!important}
}
@media(max-width:480px){
  .section-theme-sostenibilidad .doc-brand-actions,
  .section-theme-calidad .doc-brand-actions,
  .section-theme-etica-gobierno .doc-brand-actions{grid-template-columns:1fr!important}
}


/* =========================================================
   SLIDER - CORRECCIÓN DE COMPOSICIÓN DE TEXTOS
   Todo el contenido vuelve a una sola columna limpia.
   ========================================================= */
.home-carousel.home-carousel-premium .carousel-content{
  display:block!important;
  width:min(1240px,88%)!important;
  max-width:1240px!important;
  margin:0 auto!important;
  padding:72px 0 120px!important;
}
.home-carousel.home-carousel-premium .carousel-content>*{
  max-width:610px!important;
}
.home-carousel.home-carousel-premium .carousel-kicker{
  width:max-content!important;
  max-width:min(560px,100%)!important;
  margin:0 0 18px!important;
  padding:9px 15px!important;
  font-size:10px!important;
  line-height:1.25!important;
  letter-spacing:2.3px!important;
}
.home-carousel.home-carousel-premium .carousel-content h1,
.home-carousel.home-carousel-premium .carousel-content h2{
  max-width:640px!important;
  margin:0 0 18px!important;
  font-size:clamp(44px,4.2vw,64px)!important;
  line-height:1.02!important;
  letter-spacing:-2px!important;
  text-wrap:balance!important;
}
.home-carousel.home-carousel-premium .carousel-content p{
  max-width:590px!important;
  margin:0 0 24px!important;
  font-size:17px!important;
  line-height:1.55!important;
}
.home-carousel.home-carousel-premium .carousel-actions{
  margin:0!important;
}
.home-carousel.home-carousel-premium .carousel-actions .btn{
  min-height:50px!important;
  padding:12px 22px!important;
  font-size:14px!important;
  border-radius:999px!important;
}
@media(max-width:980px){
  .home-carousel.home-carousel-premium .carousel-content{
    width:min(90%,720px)!important;
    padding:60px 0 112px!important;
  }
  .home-carousel.home-carousel-premium .carousel-content h1,
  .home-carousel.home-carousel-premium .carousel-content h2{
    max-width:580px!important;
    font-size:clamp(40px,6vw,56px)!important;
  }
}
@media(max-width:680px){
  .home-carousel.home-carousel-premium .carousel-content{
    width:88%!important;
    padding:48px 0 92px!important;
  }
  .home-carousel.home-carousel-premium .carousel-kicker{
    font-size:8.5px!important;
    letter-spacing:1.7px!important;
    margin-bottom:14px!important;
  }
  .home-carousel.home-carousel-premium .carousel-content h1,
  .home-carousel.home-carousel-premium .carousel-content h2{
    max-width:95%!important;
    font-size:clamp(34px,10vw,44px)!important;
    line-height:1.02!important;
    margin-bottom:14px!important;
  }
  .home-carousel.home-carousel-premium .carousel-content p{
    max-width:95%!important;
    font-size:14px!important;
    line-height:1.5!important;
    margin-bottom:18px!important;
  }
  .home-carousel.home-carousel-premium .carousel-actions .btn{
    min-height:46px!important;
    padding:11px 18px!important;
    font-size:13px!important;
  }
}


/* =========================================================
   AJUSTE 2026-09 - Nuestra historia: mostrar imagen completa
   ========================================================= */
.home-history-media{
  background:linear-gradient(135deg,#f6f9fb 0%,#eef4f7 100%)!important;
}
.home-history-media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:18px!important;
}
.home-history-media:after{
  background:linear-gradient(180deg,rgba(7,31,45,0) 58%,rgba(7,31,45,.62) 100%)!important;
  pointer-events:none;
}
@media(max-width:620px){
  .home-history-media img{padding:10px!important;}
}

/* 2026-09-10 - Quiénes somos: mostrar completa la imagen principal administrable */
.about-story-exact-media{
  background:#f4f7f9!important;
}
.about-story-exact-photo{
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  transform:none!important;
  filter:none!important;
}
.about-story-exact-shell:hover .about-story-exact-photo{
  transform:none!important;
  filter:none!important;
}
.about-story-exact-shade{
  background:linear-gradient(180deg,rgba(8,28,40,0) 58%,rgba(8,28,40,.58) 100%)!important;
}
@media(max-width:760px){
  .about-story-exact-photo{
    background-size:contain!important;
    background-position:center center!important;
  }
}


/* ======================================================
   Entrada corporativa / preloader Prodenvases
   ====================================================== */
.entry-loader{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:linear-gradient(180deg,#ffffff 0%,#f5f9fb 100%);overflow:hidden;transition:opacity .55s ease,visibility .55s ease}
.entry-loader::before,.entry-loader::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.entry-loader::before{width:620px;height:620px;left:-260px;bottom:-350px;background:radial-gradient(circle,rgba(26,123,169,.16),rgba(26,123,169,0) 68%)}
.entry-loader::after{width:520px;height:520px;right:-260px;top:-280px;background:radial-gradient(circle,rgba(238,116,31,.11),rgba(238,116,31,0) 68%)}
.entry-loader-glow{position:absolute;width:520px;height:220px;left:50%;bottom:10%;transform:translateX(-50%);background:radial-gradient(ellipse,rgba(28,102,142,.16),transparent 68%);filter:blur(18px)}
.entry-loader-stage{position:relative;z-index:2;width:min(520px,88vw);display:grid;justify-items:center;text-align:center}
.entry-loader-can{width:min(225px,52vw);height:auto;filter:drop-shadow(0 28px 24px rgba(24,54,68,.20));animation:entryCanIn .8s cubic-bezier(.2,.8,.2,1) both,entryFloat 2.4s .8s ease-in-out infinite}
.entry-loader-brand{display:grid;justify-items:center;gap:7px;margin-top:14px;animation:entryFadeUp .65s .25s ease both}
.entry-loader-brand img{width:min(220px,55vw);height:auto}
.entry-loader-brand span{font-size:11px;text-transform:uppercase;letter-spacing:2.2px;color:#60747f;font-weight:800}
.entry-loader-progress{width:min(250px,62vw);height:3px;margin-top:22px;background:#dce7ec;border-radius:999px;overflow:hidden}
.entry-loader-progress i{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0c6c9f,#ef7d22);animation:entryProgress 1.15s ease-in-out infinite}
body.entry-ready .entry-loader{opacity:0;visibility:hidden;pointer-events:none}
body.has-entry-loader:not(.entry-ready){overflow:hidden}
@keyframes entryCanIn{0%{opacity:0;transform:translateY(26px) scale(.94)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes entryFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes entryFadeUp{0%{opacity:0;transform:translateY(12px)}100%{opacity:1;transform:translateY(0)}}
@keyframes entryProgress{0%{transform:translateX(-120%)}55%{transform:translateX(105%)}100%{transform:translateX(250%)}}

/* Aparición sutil de bloques del inicio */
.home-reveal{opacity:0;transform:translateY(22px);transition:opacity .65s ease,transform .65s ease}
.home-reveal.is-visible{opacity:1;transform:none}
.site-header-premium.is-compact{box-shadow:0 10px 30px rgba(11,45,60,.10)}
.site-header-premium.is-compact .nav-wrap{min-height:68px}
.site-header-premium.is-compact .brand-logo-real{transform:scale(.93);transform-origin:left center}
.site-header-premium .nav-wrap,.site-header-premium .brand-logo-real{transition:min-height .24s ease,transform .24s ease}
@media(prefers-reduced-motion:reduce){.entry-loader-can,.entry-loader-brand,.entry-loader-progress i{animation:none!important}.home-reveal{opacity:1!important;transform:none!important;transition:none!important}}

/* Ancla de Nuestra historia: compensa el header fijo al navegar desde los botones. */
#historia{scroll-margin-top:140px}
@media(max-width:1080px){#historia{scroll-margin-top:125px}}
