:root{
  --navy:#083266; --navy-deep:#052248; --salmon:#df5620; --coral:#F69D7A; --coral-pale:#FBD6C8;
  --ink:#1B2430; --slate:#5B6B7D; --mist:#F5F7FA; --white:#FFFFFF; --line:#E3E8EF;
  --social:#cb8062; --economico:#11417c; --ambiental:#558b6d;
  --maxw:1280px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:var(--white);color:var(--ink);font-family:'Inter',sans-serif;-webkit-font-smoothing:antialiased;}
a{color:inherit;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 48px;}

@media(max-width:720px){
    .wrap{padding:0 20px;}

}



/* NAV */
nav.site{display:flex;justify-content:space-between;align-items:center;padding:18px 0px;position:sticky;top:0;background:white;z-index:50; font-family: "Lato", sans-serif;text-transform:uppercase}
nav.site .logo{display:flex;align-items:center;gap:10px;text-decoration:none;}
nav.site .logo img{height:40px;display:block;}
nav.site .links{display:flex;gap:26px;font-size:13.5px;}
nav.site .links a{color:var(--ink);text-decoration:none;}
nav.site .links a:hover{color:var(--salmon);}
nav.site .cta{background:var(--navy);color:white;padding:10px 18px;border-radius:4px;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;}
@media(max-width:940px){nav.site .links{display:none;}}

.eyebrow{font-family: "Inter", sans-serif;font-size:12.5px;letter-spacing:0.14em;text-transform:uppercase;color:var(--coral);font-weight:500;display:flex;align-items:center;gap:10px;margin-bottom:16px;}


/* HEADER */
header.hero{
color:white;
padding:70px 48px 15px 70px;
background-image:
  url("../images/header-a.png"),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
background-repeat: no-repeat, no-repeat;
background-position: 94% 50%;
background-size: contain, cover;
}
header.hero .crumb{font-family: "Inter", sans-serif;font-size:12px;color:rgba(255,255,255,0.5);margin-bottom:18px;}
header.hero .crumb a{text-decoration:none;color:rgba(255,255,255,0.5);}
header.hero h1{font-family:"Poppins", sans-serif;;font-weight:600;font-size:clamp(30px,4.2vw,46px);line-height:1.1;margin:0 0 14px;max-width:640px;}
header.hero p{font-size:16.5px;line-height:1.6;color:rgba(255,255,255,0.78);max-width:620px;margin:0 0 28px;}
.hero-stats{display:flex;gap:44px;flex-wrap:wrap;}
.hero-stats .stat{display:block; max-width:120px; text-transform:uppercase;}
.hero-stats .stat .n{font-family: "Inter", sans-serif;font-weight:600;font-size:32px;display:block;}
.hero-stats .stat .l{font-size:14px;color:#ffffff;margin-top:8px; line-height: 20px; display:block; }


 header h1{
    font-weight:500;
    font-size:clamp(2.4rem,5vw,3.6rem);
    line-height:1.05;
    margin:0 0 1.4rem;
    overflow:hidden; /* clips the word reveal */
  }
 header h1 .word{
    display:inline-block;
    transform:translateY(115%);
    will-change: transform;
}

.navbar {
padding:0px;
}


/* FILTER BAR */
.filters{background:var(--mist);border-bottom:1px solid var(--line);padding:24px 48px;position:relative;z-index:40;}
.filters .flabel{font-family: "Inter", sans-serif;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:var(--slate);margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;}
.filters .flabel .count{color:var(--ink);font-weight:600;}
.filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.filter-group:last-child{margin-bottom:0;}
.filter-group .gtitle{font-size:13.5px;font-weight:600;color:var(--ink);margin-right:2px;min-width:64px;}
.chip{font-size:12.5px;padding:6px 13px;border-radius:20px;border:1px solid var(--line);background:white;color:var(--slate);cursor:pointer;font-family:'Inter',sans-serif;transition:all .12s;}
.chip:hover{border-color:var(--navy);color:var(--navy);}
.chip.active{border-color:var(--navy);background:var(--navy);color:white;font-weight:600;}
.chip.active.social{background:var(--social);border-color:var(--social);}
.chip.active.economico{background:var(--economico);border-color:var(--economico);}
.chip.active.ambiental{background:var(--ambiental);border-color:var(--ambiental);}
.filters .clear-btn{font-size:12px;color:var(--salmon);background:none;border:none;cursor:pointer;font-family:'Inter',sans-serif;font-weight:600;text-decoration:underline;padding:0;}

/* GRID */
.grid-section{padding:40px 48px 32px;}
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:1184px;margin:0 auto;}
@media(max-width:980px){.case-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:680px){.case-grid{grid-template-columns:1fr;}}
.case-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;text-decoration:none;display:block;color:inherit;transition:box-shadow .15s, transform .15s;}
.case-card:hover{box-shadow:0 16px 32px -18px rgba(8,50,102,0.25);transform:translateY(-2px);}
.case-card .thumb{height:140px;display:flex;align-items:flex-start;}
.case-card .thumb .tag{font-family: "Inter", sans-serif;font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;color:white;padding:5px 11px;border-radius:20px;}
.case-card .body{padding:18px 20px 20px;}
.case-card .meta{font-family: "Inter", sans-serif;font-size:10.5px;letter-spacing:0.04em;color:var(--slate);margin-bottom:8px;}
.case-card h4{font-family:"Poppins", sans-serif;;font-weight:600;font-size:16.5px;line-height:1.3;color:var(--navy);margin:0 0 8px;}
.case-card p{font-size:12.5px;line-height:1.5;color:var(--slate);margin:0 0 12px;}
.case-card .readmore{font-size:12.5px;font-weight:600;color:var(--salmon);}
.empty-state{text-align:center;padding:64px 20px;color:var(--slate);font-size:14px;grid-column:1/-1;}
.load-more{text-align:center;margin-top:28px;}
.load-more button{font-family:'Inter',sans-serif;font-weight:600;font-size:14px;background:transparent;border:1.5px solid var(--navy);color:var(--navy);padding:13px 28px;border-radius:4px;cursor:pointer;}
.load-more button:hover{background:var(--navy);color:white;}
.load-more button:disabled{opacity:0.4;cursor:default;}

footer.site{background:#1B2430;color:rgba(255,255,255,0.5);padding:36px 48px;font-family: "Inter", sans-serif;font-size:12px;letter-spacing:0.04em;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:24px;}

/* ===== DETAIL PAGE ===== */
.detail-hero{background:var(--mist);padding:24px 48px;border-bottom:1px solid var(--line);border-top:1px solid var(--line);}
.detail-hero .crumb{font-family: "Inter", sans-serif;font-size:12px;color:var(--slate);}
.detail-hero .crumb a{text-decoration:none;color:var(--slate);}

.case-detail{padding:48px 48px 72px;}
.case-detail .inner{max-width:1184px;margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr;gap:48px;}
@media(max-width:900px){.case-detail .inner{grid-template-columns:1fr;}}
.case-detail .cat-tag{display:inline-block;font-family: "Inter", sans-serif;font-size:11px;letter-spacing:0.06em;text-transform:uppercase;color:white;padding:6px 13px;border-radius:20px;margin-bottom:18px;}
.case-detail h2{font-family:"Poppins", sans-serif;;font-weight:600;font-size:clamp(26px,3.4vw,36px);line-height:1.2;color:var(--navy);margin:0 0 20px;}
.case-detail p{font-size:15px;line-height:1.65;color:var(--ink);margin:0 0 16px;white-space:pre-line;}
.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;background:var(--mist);border-radius:10px;padding:24px;margin:28px 0;}
.stat-strip .s h3{font-family: "Inter", sans-serif;font-weight:600;font-size:28px;color:var(--salmon);margin:0 0 4px;}
.stat-strip .s p{font-size:18px;color:var(--slate);margin:0;line-height:1.4;}
.case-image{width:100%;min-height:270px;border-radius:10px;margin-bottom:24px;}
.pull-quote{border-left:3px solid var(--salmon);padding:4px 0 4px 24px;margin:28px 0;}
.pull-quote .qt{font-family:"Poppins", sans-serif;;font-size:22px;line-height:1.4;color:var(--navy);margin:0 0 10px;}
.pull-quote .qa{font-family: "Inter", sans-serif;font-size:12px;color:var(--slate);}

.detail-sidebar{border:1px solid var(--line);border-radius:10px;padding:26px;height:fit-content;position:sticky;top:150px;}
.detail-sidebar .row{margin-bottom:18px;}
.detail-sidebar .row:last-child{margin-bottom:0;}
.detail-sidebar .k{font-family: "Inter", sans-serif;font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:var(--slate);margin-bottom:4px;}
.detail-sidebar .v{font-size:14px;font-weight:600;color:var(--ink);line-height:1.4;}
#sidebar-empresa-logo {
  width: 100%;
}
.company-chip{display:flex;align-items:center;gap:10px;margin-top:6px;}
.company-chip .dot{width:150px;height:92px;border-radius:6px;flex-shrink:0;background:none !important;margin-bottom:30px;}
.company-chip span{font-size:13.5px;font-weight:600;color:var(--navy);}

.related-section{padding:8px 48px 64px;}
.related-section .inner{max-width:1184px;margin:0 auto;}
.related-section h3{font-family:"Poppins", sans-serif;;font-weight:600;font-size:22px;color:var(--083266);color:var(--navy);margin:0 0 20px;}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media(max-width:900px){.related-grid{grid-template-columns:1fr;}}

.not-found{padding:120px 48px;text-align:center;}
.not-found h2{font-family:"Poppins", sans-serif;;color:var(--navy);}
.not-found a{color:var(--salmon);font-weight:600;text-decoration:none;}


.case-image{overflow:hidden;}
.case-image img{width:100%;height:100%;object-fit:cover;display:block;}


@media (width <= 1300px) {
header.hero{
color:white;
padding:70px 48px 45px;
background-image:
  url("../images/header-a.png"),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
background-repeat: no-repeat, no-repeat;
background-position: 138% 50%;
background-size: contain, cover;
}
}
@media (width <= 1200px) {
header.hero{
color:white;
padding:70px 48px 45px;
background-image:
  linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
background-repeat: no-repeat, no-repeat;
background-position: 94% 50%;
background-size: contain, cover;
}
}
.case-image {
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    display: block;
}
.case-image.wide img {
    object-fit: cover;
}
.case-image.square {
}
.case-image.wide {
}
.case-image.square img {
    
}

.case-detail .line-break {
    display: block;
    content: "";
    margin-bottom: 12px;
}


iframe {border:1px solid var(--mist); }


#case-body.layout-big {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-template-areas:
    "image text"
    "stats stats";
    gap: 2rem;
    align-items: start;
}
#case-body.layout-big .case-image {
    grid-area: image;
    aspect-ratio: ineherit;
    margin-top:10px;
}

#case-body.layout-square {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "image text"
        "stats stats";
    gap: 2rem;

}

#case-body.layout-square .case-image {
    grid-area: image;
    aspect-ratio: 1;
    margin-top:10px;
}

#case-body.layout-square > p {
    grid-area: text;
    margin: 0;
}

#case-body.layout-square .stat-strip {
    grid-area: stats;
}


.thumb {
    position: relative;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.6;
}
.thumb img:hover {
    opacity:1;
}

.thumb.wide img {
    object-fit: cover;
}

.thumb.square img {
    object-fit: cover;
}

.thumb .tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}






  h1, h2, h3, h4, .eyebrow, nav.site .logo span {   font-family: "Inter", sans-serif;}
  nav.site .logo span { font-weight:600; font-size:16px; color:var(--navy); }
  body, .chip, p, .links a, .cta { font-family: "Poppins", sans-serif;}
  .crumb, .meta, .stat .n, h3.fmono {   font-family: "Inter", sans-serif; }


.topbar, .btn {
    padding: 3px 0px;
    background-color: rgba(220, 68, 5, 0.6);
    color: #fff;
    text-align: right;
    font-size: 13px;
}
.topbar a {
    color: #fff;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    width: 23px;
    font-size: 13px !important;
    display: inline-block;
    height: 23px;
    padding: 1px 0px;
    text-align: center;
}
.btn {
  border-radius: 0px;
  padding: 6px 20px;
  font-size:16px;
}
.btn:hover {
  background-color: rgba(120, 37, 2, 0.6);
  color:#fff;
}
.navegacion {
  font-weight: 500;
  letter-spacing: 0px;
  font-size: 14px;
  border-top: #e2e2e2 1px solid;
}
.navegacion ul li {
  padding: 0px 7px;
}

.scroll-indicator {
  width: 18px;
  height: 30px;
  border: 1px solid #808080; 
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 90px auto 0;
  color: #e8e8e8;
  font-size: 16px;
  overflow: hidden;
  margin-top:90px;
}
.scroll-indicator .arrow {
  position: absolute;
  top: 3px;
  opacity: 0.7;
}













.botones-acceso .btn {
    background-color: #ff785b;
    color: #fff;
    font-weight: 300;
    padding: 7px 30px;
    border-radius: 0px;
    transition: background-color 0.3s ease;
}
.botones-acceso .btn:hover {
    background-color: #da654a;
    color: #fff;
    transition: background-color 0.3s ease;
}
.dropdown-toggle::after {
    display: none; /* Oculto caret por defecto */
}
.dropdown img.icon-main {
    width: 90px;
    height: 73px;
    bottom: -6px;
    right: -12px;
    position: relative;
}
.dropdown img.arrow {
    width: 14px;
    transition: transform 0.3s;
}
.dropdown .dropdown-toggle[aria-expanded="true"] .arrow{transform:rotate(180deg);}
.dropdown-menu img {
    width: 40px;
    height: 40px;
}
button {
    text-align: left;
}




/* Base común */
.custom-dropdown .btn {
  background: #fff;
  border: 0px solid #ddd;
  border-radius: 0px;
  text-align: left;
}
.custom-dropdown .title {
  font-size: 14px;
  font-weight: bold;
  color: #0b2c57; /* azul */
  margin-bottom: -2px;
}
.custom-dropdown .subtitle {
  font-size: 16px;
  font-weight: bold;
}
.custom-dropdown .icon-main {
  width: 40px;
  height: 40px;
}
.custom-dropdown .circle-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}
.custom-dropdown .arrow {
  width: 14px;
  transition: transform 0.3s;
}

.custom-dropdown .dropdown-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}
.custom-dropdown .btn-interior {
    margin-top: 30px;
}
/* Subitems */
.custom-dropdown .dropdown-menu {
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 4px;
}
.custom-dropdown .dropdown-item {
  font-size: 13px;
  color:#133152;
  padding: 7px 15px;
  border-bottom: 1px solid #eee;
  text-wrap: auto;
  cursor: pointer;
}
.custom-dropdown .dropdown-item .num {
  font-weight: bold;
  margin-right: 8px;
  font-size: 26px;
}
.custom-dropdown .dropdown-item img {
  margin-left: 10px;
}
.custom-dropdown .btn.active {
 
}
.custom-dropdown .dropdown-item.active {
  background: #f4f4f4;
  font-weight: bold;
}
.dropdown-item.active, .dropdown-item:active {
    background-color: #f4f4f4;
}
/* Colores por categoría */
.social.custom-dropdown .btn {
    border-bottom: 6px solid #ff968d;
}
.social .subtitle,
.social .tit-caso,
.social .dropdown-item .num { color: #f87e73; }
.social .detalle-casos {
  border-top: 2px solid #f87e73;
}

.economico.custom-dropdown .btn {
    border-bottom: 6px solid #598db7;
}
.economico .subtitle,
.economico .tit-caso,
.economico .dropdown-item .num { color: #598db7; }
.economico .detalle-casos {
  border-top: 2px solid #598db7;
}

.ambiental.custom-dropdown .btn {
    border-bottom: 6px solid #5aad93;
}
.ambiental .subtitle,
.ambiental .tit-caso,
.ambiental .dropdown-item .num { color: #5aad93; }
.ambiental .detalle-casos {
  border-top: 2px solid #5aad93;
}




.navbar-light .navbar-toggler {
    margin-top: -90px;
    margin-left:10px;
}
.botones-acceso {
  margin:0px;
}
@media (min-width: 768px) {
.dropdown img.icon-main {
    width: 70px;
    height: 53px;
    bottom: -16px;
    right: -12px;
} 

.botones-acceso {
    margin-top: 30px;
    margin-bottom: 30px;
}
}

@media (min-width: 992px) {
.dropdown img.icon-main {
    width: 90px;
    height: 73px;
    bottom: -6px;
    right: -12px;
} 
}

@media (min-width: 1200px) {

}

@media (min-width: 1400px) {}