/*
Theme Name: Biitly.es
Theme URI: https://biitly.es/
Author: Biitly.es
Description: Tema limpio, centrado y compacto en verde y azul, con cabecera de imagen baja y pie de página minimalista.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: biitly
*/

:root {
  --biitly-green: #19a463;
  --biitly-green-dark: #13804e;
  --biitly-blue: #1769aa;
  --biitly-blue-dark: #104f82;
  --biitly-bg: #eef3f5;
  --biitly-text: #1d2a32;
  --biitly-muted: #6f7d86;
  --biitly-border: #dbe4e8;
  --biitly-white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--biitly-bg);
  color: var(--biitly-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: var(--biitly-blue); text-decoration: none; }
a:hover { color: var(--biitly-green); }
img { max-width: 100%; height: auto; }

.site-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto;
  background: var(--biitly-white);
  border: 1px solid var(--biitly-border);
  box-shadow: 0 10px 30px rgba(20, 52, 70, .08);
}

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

.header-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--biitly-blue), var(--biitly-green));
}

.header-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -.03em;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 24px;
  border-bottom: 4px solid var(--biitly-green);
}

.site-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
.site-title a { color: var(--biitly-blue-dark); }
.site-description { margin: 5px 0 0; color: var(--biitly-muted); font-size: 13px; }

.custom-logo { max-height: 54px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 9px 12px;
  color: var(--biitly-text);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: #fff;
  background: var(--biitly-blue);
  border-color: var(--biitly-blue);
}

.site-main { padding: 34px 34px 42px; }
.content-area { max-width: 930px; margin: 0 auto; }

.entry-card {
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--biitly-border);
}
.entry-card:first-child { padding-top: 0; }
.entry-card:last-child { border-bottom: 0; }
.entry-title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.entry-title a { color: var(--biitly-blue-dark); }
.entry-meta { font-size: 13px; color: var(--biitly-muted); margin-bottom: 18px; }
.entry-content, .entry-summary { font-size: 16px; }
.entry-content h2, .entry-content h3 { color: var(--biitly-blue-dark); }

.wp-block-button__link,
.button,
button,
input[type="submit"] {
  border: 0;
  border-radius: 0;
  background: var(--biitly-green);
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}
.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover { background: var(--biitly-green-dark); color: #fff; }

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--biitly-border);
  border-radius: 0;
  background: #fff;
  color: var(--biitly-text);
}

.site-footer {
  min-height: 36px;
  padding: 8px 18px;
  border-top: 1px solid var(--biitly-border);
  background: #f9fbfb;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
}
.site-footer a,
.site-footer span {
  color: var(--biitly-green);
  font-weight: 800;
}

.pagination, .nav-links { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 7px 10px; border: 1px solid var(--biitly-border); }
.page-numbers.current { background: var(--biitly-blue); color: #fff; border-color: var(--biitly-blue); }

@media (max-width: 780px) {
  .site-wrap { width: min(100% - 18px, 1120px); margin: 9px auto; }
  .header-image { height: 135px; }
  .brand-row { align-items: flex-start; flex-direction: column; padding: 15px 16px; }
  .main-nav ul { gap: 4px; }
  .main-nav a { padding: 8px 9px; }
  .site-main { padding: 24px 18px 30px; }
}

@media (max-width: 480px) {
  .header-image { height: 105px; }
  .site-title { font-size: 22px; }
  .entry-title { font-size: 30px; }
}
