/* ============================================================
   IMPORTACIÓN DE FUENTES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ============================================================
   ESTILOS GENERALES
   ============================================================ */
img { max-width: 100%; }

body {
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

@media all and (min-width: 1000px) { body { max-width: 80%; margin: auto; } }
@media all and (max-width: 1000px) { body { margin: 1em; } }

/* ============================================================
   INPUT DE BÚSQUEDA (Estilo Google - Alineado izquierda)
   ============================================================ */
#tipue_search_input {
    width: 30%; /* Reducido a la mitad (era 60%) */
    max-width: 200px; /* Reducido a la mitad (era 400px) */
    padding: 12px 20px;
    margin: 20px 0;
    display: block;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 6px rgba(32,33,36,.1);
}

#tipue_search_input:focus {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: #bcbcbc;
}

/* ============================================================
   CÓDIGO (NUEVOS COLORES Y BOTÓN COPIAR)
   ============================================================ */
code {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.9em;
}

pre {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #f8f8f2;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.93em;
    line-height: 1.4em;
    overflow: auto;
    padding: 15px;
    margin: 25px 0;
    border-radius: 8px;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.75em;
    cursor: pointer;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

/* ============================================================
   OTROS ELEMENTOS
   ============================================================ */
#ugeek { position: absolute; font-size: 2.00em; top: 1.30em; }
@media all and (min-width: 1000px) { #ugeek { left: 42%; } }

#logo img { border-radius: 10px; border-color: white; position: absolute; font-size: 1.50em; top: 1.00em; }
@media all and (min-width: 1000px) { #logo { left: 10%; } }
@media all and (max-width: 1000px) { #logo { left: 10%; } }

#menu { position: absolute; font-size: 1.200em; top: 7.525em; }
@media all and (min-width: 1000px) { #menu { left: 10%; } }
@media all and (max-width: 1000px) { #menu { left: 1em; } }

#name { position: absolute; top: 1.50em; }
@media all and (min-width: 1000px) { #name { right: 10%; } }
@media all and (max-width: 1000px) { #name { right: 1em; } }

#icon { position: absolute; font-size: 0.8625em; top: 6.125em; }
@media all and (min-width: 1000px) { #icon { right: 10%; } }
@media all and (max-width: 1000px) { #icon { right: 1em; } }

.title { text-align: left; margin-left: 10px; border-bottom-style: solid; border-bottom-color: lightgray; }

#table-of-contents { margin-left: 10px; }
#table-of-contents h2 { margin-left: 20px; display: none; }
#table-of-contents ul { list-style-type: none; margin-left: 0; padding-left: 0; }
#outline-container-orgheadline2 li { margin: 1em; list-style-type: none; }

h1 { color: #3c1b66; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 32px; text-transform: uppercase; letter-spacing: 0.04em; }
h2 { color: #6c2eb9; font-family: "Nunito", sans-serif; font-weight: 600; font-size: 30px; border-bottom-style: solid; border-bottom-color: lightgray; }
h3 { color: #443963; font-family: "Nunito", sans-serif; font-weight: 600; font-size: 25px; border-bottom-style: solid; border-bottom-color: lightgray; }
h4 { color: #4f4866; font-family: "Nunito", sans-serif; font-weight: 600; font-size: 20px; border-bottom-style: solid; border-bottom-color: lightgray; }
h5 { color: #656172; font-family: "Nunito", sans-serif; font-weight: 600; font-size: 18px; border-bottom-style: solid; border-bottom-color: lightgray; }
h6 { color: #747377; font-family: "Nunito", sans-serif; font-weight: 600; font-size: 18px; border-bottom-style: solid; border-bottom-color: lightgray; }

a { text-decoration: none; color: #4a708b; }
a:hover { text-decoration: underline; }
.img-link a { color: white; }

blockquote { border-left: 1px solid gray; padding-left: 4px; }
#doc-info { margin-top: 3em; margin: auto; text-align: center; font-size: 8pt; max-width: 75%; }

table { width: 70%; font-family: "Nunito Sans", sans-serif; font-size: 15px; text-align: center; border-collapse: collapse; margin: auto; }
table th { font-family: "Nunito", sans-serif; font-size: 15px; font-weight: 700; background-color: #a4a5a5; text-indent: 10px; color: black; }
table, th, td { border: 1px solid black; margin: auto; }
tr:nth-child(odd) { background-color: #f2f2f2; }
tr:nth-child(even) { background-color: #d9dcde; }
tr:hover { background-color: #abb9b0; }

@media (prefers-color-scheme: dark) {
    body { background-color: #111; color: grey; }
    h1, h2, h3, h4, h5 { color: #D358F7; }
    a { color: #337aff; }
    
    #tipue_search_input {
        background-color: #2d2d2d;
        color: #f8f8f2;
        border: 1px solid #444;
    }
}

mastodon-comments {
  --font-color: #5d686f;
  --font-size: 1.0rem;

  --block-border-width: 1px;
  --block-border-radius: 3px;
  --block-border-color: #ededf0;
  --block-background-color: #f7f8f8;

  --comment-indent: 40px;
}