/*
Theme Name: Hipotecas y Euribor Blog
Theme URI: https://www.hipotecasyeuribor.com/
Author: Hipotecas y Euribor
Description: Tema sencillo para integrar el blog de WordPress con el aspecto de hipotecasyeuribor.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: hipotecasyeuribor
*/

:root {
    color-scheme: light;
    --ink: #1e3034;
    --muted: #637078;
    --line: #d9e3e0;
    --soft: #f4f8f6;
    --accent: #006d77;
    --accent-2: #d95d39;
    --warm: #fff5e6;
    --cool: #eaf5f7;
    --paper: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: #eef3f4;
}

a {
    color: #075f9d;
}

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

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-grid {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
}

.main-nav a:hover,
.panel a:hover,
.entry-title a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

.page-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 40px;
}

.sidebar,
.content {
    min-width: 0;
}

.panel,
.card,
.content,
.content-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel {
    padding: 16px;
    margin-bottom: 16px;
}

.panel h2,
.panel .widget-title {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 16px;
}

.panel a,
.panel li a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
}

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

.content {
    padding: 24px;
}

h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
}

h2 {
    margin-top: 28px;
    font-size: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
}

.lead {
    font-size: 18px;
    color: var(--muted);
}

.muted,
.entry-meta,
.entry-footer,
.comment-metadata {
    color: var(--muted);
}

.content-section {
    padding: 22px;
    margin-top: 16px;
}

.archive-header,
.single-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.entry-card {
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.entry-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

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

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.entry-thumbnail {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.entry-thumbnail img {
    display: block;
    width: 100%;
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content h2,
.entry-content h3 {
    scroll-margin-top: 18px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.entry-content th,
.entry-content td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.entry-content th {
    background: var(--soft);
}

.read-more,
.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.read-more:hover,
.button:hover {
    color: #fff;
}

.entry-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.nav-links,
.post-navigation,
.posts-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.nav-links a,
.post-navigation a,
.posts-navigation a {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    text-decoration: none;
    font-weight: 700;
}

.search-form {
    display: grid;
    gap: 8px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.comment-list {
    padding-left: 0;
    list-style: none;
}

.comment-body {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.wp-block-image,
.wp-block-table,
.wp-block-quote {
    margin: 18px 0;
}

.wp-block-quote {
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    background: var(--soft);
}

.site-footer {
    padding: 30px 0 22px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.site-footer h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 16px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 7px 0;
    color: #075f9d;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

@media (max-width: 820px) {
    .header-grid,
    .page-grid,
    .footer-grid {
        display: block;
    }

    .main-nav {
        margin: 12px 0;
    }

    .sidebar {
        margin-bottom: 18px;
    }

    .content,
    .content-section {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 20px, 1120px);
    }

    .content {
        padding: 14px;
    }

    h1 {
        font-size: 28px;
    }
}
