/*
Theme Name: Tipomap_cl
Theme URI: https://tipomap.vanguardiasdiseno.org/
Description: Tema de WordPress desarrollado para Tipomap Chile, proyecto de mapeo y análisis de la producción tipográfica en Chile , en colaboración con la Universidad Disego Portales y la Universidad Autónoma de San Luis Potosí. Diseñado como herramienta de consulta para investigadores, diseñadores y estudiantes.
Author: Manuel Guerrero
Author URI: https://datadesign.uaslp.mx
Version: 1.0
Text Domain: tipomap_cl
*/


/*--------------------------------------------------------------------------
    Variables Globales
--------------------------------------------------------------------------*/
:root {
    /* Typography */
    --heading-1: 34px;
    --heading-2: 28px;
    --heading-3: 22px;
    --heading-4: 20px;
    --text-large: 18px;
    --text-regular: 16px;
    --text-small: 14px;
    --text-xs: 13px;

    /* Line Heights */
    --line-height-loose: 1.6;
    --line-height-regular: 1.5;
    --line-height-tight: 1.3;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Colors */
    --color-text-primary: #111111;
    --color-text-secondary: #555555;
    --color-text-tertiary: #767676;
    --color-link: #0066CC;
    --color-link-hover: #004999;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/*--------------------------------------------------------------------------
    1. Base Styles
--------------------------------------------------------------------------*/
body {
    color: var(--color-text-primary);
    font-family: "Work Sans", sans-serif;    font-size: var(--text-regular);
    line-height: var(--line-height-regular);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    margin: 0px;
}

/* Selection styles */
::selection {
    background: #232323;
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background: #5b5b6a;
    color: white;
    text-shadow: none;
}


/* Estilos para logo-wrap */
.logo-wrap {
    width: 100%; /* Ajusta al ancho total de la ventana */
    background: linear-gradient(318deg, #999999, #d5d5d5, #e8e8e8);
    background-size: 600% 600%;
    -webkit-animation: AnimationName 30s ease infinite;
    -moz-animation: AnimationName 30s ease infinite;
    animation: AnimationName 30s ease infinite;
    padding: 70px 0; /* Espaciado interno arriba y abajo */
    display: flex; /* Utiliza flexbox para centrar el contenido */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    margin-bottom: 30px;
}

.logo-wrap img {
    max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
}

@-webkit-keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
@keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
/*--------------------------------------------------------------------------
    2. Typography
--------------------------------------------------------------------------*/
h1, h2, h3, h4, h6 {
  font-weight: 300;
  text-transform: uppercase;
    font-family: "Work Sans", sans-serif;
}

h5 {
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1.4;
    text-align: right;
}

.work-thin {
    font-family: "Work Sans", sans-serif;
    font-weight: 100;
    font-style: normal;
}

/* Links */
a, a:visited {
    color: #333;
    text-decoration: none;
    outline: 0;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: black;
}

/* Text formatting */
em, i, .italic {
    font-style: italic;
}

b, strong {
    font-weight: 600;
}

.underline {
    display: inline-block;
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid #5a5a5a;
}

p {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

/* Colors */
.font-color-primary { color: #5a5a5a; }
.background-color-primary { background: #5b5b6a; }
.font-color-secondary { color: #a33; }
.font-color-black { color: black; }
.font-color-white { color: white; }
.background-color-white { background: white; }

/*--------------------------------------------------------------------------
    2.1 Cookies Banner
--------------------------------------------------------------------------*/
#cookieBanner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: var(--spacing-sm);
    z-index: 1000;
}

#cookieBanner p {
    margin: 0;
}

#cookieBanner button {
    background-color: var(--color-link);
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin-left: var(--spacing-sm);
    cursor: pointer;
}

/*--------------------------------------------------------------------------
    3. Layout Components
--------------------------------------------------------------------------*/

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
/* Grid Items */
.grid-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform var(--transition-normal);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-desc {
  padding-top: 30px;
}

/* Flex Container */
.flex-container {
    display: flex;
    height: 800px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex-item {
    position: relative;
    width: 100%;
    flex: 1;
}

.flex-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}



/* Gradient Overlay */
.flex-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0) 0%, rgba(250, 250, 250, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .flex-container {
        height: auto; /* Ajusta la altura automáticamente en dispositivos pequeños */
    }

    .flex-item img {
        object-fit: contain; /* Ajusta la imagen sin recortar en pantallas pequeñas */
    }
}

/*--------------------------------------------------------------------------
    3.1. logos
--------------------------------------------------------------------------*/
.container.logos {
  display: flex;
  justify-content: space-between; /* primera a la izquierda, última a la derecha */
  align-items: center;            /* centra verticalmente */
}

.container.logos .columns {
  flex: 1; /* opcional: para que ocupen proporción equitativa */
  text-align: center; /* centra el contenido en la columna intermedia */
}

.container.logos .columns:first-child {
  text-align: left; /* alinea la primera a la izquierda */
}

.container.logos .columns:last-child {
  text-align: right; /* alinea la última a la derecha */
}


/*--------------------------------------------------------------------------
    4. Typography Components
--------------------------------------------------------------------------*/

.typo-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.typo-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: top;
    transform-origin: top;
}

.typo-info {
    font-size: var(--text-regular);
    margin-left: var(--spacing-sm);
}

.typo-meta {
    font-size: var(--text-small);
    display: flex;
    flex-wrap: wrap;
    margin-left: var(--spacing-sm);
    gap: var(--spacing-xs);
}

.typo-date {
    color: #888;
}

.typo-author a {
    color: var(--color-link);
    text-decoration: none;
}

.typo-distribution {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: var(--text-xs);
}


.citation-container {
    width: 100%;
    margin-bottom: 30px;
    font-size: var(--text-small);
    line-height: 1.5;
    overflow: hidden;
}

.citation-header {
    padding: 16px;
    font-size: var(--text-small);
    font-weight: 400;
    letter-spacing: -0.016em;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.citation-header:hover {
    background-color: rgba(102, 102, 102, 0.05);
}

.citation-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.citation-content {
    display: none;
    padding: 16px;
    font-size: var(--text-small);
    color: var(--color-text-primary);
    letter-spacing: -0.016em;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(250, 250, 250, 0.78);
}

.citation-content.show {
    display: block;
}

.citation-content a {
    color: #06c;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.citation-content a:hover {
    color: #0077ed;
    background-color: rgba(0, 102, 204, 0.05);
}

.citation-content a:active {
    color: #004999;
    background-color: rgba(0, 102, 204, 0.1);
}

.citation-content p {
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
    word-wrap: normal;
}




/*--------------------------------------------------------------------------
    5. Form Elements
--------------------------------------------------------------------------*/

form {
    max-width: 100%;
    box-sizing: border-box;
}

fieldset {
    background-color: rgba(228, 228, 228, 0.5);
    max-width: 90%;
    padding: var(--spacing-md);
    border: 0;
    box-sizing: border-box;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform var(--transition-normal);
}

fieldset:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Input styles */
input[type=text],
input[type=url],
input[type=tel],
input[type=number],
input[type=color],
input[type=email],
input[type=password],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    height: 44px;
    box-sizing: border-box;
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
    color: var(--color-text-primary);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    outline: none;
		font-size: var(--text-regular);
    line-height: 1.4;
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
		transition: all var(--transition-normal);
}

/* Input focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-link);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
    background-color: #ffffff;
}

/* Placeholder styles */
::-webkit-input-placeholder { color: #ddd; }
::-moz-placeholder { color: #ddd; }
:-ms-input-placeholder { color: #ddd; }
input:-moz-placeholder { color: #ddd; }

/* Button styles */
button,
.button,
a.button {
    color: #fff;
    background: #4a4a4a;
    font-size: var(--text-small);
    font-weight: 600;
    text-align: center;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover,
.button:hover,
a.button:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

button:active,
.button:active,
a.button:active {
    background: #2a2a2a;
    transform: translateY(0);
}

button.small,
.button.small,
a.button.small {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 4px;
}

button.full,
.button.full,
a.button.full {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 6px;
}

button.outline,
.button.outline,
a.button.outline {
    background: transparent;
    color: #4a4a4a;
    border: 2px solid #4a4a4a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button.outline:hover,
.button.outline:hover,
a.button.outline:hover {
    background: #4a4a4a;
    color: #fff;
}

button.disabled,
.button.disabled,
a.button.disabled {
    background: #b0b0b0;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}



/*--------------------------------------------------------------------------
    6. Table Styles
--------------------------------------------------------------------------*/

table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Work Sans", sans-serif;
    font-size: var(--text-small);
    line-height: 1.5;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

thead {
    background-color: #f5f5f5;
}

th, td {
    padding: 16px;
    text-align: left;
    font-size: var(--text-small);
    letter-spacing: -0.016em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-text-primary);
}

th {
    font-weight: 600;
    border-bottom-color: rgba(0, 0, 0, 0.8);
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Table Column Widths */
th:nth-child(1), td:nth-child(1) { width: 140px; }
th:nth-child(2), td:nth-child(2) { width: 80px; }
th:nth-child(3), td:nth-child(3) { width: 160px; }
th:nth-child(4), td:nth-child(4) { width: 60px; }
th:nth-child(5), td:nth-child(5) { width: 150px; }
th:nth-child(6), td:nth-child(6) { width: 150px; }
th:nth-child(7), td:nth-child(7) { width: 120px; }
th:nth-child(8), td:nth-child(8) { width: 60px; }
th:nth-child(9), td:nth-child(9) { width: 80px; }

.view_typo .column1 {
    width: 140px;
}

@media (max-width: 768px) {
    .view_typo th,
    .view_typo td {
        font-size: 14px; /* Reduce el tamaño de fuente */
        padding: 10px; /* Ajusta el espaciado interno */
    }


    .view_typo td {
        white-space: normal; /* Permite que las celdas se ajusten al contenido */
    }
}

td a {
    color: #06c;
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

td a:hover {
    color: #0077ed;
    background-color: rgba(0, 102, 204, 0.05);
}

td a:active {
    color: #004999;
    background-color: rgba(0, 102, 204, 0.1);
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }

    table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        white-space: nowrap;
    }
}

/*--------------------------------------------------------------------------
    7. Navigation Styles
--------------------------------------------------------------------------*/

/* Variables CSS */
:root {
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --transition-fast: 0.3s;
    --color-background: #ffffff; /* Ajusta según tu diseño */
    --text-small: 14px;
    --color-link: rgba(0, 102, 204, 1);
}

/* Estilos para la barra superior */
.topbar {
    background-color: #eee; /* Mantenido desde el estilo inline */
    padding: var(--spacing-md) 0;
}

/* Contenedor del menú */
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menú Principal */
ul#nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-small);
    line-height: 21px;
    font-weight: bold;
    counter-reset: main-menu;
}

ul#nav > li {
    position: relative;
    margin: 0 20px; /* Aumentado el margen para más espacio entre ítems */
}

ul#nav > li > a {
    color: #aaa; /* Color de texto principal */
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    text-decoration: none; /* Quitar subrayado predeterminado */
    transition: border-bottom-color var(--transition-fast), color var(--transition-fast);
    border-bottom: 1px solid transparent; /* Subrayado transparente por defecto */
    width: 100%; /* Asegura que el enlace ocupe todo el ancho */
    overflow: hidden; /* Para que el pseudo-elemento no sobresalga */
}

ul#nav > li > a::before {
    counter-increment: main-menu;
    content: counter(main-menu, decimal-leading-zero) ". ";
    margin-right: 6px;
    font-weight: normal;
    color: #777;
}

/* Efecto de subrayado azul con blur para el menú principal */
ul#nav > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px; /* Grosor de la barra */
    background: rgba(0, 102, 204, 0.6); /* Azul con transparencia */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

ul#nav > li > a:hover::after,
ul#nav > li > a:focus::after {
    transform: scaleX(1);
}

ul#nav > li > a:hover,
ul#nav > li > a:focus {
    border-bottom-color: rgba(0, 102, 204, 0.6); /* Valor alfa corregido */
    color: rgba(0, 102, 204, 0.8); /* Azul con transparencia */
}

/* Submenú */
ul#nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 0; /* Ajustado para eliminar espacios laterales */
    list-style: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1000;
    font-weight: 500;
}

ul#nav li:hover > ul,
ul#nav li:focus-within > ul {
    display: block;
}

ul#nav li ul li {
    margin: 0; /* Eliminado margen para permitir que el enlace ocupe todo el ancho */
}

ul#nav li ul li a {
    color: #333;
    white-space: nowrap;
    padding: var(--spacing-sm) 20px;
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    text-decoration: none;
    transition: color 0.3s, border-bottom-color var(--transition-fast), background-color var(--transition-fast), backdrop-filter var(--transition-fast);
    display: block; /* Asegura que el enlace ocupe todo el ancho */
    overflow: hidden; /* Para que el pseudo-elemento no sobresalga */
}

/* Efecto de subrayado azul con blur para el submenú */
ul#nav li ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px; /* Grosor del subrayado */
    background: rgba(0, 102, 204, 0.6); /* Azul con transparencia */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

ul#nav li ul li a:hover::after,
ul#nav li ul li a:focus::after {
    transform: scaleX(1);
}

ul#nav li ul li a:hover,
ul#nav li ul li a:focus {
    color: rgba(0, 102, 204, 0.8); /* Azul con transparencia */
    background-color: rgba(255, 255, 255, 0.5); /* Fondo semi-transparente */
}

/* Contador y iconos */
ul#nav li a .count {
    margin-right: 5px;
    font-weight: normal;
    color: #777;
}

ul#nav li a i {
    margin-right: 5px;
    font-size: 1.2em;
}

/* Menú Móvil */
#menu-mobile-wrapper {
    display: none; /* Oculto por defecto, se muestra en pantallas pequeñas */
}

#menu-mobile-wrapper #toggle-menu {
    display: none;
    cursor: pointer;
    font-size: var(--text-small);
    color: #333;
}

#menu-mobile-wrapper ul#menu-mobile {
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu-mobile-wrapper ul#menu-mobile ul {
    list-style: none;
    padding-left: 30px;
    margin: 0;
}

#menu-mobile-wrapper ul#menu-mobile li a {
    padding: var(--spacing-sm) var(--spacing-md);
    color: #333;
    border-bottom: 1px solid #ddd;
    transition: color 0.3s, border-bottom-color var(--transition-fast), background-color var(--transition-fast), backdrop-filter var(--transition-fast);
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    text-decoration: none;
    display: block; /* Asegura que el enlace ocupe todo el ancho */
    overflow: hidden; /* Para que el pseudo-elemento no sobresalga */
}

/* Efecto de subrayado azul con blur para el menú móvil */
#menu-mobile-wrapper ul#menu-mobile li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px; /* Grosor del subrayado */
    background: rgba(0, 102, 204, 0.6); /* Azul con transparencia */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#menu-mobile-wrapper ul#menu-mobile li a:hover::after,
#menu-mobile-wrapper ul#menu-mobile li a:focus::after {
    transform: scaleX(1);
}

#menu-mobile-wrapper ul#menu-mobile li a:hover,
#menu-mobile-wrapper ul#menu-mobile li a:focus {
    color: rgba(0, 102, 204, 0.8); /* Azul con transparencia */
}

/* Mostrar menú móvil en pantallas pequeñas */
@media screen and (max-width: 767px) {
    ul#nav {
        display: none; /* Ocultar menú principal en móviles */
    }

    #menu-mobile-wrapper {
        display: block; /* Mostrar el contenedor del menú móvil */
    }

    #menu-mobile-wrapper #toggle-menu {
        display: block; /* Mostrar el botón de menú */
        padding: var(--spacing-sm);
        background-color: var(--color-background);
        border-bottom: 1px solid #ddd;
    }

    #menu-mobile-wrapper.toggle-open #menu-mobile {
        display: flex; /* Mostrar el menú móvil cuando se activa */
    }
}

/*--------------------------------------------------------------------------
    8. View_user Styles
--------------------------------------------------------------------------*/
.designer-fullname {
    font-size: var(--heading-1);
    margin-top: 0.5em;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    font-family: "Work Sans", sans-serif;
    font-weight: 200;
    border-bottom: 1px solid #000;
}

.cv {
    font-size: var(--text-regular);
    line-height: var(--line-height-regular);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.user-details {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    color: var(--color-text-primary);
    line-height: var(--line-height-regular);
}

.user-role {
    font-size: var(--text-small);
    font-weight: 400;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}


.social-link {
    font-size: var(--text-small);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--color-link-hover);
}

.user-fonts {
  font-size: var(--text-small);
  margin-top: var(--spacing-xl);
  }

.user-fonts a:hover{
  border-bottom: 1px solid rgba(0, 102, 204, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  }

.font-item {
    margin-bottom: var(--spacing-md);
}

/*--------------------------------------------------------------------------
    9. Footer Styles
--------------------------------------------------------------------------*/

#footer {
    font-size: var(--text-small);
    line-height: 24px;
    padding: 30px 0;
    margin-top: 0;
}

#footer p {
    margin-top: 30px;
}

#footer p a {
    color: #5a5a5a;
}

#footer ul#social li {
    display: inline-block;
    float: left;
}

#footer ul#social li a {
    display: block;
    padding: 30px 40px 30px 0;
}

/*--------------------------------------------------------------------------
    10. Tag Styles
--------------------------------------------------------------------------*/

.tags .tag-rounded--inverse {
    border: 1px solid #a9b1b5;
    background-color: #fbfbfb;
    border-radius: 25px;
    line-height: 2.4;
    padding: 4px 15px;
    color: #a9b1b5;
    font-size: var(--text-small);
    white-space: nowrap;
    transition: all var(--transition-normal);
    text-transform: uppercase;
}

.tags .tag-rounded--inverse:hover {
    border: 1px solid #000;
    color: #000;
}

#archive .entry p.tags a {
  font-size: var(--text-small);
	color: #111;
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 1px solid #111;
	margin-right: 5px;
    text-transform: uppercase;
}

#archive .entry p.tags a:hover {
	color: #5a5a5a;
	border-bottom: 1px solid #5a5a5a;
}

/*--------------------------------------------------------------------------
    11. Media Queries
--------------------------------------------------------------------------*/

@media screen and (max-width: 959px) {
    ul#nav > li a {
        font-size: var(--text-xs);
    }

    .page p.page-desc {
        font-size: 22px;
        line-height: 40px;
    }
}

@media screen and (max-width: 767px) {
    body {
        font-size: var(--text-small);
        line-height: 1.4;
    }

    .flex-container {
        height: 500px;
    }

    #footer ul#social {
        margin-top: 30px;
    }

    #footer ul#social li {
        display: block;
        float: none;
    }

    #footer ul#social li a {
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    ul#nav {
        display: none;
    }
}

@media screen and (max-width: 479px) {
    .page p.page-desc {
        font-size: 20px;
        line-height: 36px;
    }
}


/*--------------------------------------------------------------------------
    13. Accessibility & Motion Preferences
--------------------------------------------------------------------------*/

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/*--------------------------------------------------------------------------
    14. Utility Classes
--------------------------------------------------------------------------*/

.hide {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.border-top {
    border-top: 1px solid #f5f5f5;
    padding-top: 30px;
}

.padding-vertical {
    padding-top: 50px;
    padding-bottom: 50px;
}

.remove-line-height {
    line-height: 0;
}



/*--------------------------------------------------------------------------
    15. Loading States
--------------------------------------------------------------------------*/

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-link);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------------------
    16. Error States
--------------------------------------------------------------------------*/

.error-message {
    color: #FF3B30;
    font-size: var(--text-xs);
    margin-top: -12px;
    margin-bottom: 16px;
    display: none;
}

.field-error input,
.field-error textarea,
.field-error select {
    border-color: #FF3B30;
    background-color: #FFF5F5;
}

.field-error .error-message {
    display: block;
}

/*--------------------------------------------------------------------------
    177. Responsive Images
--------------------------------------------------------------------------*/

img {
    max-width: 100%;
    height: auto;
}

.post img.featured {
    margin-bottom: 50px;
}

/*--------------------------------------------------------------------------
    18. Archive Styles
--------------------------------------------------------------------------*/

#archive .entry {
    margin-bottom: 80px;
}

#archive .entry .box-content {
    padding-top: 30px;
}

#archive .box-meta {
    padding-top: 30px;
}

#archive .box-meta span.category,
#archive .box-meta span.date {
    color: #ccc;
    font-size: var(--text-small);
    line-height: 22px;
}

#archive .box-meta span.category {
    color: #333;
    font-weight: bold;
}

/*--------------------------------------------------------------------------
    19. Print Styles
--------------------------------------------------------------------------*/

@media print {
    .no-print {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    #cookieBanner {
        display: none !important;
    }
}


/* =========================================================
   Tipomap_mx · Capa BW (override)
   Objetivo: Blanco y negro + sin efectos, respetando layout
   Incluir DESPUÉS del CSS original.
   ========================================================= */

/* --------- Variables a escala de grises --------- */
:root {
  --color-text-primary: #000;
  --color-text-secondary: #333;
  --color-text-tertiary: #666;
  --color-link: #000;
  --color-link-hover: #000;

  /* Mantén las demás variables tipográficas/espaciado intactas */
  --transition-fast: 0s;
  --transition-normal: 0s;
  --transition-slow: 0s;
}

/* --------- Reset de efectos visuales --------- */
* {
  text-shadow: none !important;
  box-shadow: none !important;

}

/* Selección */
::selection { background: #000; color: #fff; }
::-moz-selection { background: #000; color: #fff; }

/* --------- Colores de texto y vínculos --------- */
body { color: var(--color-text-primary) !important; }

/* --------- Bloques con fondos y gradientes --------- */
.logo-wrap {
  background: #f2f2f2 !important; /* sin gradiente */
  -webkit-animation: none !important;
  -moz-animation: none !important;
  animation: none !important;
  box-shadow: none !important;
}

/* Overlay degradado → sin efecto */
.flex-container::after { background: none !important; }

/* Badges / chips */
.typo-distribution {
  background: #efefef !important;
}

/* --------- Formularios --------- */
fieldset {
  background-color: #efefef !important;
  transform: none !important;
}

input[type=text],
input[type=url],
input[type=tel],
input[type=number],
input[type=color],
input[type=email],
input[type=password],
textarea,
select {
  color: #000 !important;
  border: 1px solid #0000001a !important; /* 10% negro */
  background-color: #fff !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15) !important; /* gris suave */
  background-color: #fff !important;
}

/* Placeholders en gris */
::-webkit-input-placeholder { color: #9a9a9a !important; }
::-moz-placeholder { color: #9a9a9a !important; }
:-ms-input-placeholder { color: #9a9a9a !important; }
input:-moz-placeholder { color: #9a9a9a !important; }

/* Botones: negro/plano sin hover animado */
button,
.button,
a.button {
  color: #fff !important;
  background: #000 !important;
  border: none !important;
  transform: none !important;
}
button:hover,
.button:hover,
a.button:hover {
  background: #000 !important; /* sin cambio */
}
button.outline,
.button.outline,
a.button.outline {
  background: transparent !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

/* Deshabilitados */
button.disabled,
.button.disabled,
a.button.disabled {
  background: #888 !important;
  color: #fff !important;
}

/* --------- Tablas --------- */
table {
  background: #fff !important;
  box-shadow: none !important;
}
thead { background-color: #f5f5f5 !important; }
th, td {
  color: #000 !important;
  border-bottom: 1px solid rgba(0,0,0,0.2) !important;
}
tr:hover { background-color: rgba(0,0,0,0.02) !important; }

td a {
  color: #000 !important;
  text-decoration: underline;
  background-color: transparent !important;
}

/* --------- Navegación --------- */
.topbar { background-color: #eee !important;
  text-transform: uppercase; }

/* Subrayados “azules” con blur → quitarlos */
ul#nav > li > a::after,
ul#nav li ul li a::after,
#menu-mobile-wrapper ul#menu-mobile li a::after {
  display: none !important;
}

ul#nav > li > a,
ul#nav li ul li a,
#menu-mobile-wrapper ul#menu-mobile li a {
  color: #000 !important;
  border-bottom: 1px solid transparent !important;
}
ul#nav > li > a:hover,
ul#nav li ul li a:hover,
#menu-mobile-wrapper ul#menu-mobile li a:hover {
  color: #000 !important;
  border-bottom-color: #000 !important; /* subrayado simple */
  background: transparent !important;
}

/* Submenú: fondo blanco, sin sombras */
ul#nav li ul {
  background-color: #fff !important;
  box-shadow: none !important;
}

/* --------- Pie --------- */
#footer p a { color: #000 !important; }

/* --------- Tags --------- */
.tags {
    text-transform: uppercase;
}

.tags .tag-rounded--inverse {
  border: 1px solid #000 !important;
  background-color: #fff !important;
  color: #000 !important;
}
#archive .entry p.tags a {
  color: #000 !important;
  border-bottom: 1px solid #000 !important;
}
#archive .entry p.tags a:hover {
  color: #333 !important;
  border-bottom: 1px solid #333 !important;
}

/* --------- Accesibilidad --------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 2px !important;
  border-radius: 0 !important;
}

/* --------- Estados de carga y error (sin animaciones/rojos) --------- */
.loading { opacity: 1 !important; }         /* sin efecto de “deshabilitado” */
.loading::after { display: none !important; } /* oculta spinner */

.error-message {
  color: #000 !important;
}
.field-error input,
.field-error textarea,
.field-error select {
  border-color: #000 !important;
  background-color: #f7f7f7 !important;
}

/* --------- Miscelánea --------- */
.underline { border-bottom: 1px solid #000 !important; }
.background-color-primary { background: #efefef !important; }
.font-color-primary { color: #000 !important; }
.font-color-secondary { color: #333 !important; }
.font-color-black { color: #000 !important; }
.font-color-white { color: #fff !important; }
.background-color-white { background: #fff !important; }

/* Imágenes mantienen color original; si quieres B/N absoluto:
   html { filter: grayscale(100%); }  ← opcional (afecta imágenes y SVG) */


   /* Widget: Mis tipografías indexadas */
   .fonts-widget { }

   .fonts-grid {
     list-style: none;
     padding: 0;
     margin: 0;
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     gap: 12px;
   }

   .font-card {
     border: 1px solid #eee;
     border-radius: 12px;
     padding: 10px;
     background: #fff;
     transition: box-shadow .2s ease, transform .1s ease;
   }

   .font-card:hover {
     box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
     transform: translateY(-1px);
   }

   .font-link {
     text-decoration: none;
     color: inherit;
     display: block;
   }

   .font-thumb {
     aspect-ratio: 4 / 3;
     overflow: hidden;
     border-radius: 10px;
     background: #f6f6f6;
     display: flex;
     align-items: center;
     justify-content: center;
   }

   .font-thumb img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: top;
     display: block;
   }

   .font-thumb--empty {
     background: #fafafa;
     border: 1px dashed #ddd;
     color: #999;
   }

   .font-title {
     margin-top: 8px;
     font-weight: 600;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
   }

   .font-meta {
     color: #666;
     font-size: .875rem;
   }

   @media (max-width: 640px) {
     .fonts-grid {
       grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     }
   }
