
:root {
    --ink: #2a2118;
    --ink-soft: #55493a;
    --paper: #fdfcfa;
    --paper-raised: #fffffe;
    --line: #e4dfd3;
    --copper: #913828;
    --copper-dark: #6f2a1d;
    --lake: #3f726d;
    --lake-dark: #2f5a56;
    --maize: #d9a02a;
    --error: #a13a2e;
    --error-bg: #f6e3de;
    --success-bg: #e4ede0;
    --success-text: #2f5233;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 2px;
    --radius-md: 4px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding-top: 78px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--copper-dark);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--lake-dark);
}

ul {
    padding-left: 1.2em;
}

address {
    font-style: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0.6em 1em;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--lake);
    outline-offset: 2px;
}

:root {
    --ico-flecha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13'/%3E%3Cpath d='M12.5 6.5 18 12l-5.5 5.5'/%3E%3C/svg%3E");
    --ico-externo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8'/%3E%3Cpath d='M9.5 8H16v6.5'/%3E%3C/svg%3E");
    --ico-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 6 15.5 12l-6 6'/%3E%3C/svg%3E");
    --flecha-cobre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a85d34' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13'/%3E%3Cpath d='M12.5 6.5 18 12l-5.5 5.5'/%3E%3C/svg%3E");
    --flecha-blanca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13'/%3E%3Cpath d='M12.5 6.5 18 12l-5.5 5.5'/%3E%3C/svg%3E");
}

.ico {
    display: inline-block;
    flex: none;
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.17em;
    background: currentColor;
    -webkit-mask: var(--ico-flecha) center / contain no-repeat;
    mask: var(--ico-flecha) center / contain no-repeat;
    transition: transform 0.2s ease;
}
.ico-externo { -webkit-mask-image: var(--ico-externo); mask-image: var(--ico-externo); }
.ico-chevron { -webkit-mask-image: var(--ico-chevron); mask-image: var(--ico-chevron); }
.ico-atras { transform: scaleX(-1); }
a:hover > .ico-externo { transform: translate(2px, -2px); }

@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar { width: 12px; height: 12px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-corner { background: transparent; }
    ::-webkit-scrollbar-thumb {
        background-color: #cfc6b6;
        background-clip: content-box;
        border: 3px solid transparent;
        border-radius: 999px;
        min-height: 40px;
    }
    ::-webkit-scrollbar-thumb:hover { background-color: var(--copper); }
    ::-webkit-scrollbar-thumb:active { background-color: var(--copper-dark); }

    .admin-sidebar::-webkit-scrollbar-thumb { background-color: rgba(255, 253, 248, 0.28); }
    .admin-sidebar::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 253, 248, 0.5); }

    @supports not selector(::-webkit-scrollbar) {
        html { scrollbar-color: #cfc6b6 transparent; }
        html, .admin-sidebar, .a-tabla-scroll, .a-select-lista { scrollbar-width: thin; }
        .admin-sidebar { scrollbar-color: rgba(255, 253, 248, 0.35) transparent; }
    }
}

a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Sin destello azul al tocar; el recuadro de enfoque solo con teclado */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
