/* CHILE PARA EL MUNDO v9 — experiencias interactivas, diseño editorial */
:root{--v9-navy:#0b2945;--v9-ink:#18374a;--v9-red:#a51e3b;--v9-sand:#f5efe4;--v9-line:#bfd0d4}
.v9-section{padding:clamp(46px,6vw,95px) 0;background:#f2f1e9;color:var(--v9-ink);font-size:clamp(17px,1.2vw,20px)}
.v9-section:nth-of-type(even){background:#e2edef}
.v9-section h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(35px,4.1vw,62px);line-height:1.06;letter-spacing:-.025em;color:#103450;margin:.15em 0 .32em}
.v9-section h3{font-family:Georgia,'Times New Roman',serif;font-size:clamp(25px,2.3vw,36px);line-height:1.16;color:#103450;margin:.2em 0}
.v9-section p{line-height:1.56;max-width:850px}
.v9-kicker{display:inline-block;color:#8f213b;font-weight:900;letter-spacing:.12em;font-size:.78em;margin-bottom:10px}
.v9-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:25px}
.v9-head p{margin:7px 0}
.v9-textlink,.v9-source-links a{color:#063d62;font-weight:750;text-underline-offset:3px}
.v9-filters{display:flex;flex-wrap:wrap;gap:9px;margin:26px 0 22px}
.v9-filters button,.v9-secondary,.v9-recipe-list button{background:#fff;color:#13364e;border:2px solid #b7cbd0;border-radius:12px;padding:12px 19px;cursor:pointer;font-size:clamp(15px,1vw,18px);font-weight:750}
.v9-filters button[aria-pressed=true],.v9-recipe-list button[aria-pressed=true]{background:var(--v9-navy);color:white;border-color:var(--v9-navy)}
.v9-photo-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.v9-photo-card{border:0;border-radius:19px;overflow:hidden;background:#fff;box-shadow:0 8px 24px #06284112;display:flex;flex-direction:column;min-width:0}
.v9-photo-card img{height:210px;width:100%;object-fit:cover;background:#d9e5e5}
.v9-photo-card .v9-photo-caption{padding:15px 17px;flex:1;display:flex;flex-direction:column;gap:5px}
.v9-photo-card h3{font-family:Georgia,serif;font-size:clamp(20px,1.5vw,26px);margin:0}
.v9-photo-caption small{color:#475e6a;font-weight:700}
.v9-photo-caption .v9-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto;padding-top:9px}
.v9-primary,.v9-save,.v9-secondary,.v9-route-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;line-height:1.25;min-height:43px}
.v9-primary{border:2px solid var(--v9-red);background:var(--v9-red);color:#fff;font-size:16px;border-radius:11px;font-weight:800;padding:12px 16px}
.v9-primary:hover{background:#7a0d25}.v9-save{color:#0d3850;background:#fff;border:2px solid #a7c1c8;border-radius:11px;font-size:15px;font-weight:800;padding:9px 12px}
.v9-save[aria-pressed=true]{color:#fff;background:#0d3850;border-color:#0d3850}
.v9-note{font-size:15px;color:#445e6e;line-height:1.55}
.v9-city-search{display:grid;grid-template-columns:1fr 1.1fr;gap:20px;align-items:center;background:white;border:2px solid #bfd0d4;border-radius:18px;padding:21px;margin:0 0 16px}
.v9-city-search label{display:block;font-weight:900;color:#12364e;font-size:clamp(18px,1.35vw,23px)}
.v9-city-search p{font-size:15px;margin:3px 0;color:#466070}.v9-city-box{position:relative}
.v9-city-box input,.v9-planner-form select,.v9-story-form input,.v9-story-form textarea,.v9-story-form select{width:100%;border:2px solid #a1bec6;background:#fff;color:#142f44;font-size:17px;border-radius:10px;padding:12px 13px;box-sizing:border-box}
.v9-city-results{position:absolute;top:100%;left:0;right:0;max-height:230px;overflow:auto;background:white;z-index:600;border-radius:10px;box-shadow:0 12px 28px #0b294533}
.v9-city-results:empty{display:none}.v9-city-results button{display:block;width:100%;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;padding:12px;color:#15374d;cursor:pointer}
.v9-city-results button:hover,.v9-city-results button:focus-visible{background:#e5f1f3}
.v9-history{background:#f9f3eb}
.v9-compare-layout{display:grid;grid-template-columns:1.3fr .9fr;gap:30px;background:white;border-radius:22px;padding:24px;box-shadow:0 8px 28px #09294112}
.v9-compare{position:relative;min-height:350px;overflow:hidden;border-radius:17px;background:#354d5b}
.v9-compare>img,.v9-compare-old>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.v9-compare-old{position:absolute;inset:0 auto 0 0;width:50%;overflow:hidden;z-index:1;border-right:4px solid white}
.v9-compare-old>img{width:auto;max-width:none;min-width:100%;left:0}
.v9-compare-line{position:absolute;left:50%;top:0;bottom:0;width:3px;background:#fff;z-index:2;pointer-events:none}
.v9-compare-tag{position:absolute;bottom:14px;z-index:3;padding:7px 10px;border-radius:8px;color:white;background:#0b2945df;font-weight:800;font-size:14px}
.v9-tag-old{left:14px}.v9-tag-new{right:14px}
.v9-compare-copy{padding:14px 5px}.v9-compare-copy label{display:block;font-weight:800}
.v9-compare-copy input[type=range]{width:100%;accent-color:var(--v9-red);height:30px}
.v9-source-links{display:flex;flex-direction:column;gap:9px;margin:13px 0 19px;font-size:15px}.v9-compare-copy small{font-size:14px;line-height:1.5;color:#41586c}
.v9-heritage-detail{background:#fff;border-radius:20px;padding:clamp(19px,3vw,38px);border-left:7px solid #a5263f;min-height:230px;box-shadow:0 8px 28px #09294113}
.v9-heritage-detail h3{margin-top:0}.v9-heritage-detail a{color:#0c3a60;font-weight:800}
.v9-recipes{background:linear-gradient(125deg,#f2e5d4,#edf4ed)}
.v9-recipe-layout{display:grid;grid-template-columns:.8fr 2.2fr;gap:22px}
.v9-recipe-list{display:grid;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v9-recipe-list button{text-align:left;font-size:15px;padding:12px;line-height:1.35}
.v9-recipe-detail{background:white;border-radius:20px;padding:26px;min-height:270px}
.v9-recipe-detail .v9-recipe-columns{display:grid;grid-template-columns:.8fr 1.2fr;gap:20px}
.v9-recipe-detail ul,.v9-recipe-detail ol{padding-left:22px;line-height:1.6}.v9-recipe-detail li{padding:2px 0}
.v9-planner{background:linear-gradient(115deg,#103853,#176578);color:#fff}
.v9-planner h2,.v9-planner h3{color:white}.v9-planner .v9-kicker{color:#ffbc9c}.v9-planner p{color:#e1eff0}
.v9-planner-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:25px;background:#fff;border-radius:20px;color:#173750;align-items:end}
.v9-planner-form label,.v9-story-form label{display:block;font-weight:800;font-size:16px;line-height:1.3}
.v9-planner-form select,.v9-story-form input,.v9-story-form select,.v9-story-form textarea{margin-top:9px}
.v9-planner-form button{grid-column:1/-1;justify-self:start}
.v9-plan-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
.v9-plan-card{background:#fff;color:#19384e;border-radius:16px;overflow:hidden;min-width:0}
.v9-plan-card img{width:100%;height:170px;object-fit:cover;background:#dae5e5}
.v9-plan-card>div{padding:17px}.v9-plan-card h3{color:#15374e;font-size:24px;margin:0 0 7px}.v9-plan-card p{color:#344c59;font-size:16px;margin:0 0 11px}
.v9-plan-info{background:#f3ead5;color:#20384b;padding:19px;border-radius:16px;grid-column:1/-1}.v9-plan-info p{color:#243f50;margin:5px 0}
.v9-favorites{background:#eaf0ee;color:#17364d;padding:26px;border-radius:22px;margin-top:30px}.v9-favorites h3{color:#17364d}.v9-favorites p{color:#345468}
.v9-fav-item{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #b5c6ce;gap:10px}
.v9-fav-item strong{display:block}.v9-fav-item .v9-fav-actions{display:flex;gap:6px;flex-wrap:wrap}.v9-fav-actions button{border:1px solid #9ab9c1;background:white;color:#173a51;padding:8px 10px;border-radius:7px;cursor:pointer;font-weight:700}
.v9-participa{background:#173650;color:white}.v9-participa h2{color:#fff}.v9-participa p{color:#eaf0f2}
.v9-story-form{background:#f5f5ef;border-radius:20px;padding:26px;display:grid;grid-template-columns:1fr 1fr;gap:15px;color:#15364b}
.v9-story-form .v9-full{grid-column:1/-1}.v9-story-form .v9-consent{display:flex;gap:11px;align-items:start}.v9-story-form .v9-consent input{width:22px;flex:none;margin-top:4px}
.v9-story-form .v9-note{color:#36596b;font-size:14px;grid-column:1/-1}.v9-story-result{padding:12px 0}.v9-story-result button{margin:10px 0}
.v9-discover-btn{margin:4px 8px 10px 0}.v9-modal-shell{border:0;border-radius:19px;width:min(95vw,820px);max-height:88vh;overflow:auto;padding:0;box-shadow:0 22px 55px #09294177}
.v9-modal-shell::backdrop{background:#071d29bd}.v9-modal-content{padding:22px 28px 30px}.v9-modal-content h2{font-family:Georgia,serif;font-size:40px;color:#133650;margin:6px 0}.v9-modal-content p{font-size:18px;line-height:1.55}.v9-modal-photo{width:100%;max-height:380px;object-fit:cover;background:#d7e7e6}.v9-modal-close{float:right;margin:12px;z-index:1;position:relative;border:0;border-radius:10px;padding:10px 14px;background:#fff;color:#133650;font-weight:800;cursor:pointer}.v9-modal-meta{display:block;color:#495f69;font-size:15px;margin-top:9px}
.v9-section a:focus-visible,.v9-section button:focus-visible,.v9-section input:focus-visible,.v9-section select:focus-visible{outline:4px solid #dfac31;outline-offset:3px}
/* Integridad visual: encabezado compacto y botones de texto contrastado */
.site-header{box-shadow:0 2px 9px #09294115}.site-header .brand img{max-height:74px;object-fit:contain}
#explorador{scroll-margin-top:85px}.v9-section{scroll-margin-top:90px}
@media(max-width:960px){.v9-photo-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.v9-planner-form{grid-template-columns:1fr 1fr}.v9-compare-layout{grid-template-columns:1fr}.v9-compare{height:380px}.v9-recipe-list{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.v9-section{padding:42px 0}.v9-section h2{font-size:clamp(34px,9vw,48px)}.v9-head{align-items:stretch;flex-direction:column}.v9-photo-cards{grid-template-columns:1fr 1fr;gap:9px}.v9-photo-card img{height:145px}.v9-photo-card .v9-photo-caption{padding:10px}.v9-photo-card h3{font-size:20px}.v9-photo-caption small{font-size:12px}.v9-photo-caption .v9-actions{flex-direction:column}.v9-photo-caption button{font-size:13px;min-height:39px;padding:8px}.v9-city-search,.v9-recipe-layout{grid-template-columns:1fr}.v9-recipe-list{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:9px}.v9-recipe-list button{white-space:nowrap;flex:none}.v9-recipe-detail .v9-recipe-columns{grid-template-columns:1fr}.v9-planner-form,.v9-plan-results,.v9-story-form{grid-template-columns:1fr}.v9-plan-card{display:grid;grid-template-columns:.37fr .63fr}.v9-plan-card img{height:100%;min-height:170px}.v9-plan-card h3{font-size:20px}.v9-compare{height:285px;min-height:285px}.v9-compare-layout{padding:12px}.v9-favorites{padding:17px}.v9-fav-item{flex-direction:column;align-items:flex-start}.v9-story-form .v9-full{grid-column:1}.v9-story-form{padding:18px}.v9-modal-content h2{font-size:30px}.v9-modal-content{padding:17px}.v9-section p{font-size:17px}}
@media(prefers-reduced-motion:reduce){.v9-section *{scroll-behavior:auto!important;animation:none!important}}
/* Fotografías grandes, sin apariencia de catálogo escolar */
@media(min-width:961px){.v9-photo-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.v9-photo-card img{height:245px}.v9-photo-card:nth-child(7n+1){grid-column:span 2;grid-row:span 1}.v9-photo-card:nth-child(7n+1) img{height:375px}.v9-photo-card:nth-child(7n+1) h3{font-size:32px}}
@media(max-width:640px){.v9-photo-cards{grid-template-columns:minmax(0,1fr)}.v9-photo-card img{height:245px}.v9-photo-card h3{font-size:25px}.v9-photo-caption .v9-actions{flex-direction:row}.v9-photo-caption button{font-size:15px;min-height:43px;flex:1}}
/* Si una fotografía externa deja de responder, mostrar una salida clara sin simular una imagen. */
.v9-photo-card img:not([src]),.v9-plan-card img:not([src]){background:#dce9e8}

.v9-photo-unavailable{background:#d9e9ea;color:#16384c;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;font-size:16px;font-weight:700}.v9-photo-unavailable a{color:#0a3f60;font-weight:900;text-decoration:underline;margin-top:12px}
