/* Scoped to Finder, Historia and Contacto; shared effects remain in custom.css. */
.com-finder #search-results,.espejos-history-index,.history-story h2,.history-gallery,.reading-box{scroll-margin-top:14px}
.espejos-search-summary{padding:16px 18px;background:#fff8e7;border:1px solid #b9a77e;border-left:3px solid #a58a4f;border-radius:3px;color:#302b20;overflow-wrap:anywhere}
.espejos-search-summary p{margin:0;font:17px/1.65 Georgia,serif}
.espejos-search-summary:focus{outline:2px solid var(--fx-gold,#a88a4f);outline-offset:3px}
.espejos-search-summary .espejos-search-help{margin-top:9px}
.espejos-search-actions{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:14px}
.espejos-search-actions a{display:inline-flex;align-items:center;min-height:40px;font-weight:700}
.espejos-history-index{margin:0 0 24px;border:1px solid #ad986c;border-left:3px solid #a58a4f;border-radius:4px;background:#fff8e780;padding:0 18px}
.espejos-history-index summary{padding:14px 0;color:#000070;font:700 18px/1.5 Georgia,serif;cursor:pointer}
.espejos-history-index ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 30px;margin:0 0 18px;padding-left:24px}
.espejos-history-index a{display:block;color:#000070;text-underline-offset:4px;line-height:1.65;overflow-wrap:anywhere}
.espejos-history-back{margin:20px 0 28px;font:13px/1.6 Verdana,sans-serif}
.espejos-history-back a{display:inline-flex;align-items:center;min-height:36px;color:#000070;text-underline-offset:4px}
.espejos-history-index :focus-visible,.espejos-history-back :focus-visible{outline:3px solid #a88a4f;outline-offset:4px}
.espejos-contact .page-header h1{margin-top:0;color:#000070}
.espejos-contact-notice{margin:0 0 20px;padding:13px 16px;border-left:3px solid #a58a4f;background:#fff8e780;color:#3e3426}
.espejos-contact .com-contact__container:empty,.espejos-contact .contact-misc:empty{display:none}
.espejos-contact #contact-form fieldset:first-of-type>legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Approved contact and community copy; native controls and validation stay intact. */
.espejos-contact .contact-community-intro{font:18px/1.65 Georgia,serif;margin-bottom:20px}
.espejos-contact .contact-public-email{overflow-wrap:anywhere}
.espejos-contact .contact-community-links{display:flex;flex-wrap:wrap;gap:10px 24px}
.espejos-contact .contact-community-links a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.espejos-contact .contact-community-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.espejos-contact :is(.contact-community-message,.contact-community-rules){min-width:0;border:1px solid var(--es-paper-border,#b6a17a);border-radius:8px;overflow:hidden;background:var(--es-paper-group,rgba(255,248,232,.28));scroll-margin-top:18px}
.site #contenido .espejos-contact .contact-community-heading{position:relative;margin:0;padding:13px 18px 13px 54px;font:700 24px/1.35 Georgia,serif;background:#000070 var(--es-blue-texture) repeat;color:#f4e0a6}
.espejos-contact .contact-community-heading::before{content:'';position:absolute;left:17px;top:50%;transform:translateY(-50%);width:25px;height:25px;border-radius:50%;background:var(--es-aes-mark) center/contain no-repeat}
.espejos-contact .contact-community-copy{padding:20px 22px;font:18px/1.65 Georgia,serif}
.espejos-contact .contact-community-copy>p:first-child{margin-top:0}
.espejos-contact .contact-community-copy ol{padding-left:24px}
.espejos-contact .contact-community-copy li{padding-bottom:14px}
.espejos-contact .contact-community-note{padding:16px 18px;margin:18px 0;border:1px solid var(--es-paper-border,#b6a17a);border-radius:8px;background:var(--es-paper-reading,rgba(255,248,232,.42))}
.espejos-contact .contact-community-note p{margin:8px 0}
.espejos-contact .contact-community-message>.contact-form{padding:20px 22px 0}
.espejos-contact #contact-form{margin:0;scroll-margin-top:18px}
.espejos-contact #contact-form :is(input:not([type=hidden]),textarea){max-width:100%;box-sizing:border-box}
.espejos-contact .contact-community-help{margin:18px 22px 22px;font:14px/1.65 Verdana,sans-serif}
@media(max-width:1050px){.espejos-contact .contact-community-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.espejos-contact .contact-community-copy{padding:18px}.espejos-contact .contact-community-message>.contact-form{padding:18px 18px 0}.site #contenido .espejos-contact .contact-community-heading{font-size:22px}.espejos-contact .contact-community-help{margin-inline:18px}}
@media(max-width:700px){.espejos-history-index ol{grid-template-columns:minmax(0,1fr)}.espejos-history-index a{min-height:44px;padding-block:6px}.espejos-search-summary{padding:13px 14px}.espejos-search-summary p{font-size:16px}}

/* Unified About page: documentary sources and personal closing stay distinct. */
.site #contenido .history-gallery-notes{margin:24px 0 16px;padding:18px 22px;border:1px solid #b9a77e;border-radius:4px;background:#fff8e780}
.site #contenido .history-gallery-notes p{font-size:15px;line-height:1.75;color:#453b2d;margin:0 0 10px}
.site #contenido .history-gallery-notes p:last-child{margin-bottom:0}
.site #contenido .history-references{margin-top:28px;padding:24px}
.site #contenido .history-references>h2{margin:0 0 12px;color:#000070;font:700 26px/1.3 Georgia,serif}
.site #contenido .history-references .history-author{font-size:15px;line-height:1.7;margin:0 0 20px}
.site #contenido .history-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 36px}
.site #contenido .history-reference-grid h3{font:700 18px/1.45 Georgia,serif;color:#000070;margin:0 0 10px}
.site #contenido .history-reference-grid p,.site #contenido .history-reference-grid li{font-size:15px;line-height:1.75;color:#453b2d}
.site #contenido .history-reference-grid ul{margin:0;padding-left:20px}
.site #contenido .history-reference-grid li{margin-bottom:7px}
.site #contenido .history-closing{margin-top:28px;padding:24px}
.site #contenido .history-closing>p{font:18px/1.75 Lora,Georgia,serif;max-width:75ch}
.site #contenido .history-closing-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;margin-top:20px}
.site #contenido .history-closing-actions>a:not(.button){font-size:15px}
@media(max-width:700px){.site #contenido .history-reference-grid{grid-template-columns:1fr}.site #contenido :is(.history-references,.history-closing){padding:20px 16px}.site #contenido .history-gallery-notes{padding:16px}.site #contenido .history-closing>p{font-size:17px}}

/* Mobile history entrance; the full account, sources and gallery stay intact. */
@media (max-width:650px) {
 .site #contenido .history-intro.section-presentation--history {min-height:0;margin-bottom:16px}
 .site #contenido .history-intro.section-presentation--history .editorial-scene-copy {padding:16px}
 .site #contenido .history-intro.section-presentation--history h1 {margin:4px 0 10px}
 .site #contenido .history-intro.section-presentation--history .editorial-scene-art {height:110px;min-height:110px}
 .site #contenido .espejos-history-index {padding-inline:14px;margin-bottom:14px}
 .site #contenido .espejos-history-index summary {min-height:44px;padding-block:8px}
 .site #contenido .history-documentary-note {padding:16px;margin-bottom:18px}
}
