
:root{--green:#2f8f68;--green-dark:#1e6248;--ink:#17312b;--muted:#65746f;--bg:#f1f5f3;--card:#fff;--line:#dce7e2}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Noto Sans",sans-serif;color:var(--ink);background:#fff}
a{color:inherit}.wrap{width:min(1120px,calc(100% - 32px));margin:auto}
.top{background:#fff;border-bottom:1px solid #e7eeeb}
.top .wrap{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 0}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);line-height:1}
.brand-mark{width:39px;height:39px;border-radius:50%;background:var(--green);display:grid;place-items:center;flex:0 0 auto}
.brand-leaf{width:20px;height:25px;background:#fff;border-radius:100% 0 100% 0;transform:rotate(-12deg);position:relative}
.brand-leaf:after{content:"";position:absolute;width:2px;height:19px;background:var(--green);left:9px;top:5px;transform:rotate(35deg);transform-origin:bottom}
.brand-copy{display:flex;flex-direction:column;gap:2px;letter-spacing:.02em}
.brand-copy strong{font-size:20px;color:var(--green-dark);font-weight:800}
.brand-copy span{font-size:11px;font-weight:800;letter-spacing:.16em;color:#53665f}
.back{font-size:14px;color:var(--green-dark);text-decoration:none}
.hero{background:linear-gradient(135deg,#e9f2ee,#f7faf8);padding:56px 0 42px}.kicker{text-transform:uppercase;letter-spacing:.13em;color:var(--green);font-size:13px;font-weight:800}
.hero h1{font-size:clamp(38px,7vw,72px);line-height:.98;margin:12px 0 18px;max-width:800px}.hero p{font-size:19px;line-height:1.5;max-width:720px;color:#49615a;margin:0}
.qr-place{display:none;margin-top:24px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:10px;width:max-content;max-width:100%;font-size:14px}
.guide{background:var(--bg);padding:34px 0 64px}.toolbar{position:sticky;top:0;z-index:10;background:rgba(241,245,243,.96);backdrop-filter:blur(8px);padding:14px 0 16px;margin-bottom:16px}
.filters{display:flex;gap:8px;overflow:auto;padding-bottom:2px}.filter{border:1px solid #cadbd3;background:#fff;border-radius:999px;padding:9px 14px;white-space:nowrap;font:inherit;font-weight:700;color:#426158;cursor:pointer}.filter.active{background:var(--green);border-color:var(--green);color:#fff}
.count{margin:10px 0 0;color:var(--muted);font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(23,49,43,.05);display:flex;flex-direction:column}
.photo{aspect-ratio:4/3;background:linear-gradient(135deg,#dfeae5,#c9ddd4);display:grid;place-items:center;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover;display:block}.birdmark{font-size:54px;opacity:.35}
.body{padding:18px}.body h2{font-size:22px;margin:0 0 3px}.latin{font-style:italic;color:var(--muted);margin-bottom:12px}.tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.tag{font-size:12px;font-weight:700;color:var(--green-dark);background:#e9f4ef;border:1px solid #cfe5da;border-radius:999px;padding:4px 8px}.desc{color:#4e625c;line-height:1.45;margin:0 0 14px}.more{border:0;background:none;padding:0;color:var(--green-dark);font:inherit;font-weight:800;cursor:pointer}
.details{display:none;border-top:1px solid var(--line);padding:16px 18px 18px;background:#fbfdfc}.details.open{display:block}.details p{margin:0 0 11px;line-height:1.45;color:#405650}.details strong{color:var(--ink)}
.tip{background:#173f34;color:#fff;padding:36px 0}.tip h2{margin:0 0 10px}.tip p{max-width:800px;margin:0;color:#dce9e4;line-height:1.55}
.footer{padding:30px 0}.footer .wrap{display:flex;justify-content:space-between;gap:20px;align-items:center}.motto{font-weight:700}.small{font-size:13px;color:var(--muted)}
.empty{grid-column:1/-1;text-align:center;padding:50px 20px;color:var(--muted)}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.wrap{width:min(100% - 24px,1120px)}.hero{padding:38px 0 30px}.hero p{font-size:17px}.grid{grid-template-columns:1fr}.guide{padding-top:20px}.footer .wrap{display:block}.small{margin-top:10px}.back{font-size:13px}}

.photo-credit{font-size:12px;color:var(--muted);margin-top:14px!important}.photo-credit a{color:var(--green-dark)}

a:focus-visible,button:focus-visible{outline:3px solid rgba(47,143,104,.35);outline-offset:3px}
@media(max-width:620px){
  .top .wrap{min-height:64px}
  .brand-mark{width:35px;height:35px}
  .brand-copy strong{font-size:18px}
  .brand-copy span{font-size:10px}
}

/* V4: logo oficial SOS HUMEDALES */
.brand-logo{display:block;width:138px;height:auto;max-height:48px;object-fit:contain}
@media(max-width:620px){.brand-logo{width:124px;max-height:44px}}

/* V6 — proporciones alineadas con la portada principal */
.wrap{width:100%;max-width:1170px;padding-left:15px;padding-right:15px;margin-left:auto;margin-right:auto}
.top .wrap{height:86px;min-height:86px;padding-top:0;padding-bottom:0}
.brand-logo{width:154px;max-height:56px}
.back{font-size:14px;font-weight:600}
.hero{padding:72px 0 58px}
.guide{padding:52px 0 72px}
.tip{padding:48px 0}
.footer{padding:34px 0}
@media(max-width:767px){
  .wrap{padding-left:15px;padding-right:15px}
  .top .wrap{height:72px;min-height:72px}
  .brand-logo{width:132px;max-height:48px}
  .hero{padding:46px 0 38px}
  .guide{padding:30px 0 54px}
  .tip{padding:38px 0}
}

/* V7 — header móvil corregido a partir de prueba real en teléfono */
@media(max-width:767px){
  .top{overflow:hidden}
  .top .wrap{
    width:100%;
    max-width:none;
    height:72px;
    min-height:72px;
    padding-left:20px;
    padding-right:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
  }
  .brand{
    flex:0 1 auto;
    min-width:0;
    overflow:visible;
  }
  .brand-logo{
    width:126px;
    max-width:126px;
    max-height:46px;
    height:auto;
    object-fit:contain;
    object-position:left center;
  }
  .back{
    flex:0 0 auto;
    max-width:calc(100vw - 186px);
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    text-align:right;
    font-size:13px;
    line-height:1.2;
  }
}
@media(max-width:380px){
  .top .wrap{padding-left:16px;padding-right:16px;gap:10px}
  .brand-logo{width:112px;max-width:112px}
  .back{max-width:calc(100vw - 154px);font-size:12px}
}

/* V8 — concientización + cierre visual con bosque nativo */
.dog-awareness{background:#fff;padding:36px 0 18px}
.dog-card{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:150px minmax(0,1fr) 100px;
  align-items:center;gap:26px;
  padding:24px 30px;
  border:1px solid #dce7e2;border-radius:18px;
  background:linear-gradient(105deg,#f3f7f1 0%,#fbfdfb 62%,#edf4ec 100%);
}
.dog-icon{color:#0f5d45;border-right:1px solid #9fb9ae;padding-right:24px}
.dog-icon svg{display:block;width:112px;max-width:100%;height:auto;fill:currentColor}
.dog-copy{position:relative;z-index:2}
.dog-copy h2{margin:0 0 7px;font-size:25px;color:#123f34}
.dog-copy p{margin:0;color:#405650;line-height:1.45;font-size:16px}
.dog-copy .dog-message{margin-top:8px;color:#2f7d36;font-weight:800}
.dog-leaves{align-self:stretch;width:100%;height:128px;color:#aac3b2;fill:currentColor;opacity:.82}

.motto-landscape{
  position:relative;min-height:190px;overflow:hidden;
  background:linear-gradient(to bottom,#fff 0%,#f1f6f3 50%,#dce9e2 100%);
  display:flex;align-items:center;justify-content:center;
}
.motto-landscape:before{
  content:"";position:absolute;left:-5%;right:-5%;bottom:32px;height:85px;
  background:#d2e1da;opacity:.8;
  clip-path:polygon(0 82%,10% 48%,20% 68%,31% 25%,43% 62%,55% 35%,67% 70%,80% 30%,91% 61%,100% 39%,100% 100%,0 100%);
}
.motto-inner{position:relative;z-index:3;text-align:center;padding:40px 15px 64px}
.motto-inner p{margin:0;color:#245747;font-size:23px;line-height:1.25;font-weight:700}
.motto-inner em{font-weight:500}
.coihue-layer{position:absolute;left:0;right:0;bottom:0;height:115px;display:flex;align-items:flex-end;justify-content:space-around;pointer-events:none}
.coihue-layer span{
  position:relative;display:block;width:80px;height:76px;border-radius:50% 55% 48% 52%;
  background:#88a99a;opacity:.46;
}
.coihue-layer span:before{
  content:"";position:absolute;left:50%;bottom:-38px;width:7px;height:55px;background:currentColor;transform:translateX(-50%);
}
.coihue-layer span:after{
  content:"";position:absolute;left:10px;right:10px;top:22px;height:38px;
  background:inherit;border-radius:50%;transform:rotate(-10deg);
}
.coihue-back{color:#9db7ac;opacity:.55;transform:scale(.82);transform-origin:bottom}
.coihue-front{color:#6f9585}
.coihue-front span:nth-child(1){width:108px;height:84px;transform:translateX(-25px)}
.coihue-front span:nth-child(2){width:92px;height:70px}
.coihue-front span:nth-child(3){width:112px;height:88px}
.coihue-front span:nth-child(4){width:96px;height:74px;transform:translateX(22px)}
.footer{background:#174f40;color:#fff}
.footer .small{color:#dce9e4}

@media(max-width:767px){
  .dog-awareness{padding:26px 0 12px}
  .dog-card{grid-template-columns:72px minmax(0,1fr);gap:16px;padding:20px}
  .dog-icon{padding-right:14px}
  .dog-icon svg{width:66px}
  .dog-copy h2{font-size:21px}
  .dog-copy p{font-size:15px}
  .dog-leaves{display:none}
  .motto-landscape{min-height:165px}
  .motto-inner{padding:35px 15px 58px}
  .motto-inner p{font-size:20px}
  .coihue-layer{height:88px}
  .coihue-layer span{width:58px;height:55px}
}
@media(max-width:430px){
  .dog-card{grid-template-columns:1fr}
  .dog-icon{border-right:0;border-bottom:1px solid #b9cec4;padding:0 0 10px}
  .dog-icon svg{width:62px}
}

/* V9 — cierre inspirado en el mockup aprobado */
.visitor-practices{background:#fff;padding:22px 0 4px}
.practice-grid{display:grid;grid-template-columns:repeat(5,1fr);align-items:start}
.practice{position:relative;text-align:center;color:#194d40;font-size:14px;line-height:1.2;padding:4px 16px 14px}
.practice:not(:last-child):after{content:"";position:absolute;right:0;top:14px;width:1px;height:50px;background:#dbe7e1}
.practice-icon{display:block;height:34px;margin:0 auto 6px;font-size:29px;line-height:30px;font-weight:700;color:#17614d}
.camera-icon{width:31px;height:25px;border:3px solid currentColor;border-radius:5px;position:relative;margin-top:3px}
.camera-icon:before{content:"";position:absolute;width:8px;height:5px;border:3px solid currentColor;border-bottom:0;left:8px;top:-8px;border-radius:3px 3px 0 0}
.camera-icon:after{content:"";position:absolute;width:8px;height:8px;border:3px solid currentColor;border-radius:50%;left:8px;top:5px}
.path-icon{font-size:36px;transform:rotate(90deg)}
.bin-icon{font-size:32px}
.leaf-icon{font-size:33px}

/* Rebuild the lower landscape: layered mountains + broadleaf coihue silhouettes */
.motto-landscape{min-height:205px;background:linear-gradient(to bottom,#fff 0%,#f6f9f7 32%,#e8f0ec 100%)}
.motto-landscape:before{
  left:-3%;right:-3%;bottom:27px;height:108px;opacity:1;background:#dbe7e1;
  clip-path:polygon(0 82%,7% 58%,15% 70%,24% 35%,34% 63%,43% 47%,53% 69%,63% 38%,72% 65%,82% 30%,91% 58%,100% 41%,100% 100%,0 100%);
}
.motto-landscape:after{
  content:"";position:absolute;left:-4%;right:-4%;bottom:18px;height:82px;background:#cbdcd4;opacity:.78;
  clip-path:polygon(0 74%,10% 48%,20% 67%,30% 42%,40% 71%,51% 49%,61% 72%,72% 45%,83% 66%,92% 46%,100% 62%,100% 100%,0 100%);
}
.motto-inner{padding:34px 15px 76px}
.motto-inner p{font-size:22px;font-weight:700;color:#245747;line-height:1.22}
.motto-inner em{font-size:20px;font-weight:500}

/* Coihue-like silhouettes: irregular rounded crowns, visible branching, no conifer triangles */
.coihue-layer{z-index:2;height:93px;justify-content:space-between;align-items:flex-end}
.coihue-layer span{
  width:105px;height:47px;border-radius:58% 42% 52% 48% / 65% 62% 38% 35%;
  background:#86a99a;opacity:.62;color:#789b8c;
  box-shadow:-25px 10px 0 -5px currentColor,25px 8px 0 -7px currentColor;
}
.coihue-layer span:before{left:50%;bottom:-45px;width:6px;height:58px;background:#789b8c}
.coihue-layer span:after{
  left:46px;top:28px;width:4px;height:34px;right:auto;background:#789b8c;border-radius:3px;
  transform:rotate(28deg);transform-origin:bottom;
}
.coihue-back{opacity:.45;transform:scale(.82);transform-origin:bottom;color:#a1bdb1}
.coihue-front{opacity:.78;color:#719789}
.coihue-front span:nth-child(1){width:125px;height:54px;transform:translateX(-20px)}
.coihue-front span:nth-child(2){width:105px;height:45px}
.coihue-front span:nth-child(3){width:128px;height:57px}
.coihue-front span:nth-child(4){width:112px;height:48px;transform:translateX(20px)}

@media(max-width:767px){
  .visitor-practices{padding-top:18px}
  .practice-grid{grid-template-columns:repeat(5,minmax(95px,1fr));overflow-x:auto;padding-bottom:8px}
  .practice{font-size:12px;padding-left:10px;padding-right:10px}
  .motto-landscape{min-height:180px}
  .motto-inner{padding:30px 15px 68px}
  .motto-inner p{font-size:19px}
  .motto-inner em{font-size:17px}
}

/* V10 — ajuste fino siguiendo el mockup aprobado */
.dog-awareness{padding:30px 0 16px;background:#fff}
.dog-card{grid-template-columns:150px 1px minmax(0,1fr) 88px;gap:24px;padding:22px 28px;border-radius:16px;background:linear-gradient(100deg,#f1f6ef 0%,#fbfdfb 72%,#eef5ed 100%)}
.dog-figure{color:#075d48;display:flex;align-items:center;justify-content:center}
.dog-figure svg{width:135px;height:auto;display:block}
.dog-divider{height:84px;background:#8fb7a8}
.dog-copy h2{font-size:25px;margin:0 0 5px;color:#063f34}
.dog-copy p{font-size:15px;line-height:1.42}
.dog-copy .dog-message{font-size:15px;margin-top:7px;color:#26802f}
.dog-leaves{height:112px;color:#a7c9b4;opacity:.85}

.visitor-practices{padding:24px 0 10px;background:#fff}
.practice-grid{display:grid;grid-template-columns:repeat(5,1fr)}
.practice{font-size:13px;color:#174f42;padding:0 16px 10px;line-height:1.22}
.practice:not(:last-child):after{top:6px;height:48px;background:#d7e4de}
.practice svg{display:block;width:31px;height:31px;margin:0 auto 7px;fill:none;stroke:#08705a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.practice:first-child svg circle:first-child{fill:none}
.practice:first-child svg circle:last-child{fill:#08705a;stroke:none}

.motto-landscape{position:relative;min-height:205px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.native-landscape{position:absolute;left:0;right:0;bottom:0;width:100%;height:170px}
.native-landscape .mountain.back{fill:#e1ebe6}
.native-landscape .mountain.front{fill:#cfdfd7}
.native-landscape .coihues{stroke:#7da293;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.native-landscape .coihues path:first-child,.native-landscape .coihues path:nth-child(2){fill:none}
.native-landscape .back-trees{fill:#abc5ba;opacity:.62;stroke:#9ab9ac}
.native-landscape .front-trees{fill:#789f90;opacity:.78;stroke:#6e9586}
.motto-inner{position:relative;z-index:3;text-align:center;padding:25px 15px 83px}
.motto-inner p{font-size:21px;line-height:1.2;font-weight:800;color:#12604c}
.motto-inner em{font-size:18px;font-weight:500;color:#12604c}

@media(max-width:767px){
  .dog-card{grid-template-columns:92px 1px minmax(0,1fr);gap:15px;padding:18px}
  .dog-figure svg{width:82px}
  .dog-divider{height:94px}
  .dog-leaves{display:none}
  .dog-copy h2{font-size:20px}
  .dog-copy p,.dog-copy .dog-message{font-size:14px}
  .practice-grid{grid-template-columns:repeat(5,minmax(105px,1fr));overflow-x:auto}
  .motto-landscape{min-height:180px}
  .native-landscape{height:140px}
  .motto-inner{padding-bottom:70px}
}
@media(max-width:430px){
  .dog-card{grid-template-columns:74px minmax(0,1fr);gap:14px}
  .dog-divider{display:none}
  .dog-figure{align-self:start;padding-top:6px}
  .dog-figure svg{width:70px}
}

/* V11 — lower landing rebuilt to match approved visual reference */
.dog-awareness{background:#fff;padding:34px 0 14px}
.dog-card-v11{display:grid;grid-template-columns:190px 1px minmax(0,1fr) 105px;gap:28px;align-items:center;padding:27px 34px;border:1px solid #d9e7df;border-radius:17px;background:linear-gradient(105deg,#f1f7f1,#fbfdfb 70%,#eef6ef)}
.dog-figure-v11{color:#075b47;display:flex;justify-content:center}
.dog-figure-v11 svg{width:165px;display:block}
.dog-divider-v11{height:118px;background:#8eb4a6}
.dog-card-v11 .dog-copy h2{font-size:27px;margin:0 0 8px;color:#063f35}
.dog-card-v11 .dog-copy p{font-size:16px;line-height:1.46;color:#31534a}
.dog-card-v11 .dog-copy .dog-message{margin-top:9px;font-size:16px;color:#278033;font-weight:800}
.dog-leaves-v11{width:95px;height:135px;color:#a8cdb9;fill:currentColor}

.visitor-practices-v11{background:#fff;padding:26px 0 18px}
.practice-grid-v11{display:grid;grid-template-columns:repeat(5,1fr)}
.practice-v11{position:relative;text-align:center;color:#154f42;font-size:14px;line-height:1.25;padding:0 20px}
.practice-v11:not(:last-child):after{content:"";position:absolute;right:0;top:9px;width:1px;height:61px;background:#d7e5df}
.practice-v11 svg{width:39px;height:39px;margin:0 auto 8px;display:block;fill:none;stroke:#086a56;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

.motto-landscape-v11{position:relative;min-height:285px;overflow:hidden;background:linear-gradient(#fff 0%,#fbfcfb 25%,#eef4f1 100%);display:flex;align-items:flex-start;justify-content:center}
.landscape-v11{position:absolute;inset:auto 0 0;width:100%;height:245px}
.landscape-v11 .r1{fill:#e1ebe6}
.landscape-v11 .r2{fill:#ccded5}
.landscape-v11 .tree{stroke-linecap:round;stroke-linejoin:round;stroke-width:5}
.landscape-v11 .tree path:first-child{fill:none}
.landscape-v11 .tree.back{fill:#a9c4b8;stroke:#91b0a3;opacity:.72}
.landscape-v11 .tree.front{fill:#6f9787;stroke:#668e7e;opacity:.88}
.motto-v11{position:relative;z-index:3;text-align:center;padding-top:35px;color:#075846}
.motto-v11 p{margin:0;font-size:25px;font-weight:800;line-height:1.15}
.motto-v11 span{display:block;margin-top:3px;font-size:21px;font-style:italic}
.motto-v11 i{display:block;width:170px;height:2px;background:#075846;margin:13px auto 0;transform:rotate(-4deg);border-radius:50%}

@media(max-width:767px){
 .dog-card-v11{grid-template-columns:100px 1px minmax(0,1fr);gap:15px;padding:20px}
 .dog-figure-v11 svg{width:92px}
 .dog-divider-v11{height:110px}
 .dog-leaves-v11{display:none}
 .dog-card-v11 .dog-copy h2{font-size:21px}
 .dog-card-v11 .dog-copy p,.dog-card-v11 .dog-copy .dog-message{font-size:14px}
 .practice-grid-v11{grid-template-columns:repeat(5,minmax(108px,1fr));overflow-x:auto;padding-bottom:8px}
 .practice-v11{font-size:12px;padding:0 12px}
 .practice-v11 svg{width:33px;height:33px}
 .motto-landscape-v11{min-height:225px}
 .landscape-v11{height:185px}
 .motto-v11{padding-top:25px}
 .motto-v11 p{font-size:20px}
 .motto-v11 span{font-size:17px}
}
@media(max-width:430px){
 .dog-card-v11{grid-template-columns:82px minmax(0,1fr);gap:14px}
 .dog-divider-v11{display:none}
 .dog-figure-v11{align-self:start;padding-top:6px}
 .dog-figure-v11 svg{width:78px}
}

/* V12 — approved-reference artwork, not CSS approximations */
.dog-awareness-v12{padding:34px 0 18px;background:#fff}
.dog-card-v12{display:grid;grid-template-columns:250px 1px minmax(0,1fr) 115px;gap:26px;align-items:center;padding:18px 28px;border:1px solid #d8e5dd;border-radius:18px;background:linear-gradient(100deg,#f1f6ef,#fbfdfb 72%,#eef5ed)}
.dog-art-v12{height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.dog-art-v12 img{width:250px;height:174px;object-fit:cover;display:block;mix-blend-mode:multiply}
.dog-divider-v12{height:170px;background:#79a797}
.dog-copy-v12 h2{margin:0 0 9px;font-size:29px;color:#073f35}
.dog-copy-v12 p{margin:0;font-size:16px;line-height:1.45;color:#244d43}
.dog-copy-v12 .dog-message{margin-top:10px;font-size:17px;font-weight:800;color:#26802f}
.leaf-art-v12{color:#a5c6b5}
.leaf-art-v12 svg{width:105px;height:145px;fill:currentColor;display:block}

.practice-observe-v12 img{width:54px;height:42px;object-fit:cover;display:block;margin:0 auto 5px;mix-blend-mode:multiply}
.motto-landscape-v12{min-height:0!important;height:auto!important;background:#fff!important;display:block!important;overflow:hidden}
.motto-landscape-v12 picture,.motto-landscape-v12 img{display:block;width:100%;height:auto}
.motto-landscape-v12:before,.motto-landscape-v12:after{display:none!important}

@media(max-width:767px){
  .dog-card-v12{grid-template-columns:112px 1px minmax(0,1fr);gap:14px;padding:16px}
  .dog-art-v12{height:125px}
  .dog-art-v12 img{width:112px;height:110px}
  .dog-divider-v12{height:125px}
  .leaf-art-v12{display:none}
  .dog-copy-v12 h2{font-size:21px}
  .dog-copy-v12 p{font-size:13px;line-height:1.38}
  .dog-copy-v12 .dog-message{font-size:13px;margin-top:6px}
  .motto-landscape-v12 picture{width:150%;margin-left:-25%}
}
@media(max-width:430px){
  .dog-card-v12{grid-template-columns:92px minmax(0,1fr)}
  .dog-divider-v12{display:none}
  .dog-art-v12{height:110px}
  .dog-art-v12 img{width:92px;height:100px}
}

/* V13 — paisaje final aprobado */
.motto-landscape-v13{
  display:block!important;
  width:100%;
  min-height:0!important;
  height:auto!important;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#fff!important;
}
.motto-landscape-v13:before,
.motto-landscape-v13:after{display:none!important}
.motto-landscape-v13 img{
  display:block;
  width:100%;
  height:auto;
  margin:0;
}
@media(max-width:767px){
  .motto-landscape-v13{
    overflow:hidden;
  }
  .motto-landscape-v13 img{
    width:155%;
    max-width:none;
    margin-left:-27.5%;
  }
}

/* V14 — orden final aprobado y limpieza del cierre */
.visitor-practices-v12,
.dog-awareness-v12,
.motto-landscape-v13{
  border-bottom:0!important;
}
.motto-landscape-v13{
  line-height:0;
  margin-bottom:0!important;
  padding-bottom:0!important;
}
.motto-landscape-v13 img{
  vertical-align:bottom;
  margin-bottom:0!important;
}
main{
  padding-bottom:0!important;
  margin-bottom:0!important;
}
main + .footer,
.footer{
  margin-top:0!important;
  border-top:0!important;
}

/* V15 — paisaje artístico aprobado */
.motto-landscape-v15{
  display:block!important;
  width:100%;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden;
  line-height:0;
  background:#fff!important;
  border:0!important;
}
.motto-landscape-v15:before,
.motto-landscape-v15:after{display:none!important}
.motto-landscape-v15 img{
  display:block;
  width:100%;
  max-width:none;
  height:auto;
  margin:0!important;
  padding:0!important;
  vertical-align:bottom;
}
@media(max-width:767px){
  .motto-landscape-v15 img{
    width:170%;
    margin-left:-35%!important;
  }
}

/* V16 — corrección puntual: ilustración perro/persona completa en mobile */
@media(max-width:767px){
  .dog-art-v12{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    align-self:center;
  }
  .dog-art-v12 img{
    display:block;
    width:100%!important;
    height:auto!important;
    max-width:112px!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0 auto!important;
  }
}
@media(max-width:430px){
  .dog-art-v12{
    height:auto!important;
    overflow:visible!important;
    padding:2px 0;
  }
  .dog-art-v12 img{
    width:100%!important;
    max-width:88px!important;
    height:auto!important;
    object-fit:contain!important;
  }
}

/* V17 — revisión mobile completa: sin scroll horizontal */
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden!important;
}
.aves-vla,
.aves-vla main,
.aves-vla section,
.aves-vla .wrap{
  max-width:100%;
  box-sizing:border-box;
}
.aves-vla img,
.aves-vla svg{
  max-width:100%;
}

/* The five recommendations now wrap instead of creating a horizontal carousel. */
@media(max-width:767px){
  .practice-grid,
  .practice-grid-v11,
  .practice-grid-v12{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    gap:0!important;
    padding-bottom:4px!important;
  }
  .practice,
  .practice-v11,
  .practice-v12{
    min-width:0!important;
    width:auto!important;
    padding:14px 10px!important;
    box-sizing:border-box;
  }
  .practice:not(:last-child):after,
  .practice-v11:not(:last-child):after,
  .practice-v12:not(:last-child):after{
    display:none!important;
  }
  .practice:nth-child(odd),
  .practice-v11:nth-child(odd),
  .practice-v12:nth-child(odd){
    border-right:1px solid #d7e5df;
  }
  .practice,
  .practice-v11,
  .practice-v12{
    border-bottom:1px solid #e4ece8;
  }
  .practice:last-child,
  .practice-v11:last-child,
  .practice-v12:last-child{
    grid-column:1 / -1;
    border-right:0!important;
    border-bottom:0;
  }

  /* Filters: wrap onto multiple rows rather than overflowing sideways. */
  .filters,
  .filter-row,
  .filter-list{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    max-width:100%!important;
    gap:8px!important;
  }
  .filters button,
  .filter-row button,
  .filter-list button{
    flex:0 1 auto;
    max-width:100%;
  }

  /* Bird grids/cards and expanded content cannot force viewport width. */
  .grid,
  .bird-grid,
  .cards,
  .card,
  .bird-card,
  .detail,
  .bird-detail{
    min-width:0!important;
    max-width:100%!important;
  }

  /* Dog block: full artwork, no crop, no width overflow. */
  .dog-card-v12{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .dog-art-v12{
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }

  /* Artistic landscape: no oversized 170% image on mobile. */
  .motto-landscape-v15{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .motto-landscape-v15 img{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin-left:0!important;
    object-fit:cover!important;
    object-position:center!important;
  }

  /* Header safety. */
  .top,
  .top .wrap{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .back{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}

@media(max-width:430px){
  .practice-grid,
  .practice-grid-v11,
  .practice-grid-v12{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .practice,
  .practice-v11,
  .practice-v12{
    font-size:12px!important;
  }
}

/* V18 — buscador abierto de aves */
.bird-search{margin:0 0 20px;max-width:760px}
.bird-search label{display:block;font-weight:700;color:#0d5546;margin-bottom:8px;font-size:1.05rem}
.bird-search-box{display:flex;align-items:center;gap:10px;border:1px solid #c9ddd6;border-radius:14px;background:#fff;padding:0 14px;box-shadow:0 4px 18px rgba(15,82,70,.06)}
.bird-search-box span{font-size:1.45rem;color:#0d6654;line-height:1}
.bird-search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;padding:13px 0;font:inherit;color:#183b34}
.bird-search-box input::placeholder{color:#71827d}
.bird-search-help{margin:7px 2px 0;color:#667872;font-size:.84rem}
@media(max-width:767px){
  .bird-search{width:100%;max-width:100%;margin-bottom:16px}
  .bird-search-box{width:100%;max-width:100%;box-sizing:border-box}
  .bird-search-box input{font-size:16px} /* evita zoom automático en iPhone */
}

/* V19 — mejora para especies aún sin foto */
.card-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.photo-state{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
  border:1px solid transparent;
}
.photo-state.has-photo{
  color:#0d6b54;
  background:#e7f7f0;
  border-color:#b6e2cf;
}
.photo-state.missing-photo{
  color:#7a5c11;
  background:#fff6d8;
  border-color:#ead596;
}
.photo .birdmark{
  width:100%;
  height:100%;
  min-height:240px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
  box-sizing:border-box;
  position:relative;
  overflow:hidden;
}
.photo .birdmark::before{
  content:'';
  position:absolute;
  inset:0;
  opacity:.95;
}
.photo .birdmark.env-forest::before{
  background:linear-gradient(160deg,#e9f3ee 0%,#d6e9df 100%);
}
.photo .birdmark.env-wetland::before{
  background:linear-gradient(160deg,#e9f4f0 0%,#d4ebe6 100%);
}
.photo .birdmark.env-water::before{
  background:linear-gradient(160deg,#e7f1f7 0%,#d9e7f1 100%);
}
.photo .birdmark.env-urban::before{
  background:linear-gradient(160deg,#f1f3f4 0%,#e3e8ea 100%);
}
.birdmark-art,.birdmark-text{
  position:relative;
  z-index:1;
}
.birdmark-art{
  width:106px;
  height:106px;
  margin-bottom:12px;
}
.birdmark-art svg{
  width:100%;
  height:100%;
  display:block;
}
.birdmark .ring{
  fill:rgba(255,255,255,.5);
}
.birdmark.env-forest .bird-body,
.birdmark.env-forest .bird-wing,
.birdmark.env-forest .bird-beak,
.birdmark.env-forest .bird-eye{
  fill:#255b46;
}
.birdmark.env-wetland .bird-body,
.birdmark.env-wetland .bird-wing,
.birdmark.env-wetland .bird-beak,
.birdmark.env-wetland .bird-eye{
  fill:#2f6e63;
}
.birdmark.env-water .bird-body,
.birdmark.env-water .bird-wing,
.birdmark.env-water .bird-beak,
.birdmark.env-water .bird-eye{
  fill:#36617a;
}
.birdmark.env-urban .bird-body,
.birdmark.env-urban .bird-wing,
.birdmark.env-urban .bird-beak,
.birdmark.env-urban .bird-eye{
  fill:#5a666d;
}
.birdmark-text strong{
  display:block;
  color:#173730;
  font-size:1rem;
  line-height:1.2;
}
.birdmark-text span{
  display:block;
  margin-top:4px;
  color:#47615a;
  font-size:.88rem;
  line-height:1.35;
}
.photo-credit.pending{
  color:#6e6443;
  background:#fff8df;
  border:1px solid #eedda2;
  border-radius:10px;
  padding:10px 12px;
}
@media(max-width:767px){
  .card-headline{
    flex-direction:column;
    align-items:flex-start;
  }
  .photo-state{
    margin-top:-2px;
  }
  .photo .birdmark{
    min-height:190px;
  }
  .birdmark-art{
    width:90px;
    height:90px;
  }
}

/* V20 — origen del registro y sitios SOS HUMEDALES */
.source-state{flex:0 0 auto;display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:.70rem;line-height:1.1;font-weight:700;white-space:nowrap}
.source-state.sos{color:#0b5d48;background:#e3f4ec;border:1px solid #b8dece}
.source-state.bib{color:#5d655f;background:#f1f3f2;border:1px solid #d9dfdc}
.survey-sites{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0 2px}
.survey-sites span{display:inline-flex;padding:4px 7px;border-radius:7px;background:#f6f7f4;color:#4a5d56;font-size:.69rem;line-height:1.15;border:1px solid #e3e8e4}
@media(max-width:767px){.source-state{font-size:.67rem}.survey-sites span{font-size:.66rem}}


/* Etiquetas de fotos comunitarias: título en una fila, etiquetas debajo. */
.card-headline.with-community-photo{flex-wrap:wrap;justify-content:flex-start;gap:8px}
.card-headline.with-community-photo>div:first-child{flex:1 0 100%;min-width:0}
.card-headline.with-community-photo .source-state{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
/* V60: distancia corta entre «Compartí tu foto» y «Buscar un ave». */
.hero{padding-bottom:10px}
.guide{padding-top:10px}
@media(max-width:767px){
  .hero{padding-bottom:8px}
  .guide{padding-top:10px}
}

/* V53: fotos ampliables en cada ficha */
.photo-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.photo-open:focus-visible{outline:3px solid #14694f;outline-offset:-3px}
.photo-viewer{width:min(1100px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:48px 16px 16px;border:0;border-radius:16px;background:#14392f;color:#fff;box-shadow:0 18px 60px #0008;text-align:center}
.photo-viewer::backdrop{background:rgba(5,22,17,.84)}
.photo-viewer figure{margin:0}
.photo-viewer figure img{display:block;margin:auto;max-width:100%;max-height:calc(100dvh - 152px);width:auto;height:auto;object-fit:contain;border-radius:5px}
.photo-viewer figcaption{margin-top:12px;font-size:14px;line-height:1.4}
.photo-viewer figcaption strong{display:block;font-size:17px}
.photo-viewer figcaption span:empty{display:none}
.photo-viewer-close{position:absolute;right:12px;top:8px;width:36px;height:36px;border:0;border-radius:50%;background:#ffffff28;color:#fff;font:30px/1 Arial,sans-serif;cursor:pointer}
.photo-viewer-close:hover,.photo-viewer-close:focus-visible{background:#ffffff55}

/* V54: grabaciones de referencia, cargadas únicamente al solicitarlas. */
.bird-audio{margin:18px 0 14px;padding:14px;border:1px solid #c9dfd5;border-radius:12px;background:#f4faf7;color:#143e32}
.bird-audio>strong{display:block;font-size:1rem}
.bird-audio p{margin:5px 0 12px;font-size:.88rem;line-height:1.45}
.bird-audio .audio-load{display:inline-flex;align-items:center;padding:9px 13px;border:0;border-radius:8px;background:#0c6851;color:white;font:inherit;font-size:.88rem;font-weight:700;cursor:pointer}
.bird-audio .audio-load:hover,.bird-audio .audio-load:focus-visible{background:#084d3c}
.bird-audio .audio-load:disabled{background:#5d776e;cursor:default}
.bird-audio .audio-slot:not(:empty){margin:12px 0 8px}
.bird-audio iframe{display:block;max-width:100%;border:0;background:#fff}
.bird-audio>a{display:inline-block;margin-top:10px;font-size:.82rem;overflow-wrap:anywhere}

/* V56: tipo de vocalización visible y espacio para varios audios por especie. */
.bird-audio .audio-record{margin-top:12px;padding-top:12px;border-top:1px solid #d5e8dc}
.bird-audio .audio-type{display:block;margin-bottom:9px;font-size:.93rem;font-weight:700;color:#174936}
.bird-audio .audio-record>a{display:inline-block;margin-top:10px;font-size:.82rem;overflow-wrap:anywhere}

/* V58: criterios adicionales bajo un control compacto junto a los ambientes. */
.advanced-toggle{border:1px solid #a8c6b8;background:#eef7f1;border-radius:999px;padding:9px 14px;white-space:nowrap;font:inherit;font-weight:700;color:#245b42;cursor:pointer}
.advanced-toggle::after{content:' ▾'}
.advanced-toggle[aria-expanded="true"]::after{content:' ▴'}
.advanced-toggle.has-filters{background:#dceee4;border-color:#69a984;color:#174d37}
.toolbar.advanced-open{position:relative}
.advanced-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:end;margin-top:12px;padding:16px;border:1px solid #d3e5da;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(23,49,43,.04)}
.advanced-filters[hidden],.advanced-clear[hidden]{display:none}
.advanced-field{min-width:0}
.advanced-field label{display:block;margin-bottom:6px;font-size:14px;font-weight:700;color:#245b42}
.advanced-field select{display:block;width:100%;min-height:43px;border:1px solid #b8d4c4;border-radius:8px;padding:8px 34px 8px 11px;background:#fff;color:var(--ink);font:inherit}
.advanced-clear{grid-column:1/-1;justify-self:start;border:0;background:transparent;padding:4px 0;color:var(--green-dark);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
@media(max-width:620px){.advanced-filters{grid-template-columns:1fr;padding:14px}}

/* Tipografía de la guía de Plantas */
@font-face{font-family:'Noto Sans';src:url('../fonts/NotoSans-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Noto Sans';src:url('../fonts/NotoSans-Bold.ttf') format('truetype');font-weight:600 900;font-display:swap}
button,input,select,textarea,.photo-viewer-close{font-family:"Noto Sans",sans-serif}
.hero h1{line-height:1.08}
@media(max-width:620px){.hero h1{font-size:38px}}
