/*
Theme Name: Belen Arte y Mente
Theme URI: https://www.belenarteymente.es
Author: ChatGPT
Description: Tema WordPress personalizado para un archivo fotográfico de arte urbano, grafitis, viajes, psicología y fototerapia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belenarteymente
Tags: photography, portfolio, blog, custom-post-types, responsive
*/

:root {
  --bam-bg: #f7f3ed;
  --bam-surface: #ffffff;
  --bam-text: #1f1f1f;
  --bam-muted: #6f6b66;
  --bam-line: rgba(31, 31, 31, 0.12);
  --bam-brick: #b85c38;
  --bam-olive: #6f7d5c;
  --bam-rose: #c97c8a;
  --bam-cement: #8a8a8a;
  --bam-shadow: 0 20px 55px rgba(31, 31, 31, 0.10);
  --bam-radius: 24px;
  --bam-radius-sm: 14px;
  --bam-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bam-bg);
  color: var(--bam-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
a:hover { color: var(--bam-brick); }

.bam-container {
  width: min(var(--bam-container), calc(100% - 32px));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bam-line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo { max-height: 48px; width: auto; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.site-title a { text-decoration: none; }
.site-description {
  margin: 2px 0 0;
  color: var(--bam-muted);
  font-size: 0.92rem;
}
.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--bam-text);
  color: var(--bam-bg);
}

.hero {
  padding: clamp(54px, 8vw, 110px) 0 clamp(42px, 7vw, 86px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--bam-line);
  border-radius: 999px;
  color: var(--bam-muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero h1,
.page-title,
.entry-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.hero h1 {
  margin: 18px 0;
  max-width: 850px;
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
}
.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--bam-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--bam-text);
  border-radius: 999px;
  background: var(--bam-text);
  color: var(--bam-bg);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  color: var(--bam-text);
}
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
  background: var(--bam-brick);
  border-color: var(--bam-brick);
  color: #fff;
}
.hero-collage {
  position: relative;
  min-height: 510px;
}
.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 32px;
  background: #ddd;
  box-shadow: var(--bam-shadow);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.one { inset: 0 22% 25% 0; transform: rotate(-2deg); }
.hero-card.two { inset: 26% 0 0 30%; transform: rotate(3deg); }
.hero-note {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 270px;
  padding: 18px;
  border-radius: 22px;
  background: var(--bam-surface);
  box-shadow: var(--bam-shadow);
  font-weight: 700;
}
.hero-note span { color: var(--bam-brick); }

.section { padding: clamp(36px, 6vw, 82px) 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.section-intro {
  max-width: 620px;
  color: var(--bam-muted);
  margin: 10px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  overflow: hidden;
  border: 1px solid var(--bam-line);
  border-radius: var(--bam-radius);
  background: var(--bam-surface);
  box-shadow: 0 10px 30px rgba(31, 31, 31, 0.06);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(184,92,56,.2), rgba(111,125,92,.18));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px; }
.card-title {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}
.card-title a { text-decoration: none; }
.card-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--bam-muted);
  font-size: 0.9rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(184, 92, 56, 0.10);
  color: var(--bam-brick);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.82rem;
}
.badge.olive { background: rgba(111, 125, 92, 0.13); color: var(--bam-olive); }
.badge.rose { background: rgba(201, 124, 138, 0.14); color: #9a4c5b; }
.card-excerpt { color: var(--bam-muted); margin: 12px 0 0; }

.tax-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tax-cloud a,
.tax-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--bam-line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  text-decoration: none;
  font-weight: 750;
}
.tax-cloud a:hover,
.tax-pill:hover { background: var(--bam-text); color: var(--bam-bg); }

.archive-header,
.entry-header {
  padding: clamp(42px, 7vw, 84px) 0 28px;
}
.page-title,
.entry-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.archive-description {
  max-width: 740px;
  color: var(--bam-muted);
  font-size: 1.1rem;
}
.filters-panel {
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--bam-line);
  border-radius: var(--bam-radius);
  background: rgba(255,255,255,.55);
}
.filters-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bam-muted);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.entry-content,
.sidebar-box {
  border: 1px solid var(--bam-line);
  border-radius: var(--bam-radius);
  background: rgba(255,255,255,.62);
  padding: clamp(20px, 3vw, 34px);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin-bottom: 1.15em; }
.entry-content h2,
.entry-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.featured-image {
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: var(--bam-radius);
  box-shadow: var(--bam-shadow);
}
.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bam-line);
}
.meta-list strong { color: var(--bam-muted); }

.post-navigation,
.posts-navigation {
  margin: 34px 0;
}
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.nav-previous,
.nav-next {
  flex: 1;
}
.nav-next { text-align: right; }

.site-footer {
  margin-top: 64px;
  padding: 42px 0;
  border-top: 1px solid var(--bam-line);
  color: var(--bam-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner a { color: var(--bam-text); font-weight: 700; }

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--bam-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bam-text);
  font: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(184,92,56,.22);
  border-color: var(--bam-brick);
}

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .main-navigation ul { justify-content: flex-start; }
  .hero-grid,
  .content-wrap { grid-template-columns: 1fr; }
  .hero-collage { min-height: 390px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-card.one { inset: 0 10% 32% 0; }
  .hero-card.two { inset: 31% 0 0 18%; }
  .nav-links { flex-direction: column; }
  .nav-next { text-align: left; }
}