/* Tarjetas verdes y formulario con la composición de las referencias. */
.green{padding:44px 0 54px;background:linear-gradient(110deg,#ec4700 0%,#f36f04 48%,#ffb719 100%);color:#fff}
.green>.container{max-width:1320px;padding-inline:42px}
.green-dots{display:none}
.green-title{text-align:left;margin:0 0 34px}
.green-title h2{font:italic 900 clamp(36px,4.5vw,70px)/.92 var(--head);color:#fff;text-transform:uppercase;letter-spacing:-.025em;margin:0}
.green-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px;max-width:none}
.green-card{position:relative;min-height:154px;background:#fff;border-radius:13px;box-shadow:0 7px 10px #b83a1a55;padding:42px 16px 17px 92px;display:flex;align-items:center;justify-content:center;color:#0913ad}
.green-card-bar{position:absolute;top:0;left:0;right:0;height:28px;background:#1026bf;border-radius:13px 13px 0 0}
.green-card-bar span{position:absolute;left:50%;top:-20px;transform:translateX(-50%);color:#fff;text-shadow:2px 2px 0 #1026bf;font:900 30px/1 var(--head)}
.green-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:61px;height:61px;border-radius:50%;background:#ffb719;border:4px solid #fff;box-shadow:0 0 0 2px #f6d88c,0 5px 9px #8e7a5340;display:grid;place-items:center;color:#0716ad;font-size:29px}
.green-card p{margin:0;color:#0913ad;text-align:center;font:500 clamp(11px,1.02vw,14px)/1.18 var(--body)}

.participate{position:relative;isolation:isolate;padding:40px 0 56px;background:linear-gradient(180deg,#ffb719 0%,#ffb719 67%,#f2a40d 100%)}
.participate:before,.participate-dots{display:none}
.participate:after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;height:38%;background:linear-gradient(180deg,transparent,#f2a50dcc),url('../assets/fundacion-ciudad.jpg') center bottom/cover;opacity:.38}
.participate>.container{position:relative;z-index:1;max-width:760px}
.participate-heading{margin:0 0 12px;text-align:left}
.participate-title-art{display:none}
.participate-heading:before{content:"TU VOZ TAMBIÉN CONSTRUYE NEIVA";display:block;color:#0916ad;font:italic 900 clamp(28px,4.5vw,58px)/.95 var(--head);text-transform:uppercase;letter-spacing:-.02em}
.contact-card{display:block;max-width:600px;margin:0 auto;padding:20px 26px;border:4px solid #fff;border-radius:26px;background:#1013a5;color:#fff;box-shadow:none}
.contact-card .row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 11px!important}
.contact-card .row>.col-md-6{width:auto}
.contact-card .row>.col-12{width:auto;grid-column:1/-1}
.contact-card .row>.col-md-6:nth-child(3){display:none}
.contact-card .form-label{display:block;color:#fff;text-transform:uppercase;font:800 14px/1 var(--head);margin:0 0 5px}
#neighborhoodLabel{font-size:0}
#neighborhoodLabel:after{content:"BARRIO O COMUNA";font:800 14px/1 var(--head)}
.contact-card .form-control,.contact-card .form-select{min-height:39px;padding:7px 10px;border:1px solid #cdd0df;border-radius:6px;background:#fff;color:#151525}
.contact-card textarea.form-control{min-height:76px;resize:vertical}
.contact-card .send-btn{min-height:35px;padding:9px 24px;border:0;border-radius:22px;background:#ffb719;color:#0916ad;font-size:0;letter-spacing:.02em}
.contact-card .send-btn:before{content:"VALIDAR PROPUESTA";font:800 11px/1 var(--body)}
.contact-card .form-note,.contact-card .contact-art{display:none!important}
.animal-gallery>div:nth-child(1){order:2}
.animal-gallery>div:nth-child(2){order:1}
.animal-gallery{margin-bottom:32px}
.animal-gallery-more{grid-column:1/-1;justify-self:center;position:relative;z-index:4;display:inline-flex;align-items:center;justify-content:center;min-width:225px;height:44px;margin:-3px 0 -57px;padding:0 28px;border:3px solid #3035ee;border-radius:999px;background:#070761;color:#fff;text-decoration:none;text-transform:uppercase;font:800 14px/1 var(--body);letter-spacing:.02em;box-shadow:none}
.animal-gallery-more:hover{background:#11118a;color:#ffbe17}
@media(max-width:767px){.animal-gallery-more{min-width:190px;height:40px;margin:-2px 0 -50px;font-size:12px}}

/* Retrato de trayectoria: usa la composición entregada por el usuario. */
.story-photo .photo-color,.story-photo .story-dots{display:none}
.story-photo{background:transparent;overflow:hidden;border-radius:0 0 24px 24px}
.story-photo img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center bottom;filter:none}
@media(max-width:767px){.story-photo{border-radius:0 0 15px 15px}.story-photo img{object-fit:cover;object-position:center bottom}}

/* Trayectoria completa: texto, iconos y colores copiados de la referencia visual. */
.story-reference-layout{display:grid;grid-template-columns:46% 54%;grid-template-rows:1fr auto;height:auto;min-height:0;max-width:1320px;padding:0;background:#070d66;border-radius:26px;overflow:hidden;color:#fff}
.story-reference-layout .story-photo{grid-column:1;grid-row:1;height:100%;min-height:760px;background:#f47605;border-radius:0;overflow:hidden}
.story-reference-layout .story-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom}
.story-reference-copy{grid-column:2;grid-row:1;padding:20px 28px 24px;background:#070d66 url('../assets/bienestar-textura.png') center/cover;visibility:visible!important}
.story-reference-copy>*{visibility:visible!important}
.reference-name{margin:0 0 12px;text-align:center;border-bottom:4px solid #ff9e13;padding-bottom:10px}
.reference-name h2{margin:0;color:#ffb719;font:italic 900 clamp(37px,4vw,66px)/.82 var(--head);letter-spacing:-.03em}
.reference-name h3{margin:7px 0 0;color:#fff;font:italic 900 clamp(32px,3.3vw,56px)/.82 var(--head)}
.reference-bio{max-width:550px;margin:0 auto 18px;color:#fff;text-align:center;font:600 clamp(11px,1.05vw,15px)/1.25 var(--body)}
.reference-heading,.reference-bottom-heading{display:flex;align-items:center;gap:14px;background:#050a58;color:#fff;padding:7px 10px;margin:0 -28px 12px;font:italic 900 clamp(20px,2.3vw,35px)/1 var(--head)}
.reference-icon{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border:3px solid #fff;border-radius:50%;background:#ffae18;color:#fff;font-size:25px;box-shadow:0 0 0 2px #ffae18}
.reference-education{border:3px solid #243af0;border-radius:16px;background:#070d66;padding:14px 22px;color:#fff}
.reference-education p{margin:0 0 11px;text-align:left;font:600 clamp(10px,.95vw,14px)/1.2 var(--body)}
.reference-education p:last-child{margin-bottom:0}
.reference-bottom{grid-row:2;background:#070d66 url('../assets/bienestar-textura.png') center/cover;padding:0 24px 22px}
.reference-career{grid-column:1}.reference-sector{grid-column:2}
.reference-bottom-heading{margin:0 0 9px;padding:7px 0;font-size:clamp(18px,2.2vw,31px)}
.reference-bottom-heading .reference-icon{width:42px;height:42px;flex-basis:42px;font-size:20px}
.reference-bottom-panel{border:2px solid #243af0;border-radius:12px;padding:12px 16px;min-height:120px}
.reference-bottom-panel p{margin:0 0 8px;color:#fff;font:500 clamp(9px,.9vw,13px)/1.2 var(--body)}
.reference-bottom-panel p:last-child{margin-bottom:0}
.sector-emblems{display:flex;gap:14px;justify-content:center;margin-top:12px}
.sector-emblems span{width:74px;height:74px;border:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#070d66}
.sector-emblems img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:767px){.story-reference-layout{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;height:auto;border-radius:18px}.story-reference-layout .story-photo{grid-column:1;grid-row:1;min-height:420px;height:420px}.story-reference-copy{grid-column:1;grid-row:2;padding:18px 16px}.reference-heading,.reference-bottom-heading{margin-left:-16px;margin-right:-16px}.reference-bottom{grid-column:1;padding:0 16px 18px}.reference-career{grid-row:3}.reference-sector{grid-row:4}.reference-bottom-panel{min-height:0}.sector-emblems span{width:62px;height:62px;font-size:30px}}

/* Panel de trayectoria y formación académica basado en la referencia entregada. */
.story{padding:28px 0 34px;background:#fff}
.story>.container{max-width:1380px}
.story-card{height:min(843px,62vw);min-height:600px;max-width:none;grid-template-columns:1fr 1fr;gap:0;padding:0;border-radius:28px;overflow:hidden;background:#070d66}
.story-photo{height:100%;min-height:0;border-radius:0;background:transparent}
.story-photo img{width:100%;height:100%;object-fit:cover;object-position:center bottom;filter:none}
.story-copy{height:100%;min-height:0;padding:0;background:#070d66 url('../assets/story-copy-reference.png') center/100% 100% no-repeat}
.story-copy>*{visibility:hidden}
.story-card>.studies{display:none}
@media(max-width:991px){.story-card{height:min(760px,72vw);min-height:540px}}
@media(max-width:767px){.story{padding:18px 0 22px}.story-card{height:auto;min-height:0;grid-template-columns:1fr;border-radius:18px;padding:0}.story-photo{height:430px}.story-copy{height:auto;aspect-ratio:662/843;background-size:100% 100%}.story-copy>*{visibility:hidden}}

/* Ajuste final de la composición de bienestar animal según la referencia. */
.voice{padding:38px 0 54px;background:#03075b url('../assets/bienestar-textura.png') center/cover}
.animal-layout{grid-template-columns:44% 56%;max-width:1320px}
.animal-photo{min-height:535px}
.animal-orange{inset:0 8% 0 0;border-radius:28px 28px 0 0;background:linear-gradient(145deg,#ffad16,#f47705)}
.animal-photo>img{left:-3%;bottom:-28px;width:112%}
.animal-copy{padding:0 0 28px 26px}
.animal-copy h2{font-size:clamp(43px,5vw,72px);margin:0 0 20px}
.animal-messages{gap:12px}
.animal-message{min-height:104px;padding:15px 22px 14px 72px;border:2px solid #2439ed;border-radius:12px}
.animal-message>img{left:-34px;width:68px;height:68px}
.animal-message h3{font-size:clamp(21px,2.1vw,30px);margin-bottom:7px}
.animal-message p{font-size:clamp(11px,1vw,14px)}
.animal-gallery{padding:30px 22px 26px;gap:20px;border-radius:20px;margin-top:-20px}
.animal-gallery>div{aspect-ratio:1.35;border-radius:13px}
@media(max-width:991px){.animal-layout{grid-template-columns:44% 56%}.animal-photo{min-height:470px}.animal-copy{padding-left:20px}.animal-message{padding-left:55px}.animal-message>img{left:-30px;width:60px;height:60px}.animal-gallery{padding-inline:18px;gap:14px}}
@media(max-width:767px){.voice{padding:30px 0 42px}.animal-layout{grid-template-columns:1fr}.animal-photo{min-height:360px}.animal-copy{padding:0 0 0 25px}.animal-gallery{margin-top:0;padding:26px 14px 18px}.animal-gallery>div{aspect-ratio:1.35}}
@media(max-width:767px){.green{padding:32px 0 42px}.green>.container{padding-inline:18px}.green-title{text-align:center;margin-bottom:26px}.green-title h2{font-size:clamp(31px,8vw,48px)}.green-grid{grid-template-columns:1fr;gap:15px}.green-card{min-height:135px;padding-left:84px}.participate{padding:32px 0 45px}.participate>.container{max-width:100%;padding-inline:14px}.participate-heading:before{text-align:center;font-size:clamp(30px,8vw,47px)}.contact-card{padding:16px;border-radius:22px}.contact-card .row{grid-template-columns:1fr}.contact-card .row>.col-md-6{grid-column:1}}

/* Ajustes finales para que la composición mantenga la proporción de la referencia. */
.story-reference-layout{height:auto;min-height:0;grid-template-rows:auto auto}
.story-reference-layout .story-photo{height:auto;min-height:0;aspect-ratio:665/821}
.story-reference-layout .story-copy{height:auto;min-height:0}
.story-reference-layout .story-reference-copy{height:auto;min-height:0;padding:20px 28px 24px!important;background:#070d66 url('../assets/bienestar-textura.png') center/cover no-repeat!important}
.story-reference-layout .story-reference-copy>*{visibility:visible!important}
.story-reference-layout .story-reference-copy{display:flex;flex-direction:column}
.story-reference-layout .reference-education{flex:1 1 auto;min-height:455px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-around;gap:0}
@media(max-width:1200px) and (min-width:768px){.story-reference-layout .reference-education{min-height:390px}}
@media(max-width:767px){.story-reference-layout .reference-education{min-height:0}}
@media(max-width:991px) and (min-width:768px){.story-reference-layout{grid-template-columns:44% 56%}.story-reference-copy{padding-inline:20px}.reference-heading{margin-left:-20px;margin-right:-20px}}

/* Marco final de la maqueta: azul continuo, sin márgenes blancos alrededor. */
@media(min-width:768px){
  .story{padding:24px 0 0;background:#03075b url('../assets/bienestar-textura.png') center/cover no-repeat}
  .story>.container{max-width:1320px;padding-inline:0}
  .story-reference-layout{grid-template-columns:49% 51%;border-radius:24px 24px 0 0}
  .story-reference-layout .story-reference-copy{padding:16px 28px 18px!important}
  .story-reference-layout .reference-heading{margin-left:-28px;margin-right:-28px}
  .story-reference-layout .reference-education{padding:12px 16px;gap:13px}
  .story-reference-layout .reference-bottom{padding-left:18px;padding-right:18px}
}

/* Formas y proporciones de los cuadros inferiores de la maqueta. */
@media(min-width:768px){
  .story-reference-layout .reference-bottom{padding:0 22px 26px}
  .story-reference-layout .reference-bottom-heading{margin:0 -22px 18px;padding:18px 22px;gap:24px;background:#050a58;font-size:clamp(30px,3.1vw,54px);line-height:.95}
  .story-reference-layout .reference-bottom-heading .reference-icon{width:100px;height:100px;flex-basis:100px;border-width:4px;font-size:46px}
  .story-reference-layout .reference-sector .reference-bottom-heading .reference-icon{background:#f4511e}
  .story-reference-layout .reference-bottom-panel{border-width:4px;border-radius:20px;padding:18px 26px;min-height:0}
  .story-reference-layout .reference-career .reference-bottom-panel{min-height:320px}
  .story-reference-layout .reference-sector .reference-bottom-panel{min-height:96px}
  .story-reference-layout .reference-bottom-panel p{font-size:clamp(14px,1.15vw,19px);line-height:1.25;margin-bottom:25px}
  .story-reference-layout .sector-emblems{gap:18px;margin-top:34px}
  .story-reference-layout .sector-emblems span{width:170px;height:170px}
}

/* Ajuste fino del bloque superior según la maqueta entregada. */
@media(min-width:768px){
  .story-reference-layout .story-photo{position:relative;z-index:1}
  .story-reference-layout .story-reference-copy{position:relative;z-index:2;min-width:0;overflow:hidden}
  .story-reference-layout .reference-name{text-align:left;margin:0 0 18px;padding-bottom:16px;border-bottom-width:8px}
  .story-reference-layout .reference-name h2{font-size:clamp(50px,5.8vw,88px);line-height:.82}
  .story-reference-layout .reference-name h3{font-size:clamp(44px,4.9vw,78px);line-height:.84;margin-top:10px}
  .story-reference-layout .reference-bio{max-width:none;margin:0 0 26px;text-align:left;font-size:clamp(15px,1.35vw,20px);line-height:1.22}
  .story-reference-layout .reference-heading{margin-left:-28px;margin-right:-28px;padding:16px 10px;gap:20px;font-size:clamp(28px,3.1vw,52px)}
  .story-reference-layout .reference-heading .reference-icon{width:70px;height:70px;flex-basis:70px;font-size:34px;transform:none;margin-right:0}
  .story-reference-layout .reference-education{margin-left:-28px;margin-right:-28px;border-width:4px;border-radius:20px;padding:22px 20px;min-height:455px}
  .story-reference-layout .reference-education p{font-size:clamp(15px,1.4vw,21px);line-height:1.2}
}

/* Bienestar animal: composición compacta y consistente con la maqueta entregada. */
.voice{position:relative;overflow:visible;isolation:isolate;padding:28px 0 42px;background:#03075b url('../assets/bienestar-textura.png') center/cover no-repeat;color:#fff}
.voice>.animal-layout{width:calc(100% - 8px);max-width:1320px;margin:0 auto;padding:0;display:grid;grid-template-columns:44% 56%;grid-template-rows:auto auto;align-items:start;position:relative}
.animal-layout .animal-photo{grid-column:1;grid-row:1;position:relative;z-index:2;width:100%;height:clamp(300px,54vw,706px);min-height:0;margin:0;isolation:isolate;overflow:visible}
.animal-layout .animal-orange{position:absolute;inset:0 7% 0 0;z-index:-1;border-radius:20px 20px 0 0;background:linear-gradient(145deg,#ffad16 0%,#f47705 100%)}
.animal-layout .animal-spark{position:absolute;z-index:4;right:14%;top:16px;width:58px;height:58px;color:transparent;font-size:0;line-height:1;transform:none}
.animal-layout .animal-spark:before,.animal-layout .animal-spark:after{content:"";position:absolute;display:block;border-radius:999px;background:#fff}
.animal-layout .animal-spark:before{left:25px;top:0;width:9px;height:35px;transform:rotate(34deg);box-shadow:-17px 27px 0 -1px #fff,18px 23px 0 -1px #fff}
.animal-layout .animal-spark:after{display:none}
.animal-layout .animal-photo>img{position:absolute;z-index:3;left:0;bottom:-14px;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center bottom;border-radius:20px 20px 0 0;filter:hue-rotate(-10deg) saturate(1.08);pointer-events:none}
.animal-layout .animal-copy{grid-column:2;grid-row:1;min-width:0;position:relative;z-index:4;padding:0 20px 16px 70px}
.animal-layout .animal-copy h2{margin:-3px 0 22px;color:#fff;text-align:center;font:900 clamp(25px,5.6vw,78px)/.84 var(--head);letter-spacing:-.02em;text-transform:uppercase}
.animal-layout .animal-copy h2 span{color:#ffbd19}
.animal-layout .animal-messages{display:grid;gap:16px}
.animal-layout .animal-message{position:relative;min-height:clamp(84px,11.5vw,145px);margin:0;padding:18px 24px 18px 76px;border:3px solid #2638ed;border-radius:13px;background:#030872;color:#fff;display:flex;flex-direction:column;justify-content:center;text-align:center;box-shadow:none}
.animal-layout .animal-message>img{position:absolute;z-index:5;left:-52px;top:50%;width:100px;height:100px;transform:translateY(-50%);object-fit:contain}
.animal-layout .animal-message h3{margin:0 0 8px;color:#fff;font:900 clamp(11px,2.35vw,32px)/1 var(--head);text-transform:uppercase}
.animal-layout .animal-message p{max-width:none;margin:0;color:#fff;font:500 clamp(9px,1.15vw,16px)/1.2 var(--body)}
.animal-layout .animal-gallery{grid-column:1/-1;grid-row:2;position:relative;z-index:5;width:100%;margin:-16px 0 0;padding:16px 14px 15px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start;background:#fff;border-radius:18px;box-sizing:border-box;order:initial}
.animal-layout .animal-gallery>div{order:0;width:100%;aspect-ratio:1.5;overflow:hidden;border-radius:10px;background:#eee}
.animal-layout .animal-gallery>div:nth-child(1){order:2}
.animal-layout .animal-gallery>div:nth-child(2){order:1}
.animal-layout .animal-gallery>div:nth-child(3){order:3}
.animal-layout .animal-gallery>div img{display:block;width:100%;height:100%;object-fit:cover}
.animal-layout .animal-gallery-more{grid-column:1/-1;justify-self:center;order:0;min-width:180px;height:40px;margin:-1px 0 -38px;padding:0 24px;border:3px solid #3035ee;border-radius:999px;background:#070761;color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-transform:uppercase;font:800 12px/1 var(--body);letter-spacing:.02em;box-shadow:none}
.animal-layout .animal-gallery-more:hover{background:#11118a;color:#ffbe17}
@media(max-width:767px){
  .voice{padding:28px 0 40px}
  .voice>.animal-layout{width:calc(100% - 14px);grid-template-columns:42% 58%}
  .animal-layout .animal-photo{grid-column:1;grid-row:1;height:240px}
  .animal-layout .animal-copy{grid-column:2;grid-row:1;padding:0 0 10px 12px}
  .animal-layout .animal-copy h2{margin-bottom:13px;font-size:clamp(25px,7vw,38px)}
  .animal-layout .animal-message{min-height:68px;padding:8px 7px 8px 34px;border-radius:8px}
  .animal-layout .animal-message>img{left:-20px;width:42px;height:42px}
  .animal-layout .animal-message h3{font-size:clamp(10px,3vw,15px);margin-bottom:3px}
  .animal-layout .animal-message p{font-size:clamp(7px,2vw,10px);line-height:1.1}
  .animal-layout .animal-gallery{grid-column:1/-1;grid-row:2;margin-top:-10px;padding:14px 12px 13px;gap:9px;border-radius:15px}
  .animal-layout .animal-gallery>div{aspect-ratio:1.35;border-radius:8px}
  .animal-layout .animal-gallery-more{min-width:145px;height:31px;margin:-1px 0 -29px;padding-inline:17px;font-size:9px;border-width:2px}
}

/* Botón de la galería: centrado y superpuesto al borde inferior, como en la maqueta. */
.animal-layout .animal-gallery{padding-bottom:48px}
.animal-layout .animal-gallery-more{position:absolute;left:50%;bottom:-25px;transform:translateX(-50%);width:306px;max-width:42%;min-width:0;height:60px;margin:0;padding:0 22px;border-width:4px;font-size:16px;white-space:nowrap}
@media(max-width:767px){
  .animal-layout .animal-gallery{padding-bottom:34px}
  .animal-layout .animal-gallery-more{bottom:-18px;width:145px;max-width:46%;height:31px;padding-inline:12px;border-width:2px;font-size:9px}
}

/* Iconos entregados para las tarjetas de enfoque. */
.green-icon{width:74px;height:74px;background:transparent;border:0;box-shadow:none;color:transparent;font-size:0}
.green-icon img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:767px){.green-icon{width:68px;height:68px}}

/* Proporciones de escritorio según la nueva maqueta de enfoque. */
@media(min-width:768px){
  .green{padding:62px 0 52px}
  .green>.container{max-width:1168px;padding-inline:0}
  .green-title{margin-bottom:76px}
  .green-title h2{font-size:clamp(48px,4.8vw,68px);line-height:.9}
  .green-grid{column-gap:22px;row-gap:36px}
  .green-card{min-height:214px;padding:48px 18px 18px 112px;border-radius:18px}
  .green-card-bar{height:47px;border-radius:18px 18px 0 0}
  .green-card-bar span{top:-15px;font-size:42px}
  .green-icon{left:8px;top:58%;width:104px;height:104px}
  .green-card p{font-size:clamp(14px,1.25vw,17px);line-height:1.18}
}

/* Foto recortada entregada por el usuario: se muestra sobre el fondo naranja. */
.animal-layout .animal-photo>img{left:-1%;bottom:-14px;width:auto;height:calc(100% + 28px);max-width:none;object-fit:contain;object-position:left bottom;border-radius:0;filter:none}
@media(max-width:767px){.animal-layout .animal-photo>img{left:-4%;bottom:-10px;height:calc(100% + 20px)}}

/* Nueva galería: tres piezas verticales y composición blanca con acentos naranja. */
.gallery{position:relative;isolation:isolate;overflow:hidden;padding:24px 0 58px;background:#f4f4f4;color:#0715a6}
.gallery:before{content:"";position:absolute;z-index:-2;left:-4%;right:22%;bottom:-60px;height:245px;background:url('../assets/fundacion-ciudad.jpg') left bottom/cover no-repeat;opacity:.55;pointer-events:none}
.gallery:after{content:"";position:absolute;z-index:-3;right:-105px;top:-150px;width:320px;height:900px;border-radius:50%;background:#ff5a05;transform:rotate(13deg);pointer-events:none}
.gallery-shape{position:absolute;z-index:-1;pointer-events:none}
.gallery-shape-top{right:-92px;top:116px;width:300px;height:760px;border-radius:50%;background:#ffb719;transform:rotate(13deg)}
.gallery-shape-bottom{left:-330px;bottom:-158px;width:1350px;height:250px;border-radius:50%;background:#ffb719;transform:rotate(12deg);box-shadow:0 80px 0 0 #08149b}
.gallery>.container.gallery-wrap{position:relative;z-index:1;max-width:1215px;padding:0;background:transparent;border-radius:0;overflow:visible}
.gallery-kicker{display:flex;align-items:center;justify-content:center;width:309px;height:60px;border-radius:32px;background:#ffb719;color:#0715a6;font:800 32px/1 var(--body);letter-spacing:.01em}
.gallery-heading{margin:16px 0 48px;padding:0;text-align:left;background:transparent}
.gallery-heading h2{margin:0;color:#0715a6;font:italic 900 clamp(56px,6vw,84px)/.9 var(--head);letter-spacing:-.025em;text-transform:uppercase}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:none;margin:0}
.gallery-card{display:block;width:100%;aspect-ratio:.78;padding:0;border:0;border-radius:22px;overflow:hidden;background:transparent;box-shadow:13px 14px 0 #d8d8d8;cursor:pointer;transition:transform .2s,box-shadow .2s}
.gallery-card:hover{transform:translateY(-4px);border-color:transparent;box-shadow:13px 18px 0 #c8c8c8}
.gallery-card img{display:block;width:100%;height:100%;object-fit:cover;border-radius:22px}
.gallery-more{display:flex;align-items:center;justify-content:center;width:389px;max-width:100%;height:76px;margin:28px auto 0;border:4px solid #2638ed;border-radius:999px;background:#070d66;color:#fff;text-decoration:none;font:800 24px/1 var(--body);text-transform:uppercase;box-shadow:none}
.gallery-more:hover{background:#11118a;color:#ffbd19}
@media(max-width:767px){
  .gallery{padding:24px 14px 48px}
  .gallery:before{right:-25%;height:190px;bottom:-58px}
  .gallery:after{right:-170px;top:-120px;width:270px;height:720px}
  .gallery-shape-top{right:-145px;top:140px;width:250px;height:600px}
  .gallery-shape-bottom{left:-390px;bottom:-145px;width:950px;height:200px}
  .gallery>.container.gallery-wrap{max-width:420px}
  .gallery-kicker{width:200px;height:48px;border-radius:26px;font-size:24px}
  .gallery-heading{margin:16px 0 28px;text-align:center}
  .gallery-heading h2{font-size:clamp(42px,12vw,64px);line-height:.88}
  .gallery-grid{grid-template-columns:1fr;gap:22px}
  .gallery-card{max-width:360px;margin:0 auto;box-shadow:9px 10px 0 #d8d8d8}
  .gallery-more{width:320px;height:58px;margin-top:26px;border-width:3px;font-size:17px}
}

/* Tarjetas de proyectos: icono completo, encabezado limpio y formas uniformes. */
.projects{overflow:visible;isolation:isolate}
.projects>.container{position:relative;z-index:1}
.project-grid{align-items:start}
.project-card{position:relative;overflow:visible;isolation:isolate;min-width:0;border-radius:20px;background:transparent}
.project-card .project-orb{position:absolute;z-index:5;top:-68px;left:50%;transform:translateX(-50%);display:block;width:100px;height:100px;max-width:none;object-fit:contain;border:0;border-radius:50%;background:transparent;box-shadow:none;pointer-events:none}
.project-card h3{position:relative;z-index:2;width:100%;height:100px;min-height:100px;margin:0;padding:40px 10px 16px;border-radius:20px 20px 0 0;background:#1114b3;color:#fff;text-align:center;display:flex;align-items:center;justify-content:center;font:900 clamp(18px,1.5vw,24px)/1.05 var(--head);text-transform:uppercase;box-sizing:border-box}
.project-media{position:relative;z-index:2;width:100%;box-sizing:border-box;background:#fff;padding:10px}
.project-media>div{width:100%;aspect-ratio:1.58;border-radius:13px;background-color:#d8d8d8;background-position:center;background-size:cover;background-repeat:no-repeat}
.project-card p{position:relative;z-index:2;width:100%;box-sizing:border-box;margin:0;min-height:80px;border-radius:0 0 20px 20px;background:#ef4000;color:#fff;padding:15px 12px;text-align:center;display:flex;align-items:center;justify-content:center;font-size:clamp(12px,1.05vw,15px);font-weight:500;line-height:1.25}
@media(max-width:991px){
  .project-card .project-orb{top:-56px;width:84px;height:84px}
  .project-card h3{height:88px;min-height:88px;padding:34px 7px 12px;font-size:17px}
}
@media(max-width:767px){
  .project-card .project-orb{top:-48px;width:74px;height:74px}
  .project-card h3{height:84px;min-height:84px;padding:31px 7px 10px;border-radius:14px 14px 0 0;font-size:18px}
  .project-card p{min-height:86px;border-radius:0 0 14px 14px;font-size:11px}
}
