@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  --bg-light: #F8F6F0;
  --bg-yellow: #F4C773;
  --bg-cream: #FCFBF7;
  --text-dark: #1C2D27;
  --text-gray: #4A4A4A;
  --accent-orange: #C05746;
  --line-gray: #DCD6CC;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', Arial, sans-serif;
  --max-width: 1000px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-light);
  color: var(--text-gray);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container,
.page-inner {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-inner {
  max-width: 820px;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: fit-content;
}

.dot-grid span {
  width: 3px;
  height: 3px;
  background-color: #A0A0A0;
  border-radius: 50%;
}

.top-header {
  padding: 30px 0 10px;
  position: relative;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.top-logo {
  width: 100px;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
}

.desktop-nav a {
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: var(--accent-orange);
}

.header-dots {
  position: absolute;
  right: -2%;
  top: 30px;
}

.hamburger {
  display: none;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(28, 45, 39, 0.08);
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: 0.3s;
  border-radius: 999px;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

body.menu-open .hamburger {
  position: fixed;
  top: 18px;
  right: 5%;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  padding: 88px 20px 24px;
  background: rgba(28, 45, 39, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-content {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 10px;
  background-color: rgba(248, 246, 240, 0.96);
  border: 1px solid rgba(28, 45, 39, 0.08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(28, 45, 39, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 45, 39, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover,
.mobile-link:focus-visible {
  color: var(--accent-orange);
  outline: none;
}

.page-hero {
  padding: 18px 0 34px;
}

.page-hero .page-inner {
  border-top: 1px solid var(--line-gray);
  padding-top: 28px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.12;
}

h1 {
  font-size: 3rem;
  max-width: 760px;
}

.page-hero p:not(.eyebrow) {
  max-width: 690px;
  margin-top: 18px;
  font-size: 0.98rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.section {
  padding: 0 0 80px;
}

.article-hero {
  padding: 18px 0 34px;
}

.article-hero-inner {
  border-top: 1px solid var(--line-gray);
  padding-top: 28px;
  position: relative;
}

.article-hero-inner::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  width: 58px;
  height: 58px;
  background-image: radial-gradient(circle, rgba(160, 160, 160, 0.75) 1.5px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: 0.55;
}

.article-backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-backlink::before {
  content: "";
  width: 34px;
  height: 1px;
  background-color: var(--accent-orange);
}

.article-hero h1 {
  max-width: 760px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-gray);
}

.article-hero-meta .post-meta {
  margin-bottom: 0;
  white-space: nowrap;
}

.article-meta-divider {
  width: 44px;
  height: 2px;
  background-color: rgba(192, 87, 70, 0.3);
  flex-shrink: 0;
}

.article-hero-excerpt {
  max-width: 540px;
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.article-section {
  padding-top: 4px;
}

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

.post-card {
  border: 1px solid var(--line-gray);
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  min-height: 100%;
}

.post-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card time,
.post-meta {
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.post-card h2,
.post-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 15px;
}

.post-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent-orange);
  align-self: flex-start;
  padding-bottom: 2px;
}

.article {
  max-width: 820px;
  margin: 0 auto;
}

.article-shell {
  border: 1px solid var(--line-gray);
  background: linear-gradient(180deg, rgba(244, 199, 115, 0.16) 0%, rgba(252, 251, 247, 0.96) 120px, #fff 320px);
  padding: 28px;
}

.article h1 {
  font-size: 2.9rem;
}

.article-media-frame {
  padding: 12px;
  background-color: rgba(248, 246, 240, 0.95);
  border: 1px solid rgba(28, 45, 39, 0.08);
  margin: 0 0 34px;
}

.article-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  font-size: 1rem;
  color: #34383b;
  line-height: 1.8;
}

.article-body {
  padding: 0 18px 0 0;
}

.article-content h2 {
  margin: 34px 0 18px;
  font-size: 2rem;
}

.article-content h3 {
  margin: 28px 0 14px;
  font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-content blockquote {
  border-left: 2px solid var(--accent-orange);
  padding: 4px 0 4px 18px;
  color: var(--text-dark);
  font-style: italic;
}

.article-content a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content strong {
  color: var(--text-dark);
}

.article-content img {
  max-width: 100%;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(28, 45, 39, 0.08);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line-gray);
}

.article-cta-kicker {
  margin-bottom: 6px;
  color: var(--accent-orange);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-cta-text {
  max-width: 480px;
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-cta-link {
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 40px;
  border: 1px dashed var(--line-gray);
  color: var(--text-gray);
  background: #fff;
}

.site-footer {
  background-color: var(--bg-light);
  padding: 80px 0 40px;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.footer-left h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 5px;
}

.footer-italic {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent-orange);
}

.btn-hablemos {
  display: inline-block;
  background-color: #F6D056;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 16px 40px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn-hablemos:hover {
  background-color: #E2B93D;
}

.bottom-dots {
  position: absolute;
  right: 0;
  bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  border-top: 1px solid var(--line-gray);
  padding-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.social-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent-orange);
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #E5E0D5;
  border-radius: 50%;
  color: #6A7A74;
  font-size: 14px;
  font-weight: 700;
}

.go-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(20px);
}

.go-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-top-btn:hover {
  background-color: #A04030;
}

.go-top-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .top-header { padding: 18px 0; }
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-top { flex-direction: column; text-align: center; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 15px; }
  .right-dots, .bottom-dots, .dot-grid { display: none; }
  h1 { font-size: 2.45rem; }
  .article h1 { font-size: 2.4rem; }
  .article-hero-meta { flex-direction: column; align-items: flex-start; }
  .article-meta-divider { width: 100px; }
  .article-shell { padding: 24px; }
  .article-body { padding-right: 0; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .top-header { padding: 15px 0; }
  .top-logo { width: 80px; }
  body.menu-open .hamburger { top: 14px; right: 5%; }
  .mobile-nav-overlay { padding: 76px 14px 20px; }
  .mobile-nav-content { border-radius: 20px; padding: 18px; }
  .mobile-link { font-size: 1.2rem; }
  .page-hero { padding: 14px 0 24px; }
  .page-hero .page-inner { padding-top: 22px; }
  .article-hero { padding: 14px 0 24px; }
  .article-hero-inner { padding-top: 22px; }
  .article-backlink { margin-bottom: 14px; font-size: 0.72rem; }
  h1,
  .article h1 { font-size: 2rem; }
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-shell { padding: 18px; }
  .article-media-frame { padding: 8px; margin-bottom: 24px; }
  .article-hero-meta { gap: 12px; margin-top: 18px; padding-top: 16px; }
  .article-hero-excerpt { font-size: 0.88rem; }
  .article-gallery { grid-template-columns: 1fr; }
  .article-content { font-size: 0.95rem; }
  .article-content h2 { font-size: 1.5rem; }
  .article-content h3 { font-size: 1.25rem; }
  .article-cta { margin-top: 34px; padding-top: 22px; }
  .article-cta-link { width: 100%; text-align: center; }
  .site-footer { padding: 50px 0 30px; }
  .footer-left h2 { font-size: 1.8rem; }
  .footer-italic { font-size: 1.1rem; }
  .footer-top { margin-bottom: 40px; }
}
