@charset "UTF-8";

:root {
  --bg: #071a16;
  --bg-soft: #0d241d;
  --bg-card: #10291f;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-dark: #64748b;
  --line: rgba(255,255,255,.12);
  --primary: #2e7d32;
  --primary-soft: #c8e6c9;
  --white: #ffffff;
  --light: #f8fafc;
  --radius: 22px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, .94);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  border-bottom-color: rgba(255,255,255,.12);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  color: var(--muted);
  font-size: .94rem;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  position: relative;
  transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--white);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-soft);
  transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  background: rgba(255,255,255,.04);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: .9rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: var(--white);
  font-size: 1.3rem;
}

.blog-hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(37,99,235,.28), transparent 30%),
    linear-gradient(135deg, #06140f 0%, #10291f 100%);
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.blog-hero.compact {
  padding: 90px 0 70px;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  align-items: end;
}

.eyebrow {
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.blog-hero h1,
.single-article h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.06em;
  margin-bottom: 22px;
}

.blog-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-search,
.search-form {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.hero-search input,
.search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: inherit;
}

.hero-search button,
.search-form button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 74px 0;
}

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

.post-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  color: #10291f;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 22px 60px rgba(0,0,0,.16);
  transition: transform .22s ease, box-shadow .22s ease;
}

.post-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(0,0,0,.20);
}

.post-thumb img,
.placeholder-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.placeholder-thumb {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.24), transparent 35%),
    linear-gradient(135deg, #10291f, #06140f);
  color: var(--white);
  font-weight: 800;
}

.post-content {
  padding: 26px;
}

.post-category {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(37,99,235,.08);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.post-content h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.post-content p {
  color: #64748b;
  font-size: .98rem;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 800;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.widget-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.widget-title {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.widget-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.widget-card a {
  color: var(--muted);
}

.widget-card a:hover {
  color: var(--white);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding: 100px 0;
}

.single-layout.no-sidebar {
  max-width: 900px;
  display: block;
}

.single-article {
  min-width: 0;
}

.post-meta {
  color: var(--muted);
  margin-bottom: 30px;
}

.single-thumb {
  overflow: hidden;
  margin-bottom: 42px;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.single-content {
  color: #dbe4f0;
  font-size: 1.08rem;
}

.single-content p,
.single-content ul,
.single-content ol {
  margin-bottom: 24px;
}

.single-content h2,
.single-content h3 {
  margin: 38px 0 16px;
  color: var(--white);
  line-height: 1.15;
}

.single-content h2 {
  font-size: 2rem;
}

.single-content h3 {
  font-size: 1.45rem;
}

.single-content a {
  color: #81c784;
  font-weight: 800;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.single-tags a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--muted);
}

.pagination {
  margin-top: 46px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pagination .current {
  color: var(--white);
  background: var(--primary);
}

.empty-state {
  padding: 40px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.site-footer {
  padding: 64px 0;
  background: #06140f;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo img {
  margin-bottom: 20px;
}

.site-footer h3 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: white;
}

@media (max-width: 1080px) {
  .blog-hero-inner,
  .blog-layout,
  .single-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 24px;
    border-radius: 20px;
    background: rgba(8,17,31,.96);
    border: 1px solid var(--line);
  }

  .main-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .main-nav.is-open {
    display: block;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-actions .btn-secondary {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 26px, var(--max));
  }

  .blog-hero {
    padding: 100px 0 70px;
  }

  .hero-search,
  .search-form {
    flex-direction: column;
  }
}


/* =========================
   WORDPRESS MENU SUPPORT
========================= */

.main-nav ul {
  margin: 0;
  padding: 0;
}

.main-nav li {
  list-style: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

/* Editorial colour nuance for Blog Sutil Web */
.blog-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(16,185,129,.24), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(167,243,208,.12), transparent 30%),
    linear-gradient(135deg, #071a16 0%, #0d241d 100%);
}

.post-category {
  color: var(--primary);
  background: rgba(16,185,129,.10);
}

.hero-search button,
.search-form button,
.pagination .current {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #052e16;
}


/* =========================
   SUBMENÚS WORDPRESS
========================= */

.main-nav-list li {
  position: relative;
}

.main-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 230px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(7, 26, 22, .98);
  border: 1px solid rgba(167, 243, 208, .14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 2000;
}

.main-nav-list li:hover > .sub-menu,
.main-nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav-list .sub-menu li {
  width: 100%;
}

.main-nav-list .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav-list .sub-menu a:hover {
  color: var(--white);
  background: rgba(16, 185, 129, .12);
}

.main-nav-list .sub-menu a::after {
  display: none;
}

/* Tercer nivel */
.main-nav-list .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 10px);
}

/* Indicador visual de elementos con submenú */
.main-nav-list .menu-item-has-children > a::before {
  content: "⌄";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  color: var(--primary-soft);
}

@media (max-width: 1080px) {

  .main-nav-list .sub-menu {
    position: static;
    min-width: 100%;
    margin-top: 10px;
    padding: 8px 0 8px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav-list .sub-menu .sub-menu {
    position: static;
    left: auto;
  }

  .main-nav-list .menu-item-has-children > a::before {
    right: -18px;
  }

}


/* =========================
   FEATURED HERO V5
========================= */

.featured-hero {
  position: relative;
  padding: 120px 0 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 14%, rgba(16,185,129,.22), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(167,243,208,.10), transparent 28%),
    linear-gradient(135deg, #071a16 0%, #0d241d 100%);
}

.featured-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.featured-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.featured-content h1 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -.06em;
  margin-bottom: 24px;
}

.featured-content h1 a {
  transition: color .2s ease;
}

.featured-content h1 a:hover {
  color: var(--primary-soft);
}

.featured-content p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 24px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--primary-soft);
  font-weight: 700;
  margin-bottom: 28px;
}

.featured-meta a {
  color: var(--primary-soft);
}

.featured-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #052e16;
  font-weight: 900;
  box-shadow: 0 22px 52px rgba(16,185,129,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.featured-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(16,185,129,.25);
}

.featured-image {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(167,243,208,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
  transform: rotate(-1deg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.featured-image:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 36px 110px rgba(0,0,0,.42);
}

.featured-image img,
.featured-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10.8;
  object-fit: cover;
}

.featured-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.26), transparent 34%),
    linear-gradient(135deg, #10291f, #071a16);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 900;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title-row h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.compact-search {
  display: flex;
  gap: 10px;
  min-width: min(100%, 360px);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.compact-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: inherit;
}

.compact-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #052e16;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .featured-layout,
  .section-title-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .featured-image {
    transform: none;
  }

  .compact-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .featured-hero {
    padding: 96px 0 70px;
  }

  .compact-search {
    flex-direction: column;
  }

  .compact-search button {
    min-height: 42px;
  }
}


/* =========================
   FEATURED HERO CARD V6
========================= */

.featured-hero {
  padding: 112px 0 82px;
}

.featured-layout {
  gap: 42px;
}

.featured-content {
  position: relative;
  padding: 42px;
  border-radius: 30px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.095),
      rgba(255,255,255,.035)
    );
  border: 1px solid rgba(167,243,208,.16);
  box-shadow:
    0 28px 90px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.featured-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at top right,
      rgba(16,185,129,.16),
      transparent 38%
    );
  pointer-events: none;
}

.featured-content > * {
  position: relative;
  z-index: 1;
}

.featured-content h1 {
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.05em;
  margin-bottom: 22px;
}

.featured-content p {
  font-size: 1.04rem;
  max-width: 620px;
}

.featured-image {
  border-radius: 32px;
}

.featured-image img,
.featured-placeholder {
  aspect-ratio: 16 / 11.5;
}

.section-title-row {
  margin-bottom: 34px;
}

@media (max-width: 1080px) {
  .featured-content {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .featured-content {
    padding: 26px;
    border-radius: 24px;
  }

  .featured-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

/* =========================
   FOOTER WIDGETS V8
   Cabecera original conservada
========================= */

.site-footer {
  padding: 72px 0 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(16,185,129,.12), transparent 28%),
    #06140f;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
  padding-bottom: 52px;
}

.footer-column,
.footer-widget {
  min-width: 0;
}

.footer-widget + .footer-widget {
  margin-top: 22px;
}

.footer-widget-title,
.footer-column h3,
.site-footer h3 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 16px;
}

.footer-widget p,
.footer-column p {
  margin-bottom: 14px;
}

.footer-widget ul,
.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-widget li,
.footer-column li {
  margin: 0;
}

.footer-widget a,
.footer-column a,
.site-footer a {
  color: var(--muted);
}

.footer-widget a:hover,
.footer-column a:hover,
.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-dark);
  font-size: .92rem;
}

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-list a {
  margin: 0;
}

@media (max-width: 1080px) {
  .footer-widgets-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-widgets-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-bottom {
    justify-content: start;
  }
}

/* =========================
   V9 ajustes solicitados
   Home sin sidebar, páginas/entradas con sidebar,
   footer en dos columnas y logo Blog
========================= */

.logo img {
  height: 52px;
  width: auto;
}

.blog-layout.home-no-sidebar {
  grid-template-columns: 1fr;
}

.home-no-sidebar .posts-area {
  width: 100%;
}

.home-no-sidebar .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 48px;
}

.footer-two-columns .footer-column {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-contact-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list span {
  color: var(--white);
  font-weight: 800;
}

.footer-social-links a {
  margin-bottom: 0;
}

.footer-legal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-list a {
  position: relative;
  padding-left: 18px;
  margin-bottom: 0;
}

.footer-legal-list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary-soft);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .home-no-sidebar .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .logo img {
    height: 44px;
  }

  .footer-two-columns,
  .home-no-sidebar .post-grid,
  .footer-legal-list {
    grid-template-columns: 1fr;
  }
}


/* =========================
   V10 ajustes finales
   Logo configurable, footer 3 columnas y home sin sidebar
========================= */

.logo img,
.logo .custom-logo {
  max-height: 52px;
  width: auto;
}

.blog-layout.home-no-sidebar {
  grid-template-columns: 1fr;
}

.home-no-sidebar .posts-area {
  width: 100%;
}

.home-no-sidebar .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 48px;
}

.footer-three-columns .footer-column {
  min-width: 0;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-contact-list,
.footer-social-list,
.footer-legal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list span {
  color: var(--white);
  font-weight: 800;
}

.footer-social-list a,
.footer-legal-list a {
  position: relative;
  display: inline-flex;
  padding-left: 18px;
  margin-bottom: 0;
}

.footer-social-list a::before,
.footer-legal-list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary-soft);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .home-no-sidebar .post-grid,
  .footer-three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .logo img,
  .logo .custom-logo {
    max-height: 44px;
  }

  .footer-three-columns,
  .home-no-sidebar .post-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   V12 ajustes verde editorial
   Logo proporcionado desde WordPress, proporcional al menú,
   home sin sidebar, páginas/entradas con sidebar y footer 3 columnas.
========================= */

:root {
  --bg: #06140f;
  --bg-soft: #0b2218;
  --bg-card: #10291f;
  --primary: #2e7d32;
  --primary-soft: #81c784;
}

.site-header {
  background: rgba(6, 20, 15, .90);
  border-bottom: 1px solid rgba(129,199,132,.18);
}

.header-inner {
  min-height: 86px;
  align-items: center;
}

.logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 240px;
  min-width: 0;
}

.logo img,
.logo .custom-logo,
.custom-logo-link img,
img.custom-logo {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 54px !important;
  max-width: 230px !important;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
}

.main-nav-list {
  gap: 22px;
}

.main-nav-list > li {
  position: relative;
}

.main-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 230px;
  padding: 12px;
  list-style: none;
  border-radius: 18px;
  background: rgba(6, 20, 15, .98);
  border: 1px solid rgba(129,199,132,.20);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.main-nav-list li:hover > .sub-menu,
.main-nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav-list .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.main-nav-list .sub-menu a:hover {
  background: rgba(46,125,50,.16);
}

.blog-layout.home-no-sidebar {
  grid-template-columns: 1fr !important;
}

.home-no-sidebar .posts-area {
  width: 100%;
}

.home-no-sidebar .post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.footer-three-columns {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.footer-three-columns .footer-column {
  background: rgba(255,255,255,.04);
  border-color: rgba(129,199,132,.18);
}

@media (max-width: 1080px) {
  .home-no-sidebar .post-grid,
  .footer-three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 74px;
  }

  .logo,
  .custom-logo-link {
    max-width: 190px;
  }

  .logo img,
  .logo .custom-logo,
  .custom-logo-link img,
  img.custom-logo {
    max-height: 42px !important;
    max-width: 185px !important;
  }

  .home-no-sidebar .post-grid,
  .footer-three-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .logo,
  .custom-logo-link {
    max-width: 165px;
  }

  .logo img,
  .logo .custom-logo,
  .custom-logo-link img,
  img.custom-logo {
    max-height: 38px !important;
    max-width: 160px !important;
  }
}


/* V12 paleta verde diferenciada para el blog */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4caf50, transparent);
  opacity: .55;
}

a, .post-card h2 a:hover, .entry-content a {
  color: var(--primary);
}

.featured-btn, .compact-search button, .pagination .page-numbers.current {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #ffffff;
}
