/* Presentacion compartida. El menu de escritorio conserva sus reglas originales. */
:root {
    --page-bg: #fff;
    --text: #292322;
    --heading: #202020;
    --accent: #b00000;
    --link: #a40000;
    --link-hover: #d00000;
    --muted: #69605c;
    --line: #e4d8d2;
    --surface: #fbf7f4;
    --focus: #235ca5;
    --brand: #c00;
    color-scheme: light;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 100%;
    line-height: 1.65;
    color: var(--text);
    background: var(--page-bg);
}
:root:has(.site-header[data-site-theme="night"]) {
    --page-bg: #1d1918;
    --text: #e9e0dc;
    --heading: #f4e9e3;
    --accent: #ff9b87;
    --link: #ffac98;
    --link-hover: #ffd0c3;
    --muted: #c4b0a6;
    --line: #4c3b34;
    --surface: #2b2320;
    --focus: #ffbd91;
    --brand: #ff986c;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; background: var(--page-bg); color: var(--text); }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
img[align="left"] { margin: 0.3rem 1rem 0.7rem 0; }
img[align="right"] { margin: 0.3rem 0 0.7rem 1rem; }
.site-header, .site-content, .site-footer {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}
.site-content { max-width: 1120px; padding-bottom: 1.5rem; display: flow-root; }
.site-content p { margin: 0.9em 0; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.3; overflow-wrap: break-word; scroll-margin-top: 1rem; }
h1 { margin: 1rem 0; color: var(--accent); font-size: clamp(1.65rem, 4vw, 2.2rem); }
h2 { margin-top: 1.7em; font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
.foc {
    margin: 2rem 0 1.5rem;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 0 3px #fff, 0 -1px 2px #ff3, 2px -3px 4px #fd3, -2px -5px 9px #f80, 2px -8px 7px #f20;
}
.foc a { color: var(--brand); text-decoration: none; }
#button { display: flex; flex-wrap: wrap; gap: 1px; list-style: none; padding: 0; margin: 0; }
#button li { display: flex; flex-grow: 1; margin: 0; }
#button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    background: #c00;
    color: #fff;
    font: 0.85rem/1.35 Arial, sans-serif;
    text-decoration: none;
    text-align: center;
}
#button a:hover, #button a:focus-visible { background: #a30000; }
.breadcrumbs { margin: 1rem 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs span { margin-inline-start: 0.35rem; }
.content-table { width: 100%; max-width: 100%; border-collapse: collapse; table-layout: auto; }
.content-table td, .content-table th { vertical-align: top; padding: 0.55rem; }
.content-table p:first-child { margin-top: 0; }
.site-tools { position: relative; height: 0; }
.theme-switch {
    position: absolute;
    top: 0.75rem;
    right: 0;
    display: inline-flex;
    gap: 3px;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}
.theme-switch button {
    min-width: 3.3rem;
    min-height: 38px;
    padding: 0.3rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--text);
    background: transparent;
    font: 0.85rem/1.2 Tahoma, Geneva, sans-serif;
    cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { color: #fff; background: #a40000; }
.theme-switch button:hover { border-color: var(--accent); }
.mobile-navigation { display: none; }
.biography-table { margin-block: 1rem 1.5rem; }
.biography-table .bio-row > td {
    padding: 1rem 0.2rem;
    border-bottom: 1px solid var(--line);
}
.biography-table .bio-row:first-child > td { border-top: 1px solid var(--line); }
.biography-table .bio-row > td > p:first-child { margin-top: 0; }
.biography-table .bio-row > td > p:last-child { margin-bottom: 0; }
.bio-photo {
    display: block;
    float: right;
    width: max(var(--photo-width), 7.8rem);
    max-width: 42%;
    margin: 0.15rem 0 0.4rem 1.1rem;
    text-align: center;
    font-weight: normal;
    line-height: 1.35;
}
.bio-photo-left { float: left; margin: 0.15rem 1.1rem 0.4rem 0; }
.site-content .bio-photo img {
    float: none;
    display: inline-block;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 3px;
}
.bio-photo > a { display: inline-block; max-width: 100%; }
.bio-caption { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.8rem; font-weight: normal; }
:root:has(.site-header[data-site-theme="night"]) .foc {
    text-shadow: 0 0 12px #8a3824, 0 -2px 5px #7c321f;
}
:root:has(.site-header[data-site-theme="night"]) .site-content [style*="color: #CC0000"],
:root:has(.site-header[data-site-theme="night"]) .site-content [style*="color: #ff0000"] { color: var(--accent) !important; }
:root:has(.site-header[data-site-theme="night"]) .site-content [style*="color: #090079"],
:root:has(.site-header[data-site-theme="night"]) .letraAzul { color: #abbcff !important; }
.site-content[data-sf-common] [data-sf-contact-field] > input,
.site-content[data-sf-common] [data-sf-contact-field] > textarea {
    color: var(--text);
    background: var(--page-bg);
    border-color: var(--line);
}
.site-content[data-sf-common] [data-sf-contact-form] { background: var(--surface); }
.site-content[data-sf-common] [data-sf-contact-form] > button { background: #a40000; border-color: #a40000; }
ul li, ol li { margin-bottom: 0.5rem; }
.text-center { text-align: center; }
.letraPetita { font-size: 0.9rem; background-color: #fc6; color: #000; }
.letraAzul { color: #33f; }
.tablaMenu { border: 1px dotted var(--muted); }
.ad-slot {
    display: block;
    width: 100%;
    max-width: 970px;
    min-height: 90px;
    margin: 1.25rem auto;
    text-align: center;
    clear: both;
}
.site-footer { clear: both; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: center; }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: 0.5rem 1rem; color: #fff; background: #222; z-index: 10000; }
.skip-link:focus { top: 0.5rem; }
@media (max-width: 900px) {
    .site-nav-desktop { display: none; }
    .site-tools { height: auto; min-height: 60px; padding-top: 0.65rem; }
    .mobile-navigation { display: block; width: 100%; }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: fit-content;
        max-width: calc(100% - 8.2rem);
        min-height: 46px;
        padding: 0.55rem 0.9rem;
        border: 1px solid #c00;
        border-radius: 4px;
        color: #fff;
        background: #c00;
        font: 0.9rem/1.3 Tahoma, Geneva, sans-serif;
        list-style: none;
        cursor: pointer;
    }
    .menu-toggle::-webkit-details-marker { display: none; }
    .menu-toggle::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
    .menu-toggle:hover { background: #a30000; }
    .menu-label-close { display: none; }
    .mobile-navigation[open] .menu-label-open { display: none; }
    .mobile-navigation[open] .menu-label-close { display: inline; }
    .mobile-navigation[open] .menu-toggle::after { transform: rotate(180deg) translateY(2px); }
    #mobile-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; list-style: none; padding: 0; margin: 0.65rem 0 0; background: var(--line); }
    #mobile-menu li { display: flex; margin: 0; }
    #mobile-menu li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    #mobile-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0.6rem 0.75rem; background: var(--surface); color: var(--link); font-size: 0.85rem; line-height: 1.35; text-decoration: none; }
    #mobile-menu a:hover, #mobile-menu a:focus-visible { color: #fff; background: #a40000; }
    .theme-switch { top: 0.65rem; }
    .foc { margin-block: 1.3rem 1.7rem; }
}
@media (max-width: 600px) {
    .site-header, .site-content, .site-footer { padding-inline: 1rem; }
    .foc { margin-block: 1.5rem; }
    .site-content img[align="left"], .site-content img[align="right"] {
        float: none;
        display: block;
        margin: 0.75rem auto;
    }
    .content-table { table-layout: fixed; }
    .content-table td, .content-table th { padding: 0.35rem; overflow-wrap: anywhere; }
    .biography-table .bio-row > td { padding: 1rem 0; overflow-wrap: break-word; }
    .bio-photo, .bio-photo-left { float: none; max-width: 100%; margin: 0.1rem auto 0.85rem; }
    .site-content .bio-photo img { display: inline-block; margin: 0; }
    .bio-caption { font-size: 0.85rem; }
    .biography-table p:has(.bio-photo) { margin-top: 0.75rem; }
    .ad-slot { min-height: 100px; }
}
