/*
Theme Name: Freddy Dev
Theme URI: https://github.com/freddyrosell
Author: Freddy Rosell
Author URI: https://freddyrosell.com
Description: A minimal developer portfolio theme — clean typography, dark/light mode, built for showcasing projects and writing.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freddy-dev
Tags: portfolio, minimal, blog, developer
*/

/* ══════════════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════════════ */
:root {
  --bg:          #ffffff;
  --text:        #0f0f0f;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --tag-bg:      #f3f4f6;
  --tag-text:    #374151;
  --icon-fill:   #0f0f0f;

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', monospace;

  --xs: 0.5rem;  --sm: 1rem;   --md: 1.5rem;
  --lg: 2.5rem;  --xl: 4rem;   --2xl: 6rem;

  --max-w: 680px;
  --r: 6px;
  --ease: 200ms ease;
}

[data-theme="dark"] {
  --bg:        #0f0f0f;
  --text:      #f0f0f0;
  --muted:     #9ca3af;
  --border:    #2a2a2a;
  --tag-bg:    #1e1e1e;
  --tag-text:  #d1d5db;
  --icon-fill: #f0f0f0;
}

/* ══════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; min-height: 100vh; transition: background var(--ease), color var(--ease); }
img  { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a  { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.site-wrapper { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--md); }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--text); color: var(--bg);
  padding: 0.5rem 1rem; border-radius: var(--r);
  font-size: 0.875rem; z-index: 9999; transition: top var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════════════════
   HEADER  (desktop)
══════════════════════════════════════════════════════ */
.site-header {
  padding: var(--lg) 0;
  margin-bottom: var(--xl);
  background: var(--bg);
  transition: background var(--ease);
}
.site-header .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
}

/* Branding */
.site-branding a { display: flex; align-items: center; gap: 0.75rem; }
.site-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
  transition: color var(--ease);
}
.site-branding a:hover .site-title { color: var(--muted); }

/* Avatar pequeño — solo móvil */
.mobile-avatar-branding {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* Header right: nav + controles */
.header-right { display: flex; align-items: center; gap: var(--md); }

/* ══════════════════════════════════════════════════════
   NAV  —  DESKTOP (inline)
══════════════════════════════════════════════════════ */
.main-nav { display: flex; align-items: center; }
.main-nav .nav-panel-header,
.main-nav .nav-divider,
.main-nav .nav-social-links { display: none; }   /* solo panel móvil */

/* Los links de nav viven en .nav-links — flex horizontal en desktop */
.nav-links { display: flex; flex-direction: row; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--muted); white-space: nowrap;
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.current-menu-item { color: var(--text); }

.main-nav a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--muted); white-space: nowrap;
  transition: color var(--ease);
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--text); }

/* ══════════════════════════════════════════════════════
   THEME SWITCHER
══════════════════════════════════════════════════════ */
.theme-switcher {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: var(--r);
  transition: opacity var(--ease); flex-shrink: 0;
}
.theme-switcher:hover { opacity: 0.6; }
.theme-switcher svg { width: 20px; height: 20px; display: block; fill: var(--icon-fill); transition: fill var(--ease); }

/* desktop: switcher en footer; móvil: en header */
.header-theme-switcher { display: none; }
.footer-theme-switcher { display: flex; }

/* ══════════════════════════════════════════════════════
   HAMBURGER  —  oculto en desktop
══════════════════════════════════════════════════════ */
.nav-toggle {
  display: none;
  background: none; border: none; padding: 4px;
  cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle svg {
  width: 24px; height: 24px; display: block;
  fill: var(--icon-fill); transition: fill var(--ease);
  transform: scaleX(-1);  /* espejado */
}

/* ══════════════════════════════════════════════════════
   OVERLAY  —  fondo oscuro detrás del panel
══════════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--xl); align-items: center;
  padding: var(--xl) 0;
  margin-bottom: var(--xl);
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 400;
  line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: var(--md); color: var(--text);
}
.hero-content p { font-size: 1.0625rem; color: var(--muted); line-height: 1.75; max-width: 480px; }
.hero-content p a { color: var(--text); border-bottom: 1px solid var(--border); transition: border-color var(--ease), color var(--ease); }
.hero-content p a:hover { color: var(--muted); border-color: var(--muted); }
.hero-avatar { width: 156px; height: 156px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   SECTION LABEL
══════════════════════════════════════════════════════ */
.section-label {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--lg);
}

/* ══════════════════════════════════════════════════════
   POST LIST
══════════════════════════════════════════════════════ */
.post-list { margin-bottom: var(--xl); }
.post-item { padding: var(--lg) 0; border-bottom: 1px solid var(--border); }
.post-item:first-child { border-top: 1px solid var(--border); }
.post-meta { display: flex; align-items: center; gap: var(--sm); margin-bottom: 0.75rem; flex-wrap: wrap; }
.post-categories { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.category-tag {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--tag-text); background: var(--tag-bg);
  padding: 2px 10px; border-radius: 99px; transition: background var(--ease);
}
.category-tag:hover { background: var(--border); }
.post-date { font-size: 0.875rem; color: var(--muted); }
.post-item h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 400;
  line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.post-item h2 a { color: var(--text); transition: color var(--ease); }
.post-item h2 a:hover { color: var(--muted); }
.post-excerpt { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* View all */
.view-all {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--muted); margin-bottom: var(--2xl); transition: color var(--ease);
}
.view-all:hover { color: var(--text); }
.view-all::after { content: '→'; transition: transform var(--ease); }
.view-all:hover::after { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════
   PROJECTS PAGE
══════════════════════════════════════════════════════ */

/* Proyecto Destacado */
.project-featured {
  margin-bottom: var(--2xl);
  padding-bottom: var(--xl);
  border-bottom: 1px solid var(--border);
}
.project-featured h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: var(--sm);
}
.project-featured h2 a { color: var(--text); transition: color var(--ease); }
.project-featured h2 a:hover { color: var(--muted); }
.project-featured-desc {
  font-size: 1.0625rem; color: var(--muted);
  line-height: 1.75; margin-bottom: var(--lg); max-width: 580px;
}
.project-featured-image {
  display: block; width: 100%;
  border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden; transition: opacity var(--ease);
}
.project-featured-image:hover { opacity: 0.9; }
.project-featured-image img { width: 100%; height: auto; display: block; }

/* Grid 2 columnas */
.projects-section { margin-bottom: var(--2xl); }
.projects-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--md);
}
.project-card-v2 {
  display: block;
  border: 1px solid var(--border); border-radius: var(--r);
  padding: var(--md);
  transition: border-color var(--ease);
  color: var(--text);
}
.project-card-v2:hover { border-color: var(--text); }
.project-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--sm); margin-bottom: 0.5rem;
}
.project-card-name { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.project-card-date { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.project-card-desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   WORDPRESS STATS
══════════════════════════════════════════════════════ */
.wp-stats-section {
  margin-bottom: var(--2xl);
  padding: var(--lg);
  border: 1px solid var(--border); border-radius: var(--r);
}
.wp-stats-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: var(--lg); padding-bottom: var(--sm);
  border-bottom: 1px solid var(--border);
}
.wp-stats-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.wp-stats-username {
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
  transition: color var(--ease);
}
.wp-stats-username:hover { color: var(--muted); }
.wp-stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--md); margin-bottom: var(--lg);
}
.wp-stat-value { font-size: 1.5rem; font-weight: 600; color: var(--text); display: block; line-height: 1.2; margin-bottom: 0.25rem; }
.wp-stat-label { font-size: 0.8125rem; color: var(--muted); }
.wp-plugins-label {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--sm);
}
.wp-plugins-list { display: flex; flex-direction: column; }
.wp-plugin-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 0; border-bottom: 1px solid var(--border);
  color: var(--text); gap: var(--sm); transition: color var(--ease);
}
.wp-plugin-item:last-child { border-bottom: none; }
.wp-plugin-item:hover { color: var(--muted); }
.wp-plugin-name { font-size: 0.9375rem; font-weight: 500; }
.wp-plugin-installs { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }

/* ══════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════ */
.post-header { padding: var(--xl) 0 var(--lg); border-bottom: 1px solid var(--border); margin-bottom: var(--xl); }
.post-header h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; }
.post-content { margin-bottom: var(--2xl); }
.post-content p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: var(--md); }
.post-content h2 { font-size: 1.625rem; font-weight: 400; margin: var(--xl) 0 var(--sm); letter-spacing: -0.02em; }
.post-content h3 { font-size: 1.1875rem; font-weight: 600; margin: var(--lg) 0 var(--sm); }
.post-content a { color: var(--text); border-bottom: 1px solid var(--border); transition: color var(--ease), border-color var(--ease); }
.post-content a:hover { color: var(--muted); }
.post-content ul, .post-content ol { margin: var(--md) 0 var(--md) var(--lg); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 0.375rem; }
.post-content blockquote { border-left: 3px solid var(--text); margin: var(--lg) 0; padding: var(--sm) var(--md); }
.post-content blockquote p { font-size: 1.125rem; font-style: italic; color: var(--muted); margin: 0; }
.post-content pre { background: var(--tag-bg); border: 1px solid var(--border); border-radius: var(--r); padding: var(--md); overflow-x: auto; margin: var(--md) 0; }
.post-content code { font-family: var(--mono); font-size: 0.875rem; }
.post-content p code { background: var(--tag-bg); padding: 2px 6px; border-radius: 4px; }
.post-content img { border-radius: var(--r); margin: var(--lg) 0; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: var(--xl) 0; }

/* ══════════════════════════════════════════════════════
   PAGE
══════════════════════════════════════════════════════ */
.page-header { padding: var(--xl) 0 var(--lg); margin-bottom: var(--xl); }
.page-header h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 400; letter-spacing: -0.025em; }
.page-content { margin-bottom: var(--2xl); }
.page-content p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: var(--md); }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); padding: var(--xl) 0; margin-top: var(--2xl); }
.footer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--lg); margin-bottom: var(--lg); }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sm); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a, .footer-nav-menu a { font-size: 0.9375rem; color: var(--muted); transition: color var(--ease); }
.footer-col ul li a:hover, .footer-nav-menu a:hover { color: var(--text); }
.footer-nav-menu { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--md); flex-wrap: wrap; }
.footer-bottom p { font-size: 0.875rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   PAGINATION / SEARCH / 404
══════════════════════════════════════════════════════ */
.pagination { display: flex; gap: var(--sm); justify-content: center; margin: var(--xl) 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r); font-size: 0.9375rem; color: var(--muted); transition: all var(--ease); }
.pagination a:hover { border-color: var(--text); color: var(--text); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.search-form { display: flex; gap: var(--xs); margin-bottom: var(--xl); }
.search-form input[type="search"] { flex: 1; border: 1px solid var(--border); border-radius: var(--r); padding: 0.625rem 1rem; font-family: var(--font); font-size: 0.9375rem; color: var(--text); background: var(--bg); outline: none; transition: border-color var(--ease); }
.search-form input[type="search"]:focus { border-color: var(--text); }
.search-form button { background: var(--text); color: var(--bg); border: none; border-radius: var(--r); padding: 0.625rem 1.25rem; font-family: var(--font); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: opacity var(--ease); }
.search-form button:hover { opacity: 0.8; }
.error-404 { text-align: center; padding: var(--2xl) 0; }
.error-404 .error-code { font-size: 6rem; font-weight: 400; color: var(--border); line-height: 1; margin-bottom: var(--md); }
.error-404 h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--sm); }
.error-404 p { color: var(--muted); margin-bottom: var(--lg); }

/* ══════════════════════════════════════════════════════
   MOBILE  ≤ 640px
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --xl: 2.5rem; --2xl: 4rem; }

  /* Header */
  .site-header { padding: var(--sm) 0; margin-bottom: var(--lg); position: relative; }
  .site-header .site-wrapper { flex-wrap: nowrap; }

  /* Switcher: móvil en header, desktop en footer */
  .header-theme-switcher { display: flex; }
  .footer-theme-switcher { display: none; }

  /* Header right gap */
  .header-right { gap: 0.5rem; }

  /* Hamburger visible */
  .nav-toggle { display: flex; }

  /* ── BRANDING EN MÓVIL ── */
  /* Con avatar: mostrar foto, ocultar texto */
  .site-branding.has-avatar .site-title           { display: none; }
  .site-branding.has-avatar .mobile-avatar-branding { display: block; }
  /* Cuando menú abre: ocultar foto, mostrar texto */
  .site-branding.has-avatar.menu-open .site-title            { display: block; font-size: 0.9rem; }
  .site-branding.has-avatar.menu-open .mobile-avatar-branding { display: none; }
  /* Sin avatar: siempre texto */
  .site-branding:not(.has-avatar) .mobile-avatar-branding { display: none; }

  /* ── PANEL LATERAL (nav móvil) ── */
  /* En desktop el nav es flex inline sin estas secciones.
     En móvil lo convertimos en panel fixed. */
  .main-nav {
    /* Resetear estilos desktop */
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    /* Panel fixed derecha */
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: var(--bg);
    z-index: 200;
    overflow-y: auto;
    /* Empieza fuera de pantalla */
    transform: translateX(110%);
    transition: transform 180ms ease;
    /* Ocultar elementos desktop inline */
  }
  .main-nav.open { transform: translateX(0); }

  /* Mostrar elementos del panel que en desktop están ocultos */
  .main-nav .nav-panel-header  { display: flex; }
  .main-nav .nav-divider       { display: block; }
  .main-nav .nav-social-links  { display: flex; }

  /* Ocultar links inline del desktop dentro del panel */
  .main-nav > a { display: none; }

  /* Panel header: nombre + X */
  .nav-panel-header {
    align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; width: 100%;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .nav-panel-site-name { font-size: 1rem; font-weight: 600; color: var(--text); }
  .nav-close-btn {
    background: none; border: none; cursor: pointer;
    padding: 4px; color: var(--muted); font-size: 1.25rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
  }
  .nav-close-btn:hover { color: var(--text); }

  /* Links de nav dentro del panel */
  .nav-links { display: flex; flex-direction: column; width: 100%; }
  .nav-links a {
    font-size: 1.0625rem; font-weight: 400; color: var(--muted);
    padding: 0.875rem 1.5rem; width: 100%; display: block;
    transition: color var(--ease); white-space: normal;
    border: none !important;
  }
  .nav-links a:hover, .nav-links a.current-menu-item { color: var(--text); }

  /* Divisor */
  .nav-divider { width: 100%; height: 1px; background: var(--border); margin: 0.25rem 0; flex-shrink: 0; }

  /* Social links panel */
  .nav-social-links { flex-direction: column; width: 100%; padding-bottom: 1.5rem; }
  .nav-social-links a {
    font-size: 1.0625rem; font-weight: 400; color: var(--muted);
    padding: 0.875rem 1.5rem; width: 100%; display: block;
    transition: color var(--ease);
  }
  .nav-social-links a:hover { color: var(--text); }

  /* Hero */
  .hero { grid-template-columns: 1fr; gap: var(--lg); }
  .hero-avatar { display: none; }  /* oculto en móvil */

  /* Projects */
  .projects-grid-2col { grid-template-columns: 1fr; }
  .wp-stats-grid { grid-template-columns: repeat(2,1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* nav desktop gap movido a .nav-links arriba */

/* ══════════════════════════════════════════════════════
   FIX: PANEL MÓVIL — flotante, esquinas, tamaño ajustado
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* El panel NO ocupa toda la pantalla.
     Tiene ancho fijo, alto auto (se ajusta al contenido),
     separación del borde superior y derecho,
     border-radius y borde sutil. */
  .main-nav {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    width: calc(100% - 24px) !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: var(--bg) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    padding: 0 !important;
    transform: translateX(calc(100% + 20px)) !important;
    transition: transform 180ms ease, opacity 180ms ease !important;
    opacity: 0;
    z-index: 200;
  }

  [data-theme="dark"] .main-nav {
    border-color: rgba(255,255,255,0.1) !important;
  }
  [data-theme="light"] .main-nav,
  :root:not([data-theme="dark"]) .main-nav {
    border-color: rgba(0,0,0,0.1) !important;
  }

  .main-nav.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }

  /* Panel header: más compacto */
  .nav-panel-header {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid var(--border) !important;
  }

  /* Links nav en panel móvil: columna */
  .nav-links {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
  }
  .nav-links a {
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    color: var(--muted) !important;
    width: 100% !important;
    display: block !important;
    white-space: normal !important;
  }

  /* Social links */
  .nav-social-links a {
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
  }

  /* Divisor ajustado */
  .nav-divider { margin: 0.25rem 0 !important; }

  /* El overlay cubre toda la pantalla para cerrar al tocar fuera */
  .nav-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.3) !important;
    z-index: 199 !important;
  }
}

/* ── PROYECTOS EN HOMEPAGE ────────────────────────────── */
.home-projects {
  margin-bottom: var(--2xl);
}
.home-projects .projects-grid-2col {
  margin-bottom: var(--lg);
}

/* ── EXTRACTO EN PÁGINAS ────────────────────────────────── */
.page-excerpt {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 0.75rem;
  max-width: 560px;
}
