/* ==========================================================================
   VoIP Soluciones — hoja de estilos única
   ========================================================================== */

:root {
    --contrast: #222;
    --contrast-2: #575760;
    --contrast-3: #b2b2be;
    --base: #f0f0f0;
    --base-2: #f7f8f9;
    --base-3: #fff;
    --accent: #1e73be;

    --container: 1200px;
    --gap: 40px;
    --radius: 0px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ---------------------------------------------------------------- reinicio */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--base-2);
    color: var(--contrast);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--accent);
    text-decoration: underline;
}

a:hover,
a:focus,
a:active {
    color: var(--contrast);
}

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

h1,
h2,
h3 {
    margin: 0 0 20px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--contrast);
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

p {
    margin: 0 0 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 5px;
    z-index: 100;
    padding: 15px 23px;
    background-color: var(--base);
    color: var(--contrast);
    text-decoration: none;
}

.skip-link:focus {
    top: 5px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* --------------------------------------------------------------- cabecera */

.site-header {
    background-color: var(--base-3);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 78px;
}

.site-logo {
    display: inline-flex;
    padding: 20px 0;
    line-height: 0;
}

.site-logo img {
    width: 90px;
    height: auto;
}

/* ------------------------------------------------------------- estructura */

.site-content {
    display: flex;
    align-items: flex-start;
    gap: var(--gap);
    padding-top: var(--gap);
    padding-bottom: var(--gap);
}

.content-area {
    flex: 1 1 70%;
    min-width: 0;
}

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
    position: sticky;
    top: 20px;
}

/* ------------------------------------------------------- listado de entradas */

.entry-card,
.entry {
    margin-bottom: var(--gap);
    padding: var(--gap);
    background-color: var(--base-3);
    border-radius: var(--radius);
}

.entry-card:last-child,
.entry:last-child {
    margin-bottom: 0;
}

.entry-card .entry-title {
    margin-bottom: 30px;
    font-size: 30px;
}

.entry-title a {
    color: var(--contrast);
    text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
    color: var(--contrast-2);
}

.entry-image {
    display: block;
    margin-bottom: 30px;
}

.entry-image img {
    width: 100%;
}

.entry-summary p:last-child {
    margin-bottom: 0;
}

.read-more a {
    text-decoration: underline;
}

/* --------------------------------------------------------- entrada completa */

.entry .featured-image {
    margin: calc(var(--gap) * -1) calc(var(--gap) * -1) 30px;
}

.entry .featured-image img {
    width: 100%;
}

.entry-header {
    margin-bottom: 30px;
}

.entry .entry-title {
    margin-bottom: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2 {
    margin-top: 1.5em;
}

.entry-content h3 {
    margin-top: 1.2em;
    font-size: 21px;
}

.entry-content li > h3 {
    margin-top: 0;
}

.entry-content figure {
    margin: 0 0 1.5em;
}

.entry-content figure img {
    width: 100%;
}

.table-wrap {
    margin-bottom: 1.5em;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

td,
th {
    padding: 10px 12px;
    border: 1px solid var(--base);
    text-align: left;
    vertical-align: top;
}

tr:first-child td {
    background-color: var(--base-2);
    font-weight: 600;
}

/* ---------------------------------------------------------- barra lateral */

.widget {
    margin-bottom: var(--gap);
    padding: var(--gap);
    background-color: var(--base-3);
    border-radius: var(--radius);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    margin-bottom: 20px;
    font-size: 20px;
}

.widget-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-list li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.widget-list li:last-child {
    margin-bottom: 0;
}

.widget-list [aria-current="page"] {
    color: var(--contrast);
    text-decoration: none;
    font-weight: 600;
}

/* ------------------------------------------------------------------- pie */

.site-footer {
    background-color: var(--base-3);
}

.copyright {
    margin: 0;
    padding: 20px 0;
    font-size: 15px;
    color: var(--contrast-2);
}

/* ---------------------------------------------------------- volver arriba */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: rgba(0, 0, 0, 0.6);
}

.back-to-top svg {
    fill: currentColor;
}

.back-to-top[hidden] {
    display: none;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
    .site-content {
        display: block;
    }

    .sidebar {
        max-width: none;
        position: static;
        margin-top: var(--gap);
    }
}

@media (max-width: 768px) {
    :root {
        --gap: 30px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    .entry-card .entry-title {
        font-size: 25px;
    }
}
