/* ═══════════════════════════════════════════
   SANLUCAR SECRETA — MAIN STYLESHEET
   Estetica mediterranea: tonos arena, azul
   mar, blanco encalado, luz del sur.
   ═══════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --bg-base:       #faf8f4;
  --bg-surface:    #ffffff;
  --bg-warm:       #f5f0e8;
  --bg-hero:       #1a3a4a;

  --primary:       #1a6b8a;
  --primary-dark:  #0e4d66;
  --primary-light: #e8f4f8;
  --accent:        #d4a055;
  --accent-light:  #f8eedd;

  --text-primary:   #2c3e50;
  --text-secondary: #6b7c8d;
  --text-muted:     #9ba8b4;
  --text-on-dark:   #f0ece4;

  --border:        #e8e2d6;
  --border-light:  #f0ebe0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);

  --nav-height: 72px;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo { display: flex; align-items: center; gap: 8px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.logo-text span { color: var(--primary); }

.nav-menu {
  display: flex;
  gap: 32px;
}
.nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color .2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: .3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, #1a3a4a 0%, #2d6b7f 40%, #4a9bb5 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212,160,85,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  max-width: 700px;
  padding: 80px 0;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
}

.hero__title .highlight {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-on-dark);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all .25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #c4903f;
  border-color: #c4903f;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* ══════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   CATEGORÍAS
══════════════════════════════════════════════ */
.categorias {
  padding: 100px 0;
  background: var(--bg-surface);
}

.categorias__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.categoria-card {
  display: block;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: all .3s;
  text-decoration: none;
}
.categoria-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.categoria-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.categoria-card__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.categoria-card__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   POST CARDS
══════════════════════════════════════════════ */
.recent-posts {
  padding: 100px 0;
  background: var(--bg-base);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.post-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .3s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.post-card__image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card__image img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 24px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card__category {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-card__title a { color: var(--text-primary); }
.post-card__title a:hover { color: var(--primary); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.post-card__link:hover { color: var(--primary-dark); }

/* ══════════════════════════════════════════════
   ARCHIVE
══════════════════════════════════════════════ */
.archive-main {
  padding: 60px 0 100px;
}

.archive-header {
  margin-bottom: 48px;
}
.archive-header__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.archive-header__desc {
  color: var(--text-secondary);
  margin-top: 8px;
}

.no-content {
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 80px 0;
  text-align: center;
}

/* ── Pagination ────────────────────────────── */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.nav-links a,
.nav-links span {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.nav-links .current {
  background: var(--primary);
  color: #fff;
}

/* ══════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════ */
.single-post {
  padding: 40px 0 100px;
}

.single-post__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 500px;
}
.single-post__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.single-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-category-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
}

.single-post__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.single-post__body {
  font-size: 1.05rem;
  line-height: 1.85;
}
.single-post__body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--text-primary);
}
.single-post__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.single-post__body p {
  margin-bottom: 20px;
  color: var(--text-primary);
}
.single-post__body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.single-post__body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.single-post__body ul,
.single-post__body ol {
  margin: 16px 0;
  padding-left: 24px;
}
.single-post__body li {
  list-style: disc;
  margin-bottom: 8px;
}
.single-post__body ol li {
  list-style: decimal;
}

.single-post__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tag {
  background: var(--bg-warm);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
}
.post-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Sidebar ──────────────────────────────── */
.single-post__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.widget {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.widget__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════
   PAGE
══════════════════════════════════════════════ */
.page-main {
  padding: 60px 0 100px;
}

.page-content__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.page-content__body {
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ══════════════════════════════════════════════
   ABOUT / QUIENES SOMOS
══════════════════════════════════════════════ */
.about-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #1a3a4a 0%, #2d6b7f 60%, #3d8a9e 100%);
  text-align: center;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,160,85,0.12) 0%, transparent 60%);
}

.about-hero__content {
  position: relative;
}

.about-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.about-hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-on-dark);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-story {
  padding: 80px 0 100px;
  background: var(--bg-base);
}

.about-story__layout {
  max-width: 780px;
  margin: 0 auto;
}

.about-story__content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 20px;
}
.about-story__content h2:first-child {
  margin-top: 0;
}

.about-story__content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-story__content em {
  color: var(--primary);
  font-style: italic;
}

.about-story__content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Pillars (4 columnas de contenido) ───── */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 36px 0 48px;
}

.about-pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all .3s;
}
.about-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.about-pillar__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.about-pillar p {
  font-size: 0.92rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .about-pillars { grid-template-columns: 1fr; }
  .about-hero { padding: 72px 0 56px; }
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: #1a2a35;
  color: var(--text-on-dark);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo .logo-text { color: #fff; }
.footer-brand__description {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .categorias__grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post__layout { grid-template-columns: 1fr; }
  .single-post__sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a { padding: 12px 0; display: block; }
  .nav-toggle { display: block; }

  .hero { min-height: 70vh; }
  .hero__title { font-size: 2rem; }

  .categorias__grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
