/*
Theme Name: Incendios BC
Theme URI: https://example.org/
Author: Proyecto Incendios BC
Description: Tema one-page para proyecto de investigación de incendios forestales en Baja California.
Version: 4.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: incendios-bc
*/
:root{--ink:#172824;--forest:#21483a;--orange:#db7839;--cream:#f7f6f0;--muted:#63736c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.6}a{color:inherit}header.site-header{position:sticky;top:0;z-index:30;background:#fffef9ee;backdrop-filter:blur(12px);border-bottom:1px solid #e4e9e1}.wrap{max-width:1160px;margin:auto;padding:0 22px}.nav{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px}.brand{text-decoration:none;font-weight:850;letter-spacing:.02em;color:var(--forest)}.brand small{display:block;font-weight:500;font-size:11px;letter-spacing:.1em}.menu{display:flex;flex-wrap:wrap;gap:16px;font-size:13px}.menu a{text-decoration:none}.menu a:hover{color:var(--orange)}.hero{padding:110px 0 100px;color:#fff;background:linear-gradient(115deg,#123328ee,#123328bd),radial-gradient(circle at 85% 30%,#e88b41,#224d3b 60%)}.eyebrow{font-weight:750;letter-spacing:.17em;text-transform:uppercase;font-size:12px;color:#eab08c}.hero h1{max-width:760px;font-size:clamp(36px,6vw,70px);line-height:1.08;margin:15px 0}.hero p{max-width:700px;font-size:19px;color:#e6efe8}.btn{display:inline-block;border-radius:5px;padding:12px 20px;background:var(--orange);color:#fff;text-decoration:none;font-weight:700;margin:10px 10px 0 0}.btn.outline{background:transparent;border:1px solid #fff}.section{padding:74px 0;scroll-margin-top:80px}.section:nth-of-type(even){background:#fff}.section h2{font-size:clamp(28px,4vw,40px);line-height:1.15;margin:0 0 12px}.intro{max-width:780px;color:var(--muted);margin:0 0 30px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid #e3e7e0;padding:24px;border-radius:9px;box-shadow:0 8px 28px #1233280a}.card h3{margin:0 0 8px;color:var(--forest)}.card p{margin:0}.card a{color:#b55e2b}.notice{border-left:5px solid var(--orange);background:#fff6ee;padding:20px 24px;margin-top:24px}.placeholder{padding:55px 20px;text-align:center;border:2px dashed #bdc8bd;background:#f0f4ee;border-radius:8px;color:#53645b}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.post-card{background:#fff;border:1px solid #e3e7e0;border-radius:8px;overflow:hidden}.post-card img{width:100%;height:180px;object-fit:cover}.post-card .body{padding:18px}.post-card h3{font-size:19px;margin:0 0 10px}.post-card p{margin:0;color:var(--muted)}.team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.team article{background:#fff;border-radius:8px;padding:22px;border:1px solid #e2e8e0}.team img{width:80px;height:80px;border-radius:50%;object-fit:cover}footer{background:#142e26;color:#d5e0d8;padding:34px 0;font-size:13px}.modal{border:0;border-radius:12px;max-width:min(92vw,850px);max-height:85vh;padding:30px;width:100%}.modal::backdrop{background:#07160fcb}.modal-close{float:right;background:#193e32;color:white;border:0;border-radius:5px;padding:8px 12px;cursor:pointer}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gallery-grid img{width:100%;height:160px;object-fit:cover}.site-main img{max-width:100%;height:auto}@media(max-width:800px){.nav{align-items:flex-start;flex-direction:column;padding:16px 0}.menu{gap:10px}.cards,.post-grid,.team{grid-template-columns:1fr}.hero{padding:75px 0}.section{padding:55px 0}.gallery-grid{grid-template-columns:repeat(2,1fr)}}

/* Hero v1.1: imagen editable, profundidad y altura ampliada */
.hero{position:relative;isolation:isolate;min-height:clamp(650px,83vh,900px);display:flex;align-items:center;overflow:hidden;background:#15392d;padding:125px 0 135px}
.hero>.wrap{position:relative;z-index:2;width:100%}
.hero-background{position:absolute;z-index:-2;inset:-90px 0;background-image:radial-gradient(circle at 85% 30%,#a96c3b,#224d3b 60%);background-size:cover;background-position:center center;transform:translate3d(0,var(--ibc-parallax,0px),0) scale(1.08);will-change:transform}
.hero-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(100deg,rgba(10,39,29,.87),rgba(10,39,29,.54) 62%,rgba(10,39,29,.35))}
.hero .btn{transition:transform .2s ease,background-color .2s ease}.hero .btn:hover{transform:translateY(-2px)}
@media(max-width:800px){.hero{min-height:620px;padding:100px 0 110px}.hero-background{inset:-55px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-background{transform:none!important}.hero .btn{transition:none}}

/* v1.2: hero casi fijo, cubierto por el contenido siguiente. */
:root{--ibc-transition-green:#f2f7f2}
.site-main{position:relative;isolation:isolate}
.site-main>.hero{position:sticky;top:0;z-index:0;min-height:clamp(650px,83vh,900px)}
.site-main>.hero .hero-background{inset:0;transform:none!important;will-change:auto;background-attachment:scroll}
.site-main>.hero .hero-shade{background:linear-gradient(100deg,rgba(10,39,29,.87),rgba(10,39,29,.54) 62%,rgba(10,39,29,.35))}
.site-main>.hero::after{content:"";position:absolute;z-index:1;pointer-events:none;left:0;right:0;bottom:0;height:clamp(150px,28%,290px);background:linear-gradient(to bottom,rgba(242,247,242,0) 0%,rgba(242,247,242,.28) 45%,var(--ibc-transition-green) 100%)}
.site-main>.hero~.section{position:relative;z-index:2}
.site-main>.hero+.section{background:var(--ibc-transition-green)}
@media(max-width:800px){.site-main>.hero{min-height:620px}}

/* v1.3: transición de desplazamiento continua; sin hero visible detrás de módulos. */
.site-main>.hero::after{display:none!important}
.site-main>.hero{z-index:0}
/* Los módulos son superficies opacas y ocultan completamente la fotografía fija. */
.site-main>.section{position:relative;z-index:2;background:#f2f7f2}
.site-main>.section:nth-of-type(even){background:#fff}
/* La transición pertenece al módulo que sube, por lo que se desplaza con él. */
.site-main>.hero+.section{background:#f2f7f2!important;isolation:isolate}
.site-main>.hero+.section::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:clamp(125px,19vw,230px);pointer-events:none;background:linear-gradient(to bottom,rgba(242,247,242,0),rgba(242,247,242,.22) 32%,rgba(242,247,242,.72) 72%,#f2f7f2 100%);z-index:1}
/* Los plugins pueden insertar sus propios módulos; su superficie también debe ser opaca. */
.site-main>.hero~section:not(.hero){position:relative;z-index:2}

/* v1.4: contenido sin filtraciones del hero fijo y avisos rotativos */
.site-main>.hero~section:not(.hero){background-color:#f2f7f2;isolation:isolate}
.site-main>.hero~section:not(.hero):nth-of-type(even){background-color:#fff}
.site-main>.hero+.section{isolation:auto}
.site-main>.hero+.section::before{z-index:0}
.site-main>.hero+.section>.wrap{position:relative;z-index:1}
/* Mantener los módulos de estadísticas añadidos por extensiones por encima del hero. */
.site-main>.hero~*{z-index:3;position:relative}
.ibc-alert-carousel{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:84px;margin-top:24px;background:#194c3a;color:white;border-left:5px solid #e78a48;border-radius:6px;padding:16px 22px;box-shadow:0 12px 26px #143b2c16}
.ibc-alert-slides{flex:1;min-width:0}.ibc-alert-slide{display:none;align-items:center;gap:12px;flex-wrap:wrap}.ibc-alert-slide.is-active{display:flex;animation:ibcAlertFade .35s ease}.ibc-alert-slide strong{font-size:17px}.ibc-alert-slide span{font-size:15px}.ibc-alert-slide a{color:#fff;text-decoration:underline;text-underline-offset:3px}.ibc-alert-controls{display:flex;align-items:center;gap:9px;flex-shrink:0}.ibc-alert-controls button{border:1px solid #ffffff77;background:transparent;color:#fff;border-radius:50%;width:34px;height:34px;cursor:pointer;font-size:22px;line-height:1}.ibc-alert-controls button:hover,.ibc-alert-controls button:focus-visible{background:#ffffff25}.ibc-alert-count{font-size:12px;white-space:nowrap}@keyframes ibcAlertFade{from{opacity:.25}to{opacity:1}}
@media(max-width:700px){.ibc-alert-carousel{align-items:flex-start;padding:16px;gap:8px}.ibc-alert-slide{display:none;flex-direction:column;align-items:flex-start;gap:3px}.ibc-alert-slide.is-active{display:flex}.ibc-alert-controls{gap:5px}.ibc-alert-controls button{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){.ibc-alert-slide.is-active{animation:none}}

/* v1.5 — cinta a pantalla completa y separador fotográfico */
#monitoreo{padding-bottom:0}
#monitoreo .ibc-alert-carousel{width:100%;margin:55px 0 0;min-height:150px;border-radius:0;border-left:0;border-top:5px solid #e78a48;padding:35px max(28px,calc((100vw - 1160px)/2 + 22px));box-shadow:none;justify-content:center}
.ibc-alert-slides{width:100%;text-align:center}
.ibc-alert-slide.is-active{justify-content:center;gap:12px 18px}
.ibc-alert-slide strong{font-size:clamp(20px,2.4vw,29px)}
.ibc-alert-slide span{font-size:clamp(16px,1.5vw,19px)}
.ibc-alert-controls{display:none!important}
.ibc-rest-parallax{height:clamp(270px,45vw,490px);position:relative!important;z-index:3!important;background-color:#173c2e;background-image:linear-gradient(90deg,#0b241b75,#0b241b40),var(--ibc-rest-image,none);background-position:center;background-size:cover;background-attachment:fixed}
@media(max-width:800px){.ibc-rest-parallax{background-attachment:scroll;height:290px}.ibc-alert-slide.is-active{flex-direction:column;align-items:center;text-align:center}}
/* Fijar el hero desde el primer píxel de desplazamiento. */
.site-main>.hero{top:0;transform:none!important}
.site-main>.hero .hero-background{transform:none!important;background-position:center center}
/* Animar rellenos solamente cuando la sección sea visible. */
.ibc-stats-animate .ibc-animated-fill{transform:scaleX(0)!important;transform-origin:left center;transition:transform 1.5s cubic-bezier(.2,.75,.2,1)!important}
.ibc-stats-animate.ibc-stats-visible .ibc-animated-fill{transform:scaleX(1)!important}
@media(prefers-reduced-motion:reduce){.ibc-stats-animate .ibc-animated-fill{transform:none!important;transition:none!important}}

/* v2.1 — cabecera transparente sobre el hero, sólida al desplazarse */
body.home .site-header{position:fixed;inset:0 0 auto;z-index:100;background:transparent;border-bottom:1px solid transparent;backdrop-filter:none;-webkit-backdrop-filter:none;transition:background-color .32s ease,border-color .32s ease,box-shadow .32s ease,backdrop-filter .32s ease}
body.home .site-header .brand,body.home .site-header .menu a{color:#fff;transition:color .3s ease}
body.home .site-header .menu a:hover{color:#f1aa78}
body.home .site-header.is-scrolled{background:#fffef9f5;border-bottom-color:#e4e9e1;box-shadow:0 5px 22px #102e2014;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body.home .site-header.is-scrolled .brand,body.home .site-header.is-scrolled .menu a{color:var(--forest)}
body.home .site-header.is-scrolled .menu a:hover{color:var(--orange)}
/* Desplazamiento discreto para botones y controles clicables */
.btn,.modal-close,.ibc-alert-carousel button,.site-main button{transition:transform .23s ease,box-shadow .23s ease,background-color .23s ease}
@media(hover:hover){.btn:hover,.modal-close:hover,.ibc-alert-carousel button:hover,.site-main button:hover{transform:translateY(-3px);box-shadow:0 7px 16px #0d2b1c22}}
.btn:active,.modal-close:active,.site-main button:active{transform:translateY(-1px)}
@media(prefers-reduced-motion:reduce){body.home .site-header,body.home .site-header .brand,body.home .site-header .menu a,.btn,.modal-close,.site-main button{transition:none!important}}

/* v2.2: descanso visual antes de estadísticas, más compacto y con transición limpia */
.ibc-rest-before-stats{height:clamp(170px,26vw,300px);margin:0;background-position:center 45%;}
@media(max-width:800px){.ibc-rest-before-stats{height:190px}}

/* v2.3: el descanso pertenece al flujo del cintillo, antes de cualquier módulo estadístico. */
#monitoreo .ibc-rest-before-stats{display:block;width:100%;margin:0;height:clamp(170px,26vw,300px);background-position:center 45%}

/* v2.4: mapa y cintillo unidos, descanso visual ampliado */
#monitoreo .ibcc-airnow{margin-bottom:0!important;padding-bottom:0!important}
#monitoreo .ibcc-airnow-note{display:none!important}
#monitoreo .ibc-alert-carousel{margin-top:0!important}
#monitoreo .ibc-rest-before-stats{height:clamp(340px,52vw,600px)!important}
@media(max-width:800px){#monitoreo .ibc-rest-before-stats{height:380px!important}}

/* v2.5: cubrir la franja residual entre iframe y cintillo sin desplazar el mapa. */
#monitoreo .ibc-alert-carousel{position:relative;z-index:8;margin-top:-22px!important;}
#monitoreo .ibcc-airnow{margin-bottom:0!important;}

/* v2.7: entrada de tarjetas meteorológicas, sin tocar estadísticas */
@keyframes ibcMonitorRise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
#monitoreo .ibc-monitor-wait{opacity:0!important;transform:translateY(28px)!important;transition:none!important}
#monitoreo .ibc-monitor-reenter{animation:ibcMonitorRise .65s cubic-bezier(.2,.75,.25,1) both!important}
@media(prefers-reduced-motion:reduce){#monitoreo .ibc-monitor-wait{opacity:1!important;transform:none!important}#monitoreo .ibc-monitor-reenter{animation:none!important}}

/* v2.8 — cintillo más amplio, tipografía mayor y transición suave. */
#monitoreo .ibc-alert-carousel{
  min-height:210px;
  padding-top:55px;
  padding-bottom:55px;
  background:linear-gradient(90deg,#194c3a 0%,#123e30 55%,#09281f 100%);
}
#monitoreo .ibc-alert-slide strong{font-size:clamp(24px,2.7vw,33px)}
#monitoreo .ibc-alert-slide span,#monitoreo .ibc-alert-slide a{font-size:clamp(20px,1.8vw,23px)}
.ibc-alert-slide.is-active{animation:ibcAlertFadeSlow 1.35s ease-in-out both}
@keyframes ibcAlertFadeSlow{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.ibc-alert-slide.is-active{animation:none}}
@media(max-width:700px){#monitoreo .ibc-alert-carousel{min-height:220px;padding:38px 22px}}


/* Galería fotográfica v2.9: visor estable con carrusel de miniaturas. */
.ibc-gallery-modal{position:fixed;inset:0;margin:auto;width:min(1100px,94vw);height:min(780px,90dvh);max-width:none;max-height:none;padding:0;border:0;border-radius:12px;overflow:hidden;background:#101713;color:#fff;box-shadow:0 24px 85px #0009;overscroll-behavior:contain}
.ibc-gallery-modal::backdrop{background:rgba(0,0,0,.94);animation:ibcGalleryBackdrop .9s ease both}
@keyframes ibcGalleryBackdrop{from{background:rgba(0,0,0,0)}to{background:rgba(0,0,0,.94)}}
.ibc-gallery-modal[open]{animation:ibcGalleryEnter .55s ease both}
@keyframes ibcGalleryEnter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.ibc-gallery-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.ibc-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;flex:0 0 auto}
.ibc-gallery-head h2{font-size:clamp(17px,2vw,23px);margin:0;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ibc-gallery-head .modal-close{float:none;margin:0;flex-shrink:0}
.ibc-gallery-stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:8px 62px;background:#0a0e0c}
.ibc-gallery-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:2px}
.ibc-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:1px solid #ffffff40;background:#1b2924d9;color:#fff;border-radius:50%;height:42px;width:42px;font-size:31px;line-height:1;cursor:pointer}
.ibc-gallery-arrow:hover{background:#345445}
.ibc-gallery-arrow:disabled{opacity:.25;cursor:default}
.ibc-gallery-prev{left:12px}.ibc-gallery-next{right:12px}
.ibc-gallery-bottom{flex:0 0 auto;padding:9px 14px 14px;background:#101713;min-height:0}
#ibc-gallery-count{text-align:center;font-size:12px;color:#c4d2c8;margin-bottom:7px}
.ibc-gallery-thumbs{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#6b8578 #17221b;padding:3px 2px 7px;overscroll-behavior-x:contain}
.ibc-gallery-thumb{flex:0 0 90px;width:90px;height:67px;padding:0;border:2px solid transparent;border-radius:5px;overflow:hidden;background:#28352d;cursor:pointer;opacity:.65;transition:opacity .3s,border-color .3s}
.ibc-gallery-thumb.is-current{border-color:#e8a46c;opacity:1}
.ibc-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:600px){.ibc-gallery-modal{width:96vw;height:min(690px,88dvh)}.ibc-gallery-head{padding:12px}.ibc-gallery-stage{padding:6px 39px}.ibc-gallery-arrow{height:32px;width:32px;font-size:25px}.ibc-gallery-prev{left:4px}.ibc-gallery-next{right:4px}.ibc-gallery-thumb{flex-basis:72px;width:72px;height:57px}}
@media(prefers-reduced-motion:reduce){.ibc-gallery-modal,.ibc-gallery-modal::backdrop{animation:none!important}}

/* Galerías v3.0: portada como botón y visor anclado al viewport. */
.ibc-gallery-modal{position:fixed!important;inset:0!important;margin:auto!important;z-index:2147483000!important}
.ibc-gallery-cover{position:relative;display:block;width:100%;height:190px;padding:0;margin:0;border:0;border-radius:0;overflow:hidden;background:#dce7de;cursor:pointer;text-align:left;isolation:isolate}
.ibc-gallery-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .65s ease,filter .65s ease}
.ibc-gallery-cover-placeholder{display:flex;align-items:center;justify-content:center;height:100%;font-size:17px;color:#21483a}
.ibc-gallery-cover-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(8,25,18,0);transition:background .5s ease}
.ibc-gallery-cover-icon{display:grid;place-items:center;width:54px;height:54px;border:1px solid #ffffffb0;border-radius:50%;color:white;font-size:34px;line-height:1;opacity:0;transform:translateY(12px) scale(.9);transition:opacity .45s ease,transform .45s ease}
@media(hover:hover){.ibc-gallery-cover:hover img{transform:scale(1.055);filter:brightness(.8)}.ibc-gallery-cover:hover .ibc-gallery-cover-overlay{background:rgba(8,25,18,.2)}.ibc-gallery-cover:hover .ibc-gallery-cover-icon{opacity:1;transform:translateY(0) scale(1)}}
.ibc-gallery-cover:focus-visible{outline:3px solid #db7839;outline-offset:3px}
.ibc-gallery-cover:focus-visible .ibc-gallery-cover-overlay{background:rgba(8,25,18,.22)}
.ibc-gallery-cover:focus-visible .ibc-gallery-cover-icon{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.ibc-gallery-cover img,.ibc-gallery-cover-overlay,.ibc-gallery-cover-icon{transition:none!important}}

/* v3.1: portada uniforme, sin contorno ni signo; visor sin saltos de scroll. */
#recursos .ibc-gallery-card .ibc-gallery-cover{appearance:none;-webkit-appearance:none;display:block!important;position:relative;width:100%!important;height:190px!important;min-height:190px!important;max-height:190px!important;padding:0!important;margin:0!important;border:0!important;outline:0;box-shadow:none!important;border-radius:0;overflow:hidden;cursor:pointer;background:#dce7de}
#recursos .ibc-gallery-card .ibc-gallery-cover>img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;border:0!important;outline:0!important}
#recursos .ibc-gallery-card .ibc-gallery-cover-overlay{display:none!important}
#recursos .ibc-gallery-card .ibc-gallery-cover:hover{box-shadow:none!important;transform:none!important}
#recursos .ibc-gallery-card .ibc-gallery-cover:focus-visible{outline:3px solid #db7839!important;outline-offset:-3px}
.ibc-gallery-modal[open]{position:fixed!important;inset:0!important;top:0!important;bottom:0!important;left:0!important;right:0!important;margin:auto!important}

/* Transición suave entre fotografías del modal. */
.ibc-gallery-stage #ibc-gallery-main{opacity:1;transition:opacity 420ms ease-in-out}
.ibc-gallery-stage #ibc-gallery-main.ibc-photo-fading{opacity:0}
@media(prefers-reduced-motion:reduce){.ibc-gallery-stage #ibc-gallery-main{transition:none}}

/* v3.3: investigación, educación y contenido institucional */
.ibc-hero-credit{font-size:15px!important;max-width:760px!important;color:#f3e8d7!important}
.ibc-research-intro{background:#f2f7f2!important}.ibc-research-intro h2{margin-top:42px}.ibc-intro-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:48px;align-items:center}.ibc-intro-grid h2{margin-top:10px}.ibc-intro-grid .eyebrow{color:#a45a2f}.ibc-lead{font-size:23px;font-weight:700;color:var(--forest)}.ibc-visual-panel{min-height:360px;border-radius:16px;display:flex;align-items:flex-end;padding:28px;background:linear-gradient(180deg,#0c32251c,#0c3225cb),linear-gradient(140deg,#a1bba5,#456b55 45%,#243d30);color:white;font-weight:750;font-size:22px}
.ibc-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ibc-questions article{display:flex;gap:18px;background:white;padding:24px;border-radius:12px;border-left:4px solid #d87d3c}.ibc-questions b{color:#b56636;font-size:25px}.ibc-questions p{margin:0;font-weight:600}.ibc-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ibc-method-grid article{background:#fff;border:1px solid #dce7dd;border-radius:12px;overflow:hidden;padding-bottom:20px}.ibc-method-grid h3,.ibc-method-grid p{margin:14px 20px}.ibc-method-visual{height:145px;background:linear-gradient(130deg,#b7cdbb,#436f5d)}.ibc-climate{background:linear-gradient(145deg,#aec6cf,#4e857a 55%,#284b44)}.ibc-vegetation{background:linear-gradient(145deg,#d3c19c,#71936b 55%,#325641)}.ibc-community{background:linear-gradient(145deg,#e7d7bb,#b58f6c 50%,#536b55)}.ibc-method-actions{margin-top:24px}.ibc-btn-secondary{background:#21483a}
.ibc-purpose{background:#153e30!important;color:white}.ibc-purpose-grid{display:grid;grid-template-columns:1.5fr .7fr;align-items:center;gap:60px}.ibc-purpose h2{color:#fff}.ibc-purpose p{font-size:18px}.ibc-purpose-art{border:1px solid #ffffff44;border-radius:16px;min-height:220px;display:grid;place-items:center;background:linear-gradient(135deg,#397d5b,#102e25)}.ibc-purpose-art span{text-align:center;font-size:26px;font-weight:750;line-height:1.65}
.ibc-prevention-infographic{display:grid;grid-template-columns:1fr 280px;gap:32px;align-items:center;margin:30px 0;padding:28px;background:#fff;border:1px solid #dce6dc;border-radius:14px}.ibc-infographic-preview{display:block;max-height:390px;overflow:hidden;border-radius:9px}.ibc-infographic-preview img{width:100%;height:auto;display:block}.ibc-external-news{padding:24px;margin-bottom:24px;background:#fff;border-left:5px solid #d87d3c;border-radius:9px}.ibc-external-news span{font-size:13px;color:#567064}.ibc-external-news h4{font-size:21px;margin:8px 0}.ibc-external-news a{color:#195c44;font-weight:700}
@media(max-width:800px){.ibc-intro-grid,.ibc-purpose-grid,.ibc-prevention-infographic{grid-template-columns:1fr}.ibc-questions,.ibc-method-grid{grid-template-columns:1fr}.ibc-visual-panel{min-height:230px}.ibc-infographic-preview{max-height:430px}}

/* v3.5 — fotografías administrables; mantener proporciones de tarjetas */
.ibc-visual-panel.has-photo{padding:0;overflow:hidden;display:block}
.ibc-visual-panel.has-photo .ibc-research-photo{display:block;width:100%;height:360px;object-fit:cover}
.ibc-method-visual.has-photo{overflow:hidden}
.ibc-method-visual.has-photo .ibc-research-photo{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:800px){.ibc-visual-panel.has-photo .ibc-research-photo{height:230px}}


/* v4.0: galería compacta con límites definidos y verde bosque uniforme. */
#galerias.ibc-gallery-atmosphere{
  background:#153c2d!important;
  background-image:none!important;
  color:#fff;
  overflow:hidden;
}
#galerias.ibc-gallery-atmosphere::before{display:none!important;content:none!important}
#galerias .ibc-gallery-atmosphere-content{padding:65px 0 75px!important}
#galerias .ibc-gallery-atmosphere-content>.wrap{position:relative;z-index:1}
#galerias .eyebrow{color:#e9a47c!important}
#galerias h2,#galerias p{color:#fff}
#galerias .ibc-gallery-card h3,#galerias .ibc-gallery-card p{color:#193b2e}
@media(max-width:600px){#galerias .ibc-gallery-atmosphere-content{padding:45px 0 55px!important}}
