/*
Theme Name: Elementos Esenciales
Theme URI: https://localhost
Description: Tema hijo de Lightning
Author: Emigdio Camacho
Version: 1.0.0
Template: lightning
Text Domain: elementos-esenciales
*/

:root {
  --ee-font-display: "Playfair Display", Georgia, serif;
  --ee-font-support: "JetBrains Mono", monospace;
  --ee-font-body: "Inter", Arial, sans-serif;

  --ee-color-primary: #28612d;
  --ee-color-primary-dark: #0c2e28;
  --ee-color-accent: #c0a145;
  --ee-color-accent-dark: #8d5e1c;
  --ee-color-ink: #0c2e28;
  --ee-color-muted: #0c2e28;
  --ee-color-surface: #ecf3ee;
  --ee-color-surface-raised: #f8faf7;
  --ee-color-border: #ecf3ee;
  --ee-color-border-strong: #28612d;
  --ee-color-text-on-primary: #ecf3ee;
  --ee-color-overlay-light: #ecf3ee;
  --ee-color-focus: #c0a145;
  --ee-color-footer-divider: #c0a145;

  --vk-color-text-body: var(--ee-color-ink);
  --vk-color-text-header: var(--ee-color-primary-dark);
  --vk-color-text-link: var(--ee-color-primary);
  --vk-color-text-link-hover: var(--ee-color-accent-dark);
  --vk-color-primary: var(--ee-color-primary);
  --vk-color-primary-dark: var(--ee-color-primary-dark);
  --vk-color-primary-vivid: var(--ee-color-accent);
  --vk-color-header-bg: var(--ee-color-surface);
  --vk-color-footer-bg: var(--ee-color-primary-dark);
  --vk-color-border: var(--ee-color-border-strong);
  --vk-color-border-hr: var(--ee-color-border);
  --vk-color-border-form: var(--ee-color-border-strong);
}

html {
  background-color: var(--ee-color-surface);
}

body {
  isolation: isolate;
  background-color: transparent;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(40, 97, 45, 0.12), transparent 48%),
    radial-gradient(ellipse at 85% 75%, rgba(192, 161, 69, 0.12), transparent 44%),
    linear-gradient(135deg, #ecf3ee, #f3f4e9 52%, #ecf3ee);
  background-size: 160% 160%;
  animation: ee-page-background 30s ease-in-out infinite alternate;
  content: "";
  pointer-events: none;
}

body,
button,
input,
select,
textarea {
  font-family: var(--ee-font-body);
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-header-logo > a > span:first-child,
.ee-category-card__title,
.ee-footer__name {
  font-family: var(--ee-font-display);
  font-weight: 700;
}

.ee-hero h1,
.ee-home .ee-section__heading h2,
.ee-home .ee-contact-section h2 {
  font-weight: 800;
}

.site-header-logo .ee-site-description,
.ee-eyebrow,
.ee-category-card__link,
.ee-article-card__category,
.ee-article-card__date,
.ee-contact-section__form label,
.ee-footer__contact dt {
  font-family: var(--ee-font-support);
}

.ee-home {
  color: var(--ee-color-ink);
}

.main-section--base--on,
.sub-section--base--on {
  background-color: rgba(236, 243, 238, 0.88);
}

body.home .site-body {
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: clip;
}

body.home .main-section {
  margin-bottom: 0;
}

body.home .main-section--base--on {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.single-post,
body.category {
  --vk-width-container: min(1360px, 100vw);
  --vk-width-container-body: calc(var(--vk-width-container) - 30px);
}

body.single-post .site-body-container.container,
body.category .site-body-container.container {
  width: min(1360px, calc(100% - 48px));
  max-width: 1360px;
}

.site-header-logo .ee-site-description {
  display: block;
  margin-top: 0px;
  color: var(--ee-color-accent);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1;
  white-space: normal;
}

.site-header {
  border-bottom: 1px solid rgba(192, 161, 69, 0.55);
  background: rgba(236, 243, 238, 0.94);
  box-shadow: 0 8px 24px rgba(12, 46, 40, 0.08);
}

.site-header .site-header-container.container {
  width: min(1360px, calc(100% - 48px));
  max-width: 1360px;
}

.site-header #global-nav .global-nav-list > li > a {
  position: relative;
  border-radius: 8px;
  color: var(--ee-color-primary-dark);
  transition: background-color 160ms ease, color 160ms ease;
  font-family: var(--ee-font-support);
  font-size: 1.05rem;
  font-weight: 700;
}

.site-header #global-nav .global-nav-list > li > a:hover,
.site-header #global-nav .global-nav-list > li > a:focus-visible,
.site-header #global-nav .global-nav-list > li.current-menu-item > a,
.site-header #global-nav .global-nav-list > li.current-menu-ancestor > a {
  color: var(--ee-color-primary-dark);
}

.site-header #global-nav .global-nav-list > li > a:focus-visible {
  outline: 2px solid var(--ee-color-focus);
  outline-offset: 2px;
}

.ee-home__container {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.ee-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(40px, 9vw, 40px) 0 clamp(80px, 10vw, 112px);
  color: var(--ee-color-text-on-primary);
  background: linear-gradient(135deg, var(--ee-color-primary-dark), var(--ee-color-primary));
}

.ee-hero::before,
.ee-hero::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.ee-hero::before {
  top: -78%;
  right: -12%;
  width: clamp(420px, 64vw, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(192, 161, 69, 0.28), rgba(192, 161, 69, 0.08) 42%, transparent 70%),
    radial-gradient(circle at 35% 65%, rgba(236, 243, 238, 0.1), transparent 58%);
  animation: ee-hero-glow 14s ease-in-out infinite alternate;
}

.ee-hero::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 243, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 243, 238, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.34;
  mask-image: linear-gradient(90deg, transparent, #000 72%);
}

.ee-hero .ee-home__container {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1360px, calc(100% - 64px));
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.ee-hero__content {
  max-width: 720px;
}

.ee-hero__visual {
  display: grid;
  min-width: 0;
  place-items: center;
}

.ee-hero__illustration {
  display: block;
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(12, 46, 40, 0.28));
  animation: ee-hero-illustration-float 8s ease-in-out infinite;
}

.ee-hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: inherit;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.ee-eyebrow {
  margin: 0 0 12px;
  color: var(--ee-color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ee-hero .ee-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(192, 161, 69, 0.42);
  border-radius: 999px;
  color: var(--ee-color-accent);
  background: rgba(12, 46, 40, 0.42);
}

.site-header .site-header-logo a.ee-site-header-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.site-header .site-header-logo .ee-site-logo {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0;
  object-fit: contain;
}

.site-header-logo .ee-site-title {
  display: block;
  color: var(--ee-color-primary-dark);
  font-family: var(--ee-font-display);
  font-weight: 700;
}

#vk-mobile-nav-menu-btn {
  right: 5px;
  left: auto;
}

.ee-hero__copy {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--ee-color-overlay-light);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
}

.ee-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.ee-button--primary {
  color: var(--ee-color-primary-dark);
  background: var(--ee-color-accent);
}

.ee-button--primary:hover,
.ee-button--primary:focus-visible {
  color: var(--ee-color-primary-dark);
  background: var(--ee-color-surface);
  transform: translateY(-1px);
}

.ee-hero .ee-button--primary::after {
  margin-left: 10px;
  content: "→";
  transition: transform 160ms ease;
}

.ee-hero .ee-button--primary:hover::after,
.ee-hero .ee-button--primary:focus-visible::after {
  transform: translateX(3px);
}

@keyframes ee-hero-glow {
  from {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translate3d(-10%, 12%, 0) scale(1.14);
  }
}

@keyframes ee-page-background {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@keyframes ee-hero-illustration-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .ee-hero::before {
    animation: none;
  }

  .ee-hero__illustration {
    animation: none;
  }

  .ee-hero .ee-button--primary::after {
    transition: none;
  }

  .ee-category-card,
  .ee-article-card {
    transition: none;
  }
}

.ee-section {
  padding: clamp(48px, 7vw, 84px) 0;
}

.ee-home > .ee-section,
.ee-home > .ee-contact-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.ee-home > .ee-section > .ee-home__container,
.ee-home > .ee-contact-section > .ee-home__container {
  width: min(1360px, calc(100% - 64px));
}

.ee-home > .ee-section#ee-categorias {
  background-color: var(--ee-color-surface-raised);
}

.ee-home > .ee-section--muted {
  background: #e2ece4;
}

.ee-home > .ee-section:not(#ee-categorias):not(.ee-section--muted) {
  background: #f3f0e5;
}

.ee-section__heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.ee-section__heading h2,
.ee-contact-section h2 {
  margin: 0 0 12px;
  color: var(--ee-color-primary-dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.ee-section__heading > p:last-child {
  margin: 0;
  color: var(--ee-color-muted);
  line-height: 1.7;
}

.ee-empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(40, 97, 45, 0.38);
  border-radius: 16px;
  background: var(--ee-color-surface-raised);
  color: var(--ee-color-muted);
  line-height: 1.7;
  text-align: center;
}

.ee-category-grid,
.ee-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ee-category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(40, 97, 45, 0.2);
  border-radius: 16px;
  background: var(--ee-color-surface-raised);
  box-shadow: 0 8px 22px rgba(12, 46, 40, 0.09);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ee-category-card:hover,
.ee-category-card:focus-visible {
  border-color: var(--ee-color-accent-dark);
  box-shadow: 0 14px 30px rgba(12, 46, 40, 0.15);
  color: inherit;
  transform: translateY(-2px);
}

.ee-category-card__title {
  margin-bottom: 10px;
  color: var(--ee-color-primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.ee-category-card__description {
  color: var(--ee-color-muted);
  line-height: 1.6;
}

.ee-category-card__link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ee-color-accent-dark);
  font-weight: 700;
}

.ee-article-card {
  overflow: hidden;
  border: 1px solid rgba(40, 97, 45, 0.2);
  border-radius: 16px;
  background: var(--ee-color-surface-raised);
  box-shadow: 0 8px 22px rgba(12, 46, 40, 0.09);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ee-article-card:hover,
.ee-article-card:focus-within {
  border-color: rgba(141, 94, 28, 0.55);
  box-shadow: 0 14px 30px rgba(12, 46, 40, 0.15);
  transform: translateY(-2px);
}

.ee-article-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ee-color-surface);
}

.ee-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk_post_imgOuter .vk_post_imgOuter_singleTermLabel {
  background-color: var(--ee-color-primary) !important;
  color: var(--ee-color-text-on-primary) !important;
}

.vk_post .vk_post_title_new {
  color: var(--ee-color-accent);  
}

.entry-meta-data-list--category dt {
  background-color: var(--ee-color-primary);
  color: var(--ee-color-text-on-primary);
}

.ee-single-post__featured-image {
  margin: 0 0 32px;
}

.ee-single-post__featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ee-article-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--ee-color-primary-dark);
  font-weight: 700;
}

.ee-article-card__content {
  padding: 20px;
}

.ee-article-card__category,
.ee-article-card__date {
  color: var(--ee-color-muted);
  font-size: 0.85rem;
}

.ee-article-card__category {
  margin: 0 0 8px;
  color: var(--ee-color-accent-dark);
  font-weight: 700;
}

.ee-article-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.ee-article-card h3 a {
  color: var(--ee-color-primary-dark);
  text-decoration: none;
}

.ee-article-card h3 a:hover,
.ee-article-card h3 a:focus-visible {
  color: var(--ee-color-accent-dark);
  text-decoration: underline;
}

.ee-article-card__excerpt {
  margin: 0 0 14px;
  color: var(--ee-color-muted);
  line-height: 1.6;
}

.ee-contact-section {
  padding: clamp(48px, 7vw, 84px) 0;
  background: #e2ece4;
}

.ee-contact-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.ee-contact-section__intro > p:last-child {
  color: var(--ee-color-muted);
  line-height: 1.75;
}

.ee-contact-section__form #ee-contacto-footer {
  box-sizing: border-box;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(40, 97, 45, 0.32);
  border-radius: 16px;
  background: var(--ee-color-surface-raised);
  box-shadow: 0 10px 28px rgba(12, 46, 40, 0.1);
}

.ee-contact-section__form #ee-contacto-footer form p {
  margin: 0 0 16px;
}

.ee-contact-section__form #ee-contacto-footer form p[hidden] {
  display: none;
}

.ee-contact-section__form #ee-contacto-footer label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.ee-contact-section__form #ee-contacto-footer input:not([type="hidden"]),
.ee-contact-section__form #ee-contacto-footer textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--ee-color-border-strong);
  border-radius: 10px;
  background: var(--ee-color-surface);
  font: inherit;
}

.ee-contact-section__form #ee-contacto-footer textarea {
  min-height: 120px;
  resize: vertical;
}

.ee-contact-section__form #ee-contacto-footer input:focus-visible,
.ee-contact-section__form #ee-contacto-footer textarea:focus-visible {
  outline: 3px solid var(--ee-color-focus);
  border-color: var(--ee-color-primary);
}

.ee-contact-section__form #ee-contacto-footer button {
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ee-color-primary);
  color: var(--ee-color-text-on-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ee-contact-section__form #ee-contacto-footer button:hover,
.ee-contact-section__form #ee-contacto-footer button:focus-visible {
  background: var(--ee-color-primary-dark);
}

.ee-footer {
  padding-top: 48px;
  color: var(--ee-color-surface);
  background: var(--ee-color-primary-dark);
}

.ee-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr) minmax(190px, 0.8fr);
  gap: 36px;
  padding-bottom: 0px;
}

.ee-footer__name {
  margin: 0 0 12px;
  color: var(--ee-color-surface);
  font-size: 1.35rem;
  font-weight: 700;
}

.ee-footer__brand > p:not(.ee-footer__name) {
  max-width: 620px;
  color: var(--ee-color-surface);
  line-height: 1.7;
}

.ee-footer a {
  color: var(--ee-color-accent);
  text-underline-offset: 0.2em;
}

.ee-footer__contact h2,
.ee-footer__nav h2 {
  margin: 0 0 16px;
  color: var(--ee-color-surface);
  font-size: 1.1rem;
}

.ee-footer__contact dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.ee-footer__contact dl > div {
  display: grid;
  gap: 3px;
}

.ee-footer__contact dt {
  color: var(--ee-color-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.ee-footer__contact h3 {
  margin: 20px 0 0;
  color: var(--ee-color-surface);
  font-size: 1rem;
}

.ee-footer__contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ee-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0px;
  padding: 0;
  list-style: none;
}

.ee-footer__social a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ee-color-accent);
  font-size: 1.5rem;
}

.ee-footer a:hover,
.ee-footer a:focus-visible {
  color: var(--ee-color-surface);
}

.ee-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ee-footer__copyright {
  padding: 16px 0;
  border-top: 1px solid var(--ee-color-footer-divider);
  color: var(--ee-color-surface);
  font-size: 0.9rem;
}

.ee-footer__copyright p {
  margin: 0;
}

@media (max-width: 900px) {
  .ee-hero .ee-home__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ee-hero__content {
    max-width: 760px;
  }

  .ee-hero__illustration {
    width: min(100%, 400px);
  }

  .ee-category-grid,
  .ee-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ee-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ee-footer__brand {
    grid-column: 1 / -1;
  }

  .ee-contact-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ee-home__container {
    width: min(100% - 32px, 1120px);
  }

  .site-header .site-header-container.container {
    width: calc(100% - 32px);
  }

  .ee-home > .ee-section > .ee-home__container,
  .ee-home > .ee-contact-section > .ee-home__container {
    width: calc(100% - 32px);
  }

  .ee-hero .ee-home__container {
    width: min(100% - 32px, 1360px);
  }

  .ee-hero__illustration {
    width: min(100%, 320px);
  }

  .ee-category-grid,
  .ee-article-grid,
  .ee-footer__grid {
    grid-template-columns: 1fr;
  }

  .ee-footer__grid {
    gap: 28px;
  }

  .ee-footer__nav ul {
    grid-template-columns: 1fr 1fr;
  }
}