/*
Theme Name: Sekuoya Life
Theme URI: https://sekuoya.life/
Author: Sekuoya.Life
Description: Tema de portada para Sekuoya.Life, adaptado del paquete oficial de producción.
Version: 1.0.5
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: sekuoya-life
*/

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: #07110c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sekuoya-homepage {
  min-height: 100%;
  background: #07110c;
}

.sekuoya-home {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  background: #07110c;
}

.sekuoya-forest {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.sekuoya-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 9, 6, 0.10) 0%, rgba(3, 9, 6, 0.03) 42%, rgba(3, 9, 6, 0.48) 100%),
    radial-gradient(circle at 50% 43%, rgba(246, 238, 198, 0.04) 0%, rgba(5, 11, 8, 0) 34%, rgba(2, 7, 5, 0.18) 100%);
  pointer-events: none;
}

.sekuoya-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(13vh, calc(env(safe-area-inset-bottom) + 4.75rem));
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.70);
}

.sekuoya-explore {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(5vh, calc(env(safe-area-inset-bottom) + 1rem));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 9, 6, 0.42);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.sekuoya-explore:hover {
  background: rgba(3, 9, 6, 0.68);
}

.sekuoya-explore:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.sekuoya-paths {
  min-height: 100vh;
  color: #163024;
  color-scheme: light;
  background:
    radial-gradient(circle at 100% 0%, rgba(92, 121, 93, 0.14), transparent 34rem),
    #f5f1e8;
}

.sekuoya-paths a[href^="/es-co/"] {
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(7, 17, 12, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.sekuoya-paths a[href^="/es-co/"]:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 17, 12, 0.12);
}

.sekuoya-paths a[href^="/es-co/"]:focus-visible {
  outline: 3px solid #27573d;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .sekuoya-forest {
    object-position: 50% 50%;
  }

  .sekuoya-title {
    bottom: max(14vh, calc(env(safe-area-inset-bottom) + 4.75rem));
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .sekuoya-explore {
    bottom: max(5vh, calc(env(safe-area-inset-bottom) + 0.75rem));
    width: max-content;
    max-width: calc(100% - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Páginas internas. La portada conserva intacto su lienzo de pantalla completa. */
body.page:not(.home) {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  color: #262124;
  color-scheme: light;
  background: #f7f3f0;
}

.sekuoya-page {
  min-height: 100vh;
  padding: clamp(4.75rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(138, 61, 93, 0.09), transparent 30rem),
    #f7f3f0;
}

.sekuoya-page__article {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.sekuoya-page__header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid #cfc1c7;
}

.sekuoya-page__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: #6f2e49;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sekuoya-page__title {
  max-width: 18ch;
  margin: 0;
  color: #241c20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.sekuoya-page__content {
  color: #342b2f;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
}

.sekuoya-page__content > :first-child {
  margin-top: 0;
}

.sekuoya-page__content h2,
.sekuoya-page__content h3,
.sekuoya-page__content h4 {
  color: #241c20;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  text-wrap: balance;
}

.sekuoya-page__content h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 500;
}

.sekuoya-page__content h3 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.sekuoya-page__content p,
.sekuoya-page__content ul,
.sekuoya-page__content ol,
.sekuoya-page__content table {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.sekuoya-page__content li + li {
  margin-top: 0.45rem;
}

.sekuoya-page__content a {
  color: #6f2e49;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.sekuoya-page__content a:hover {
  color: #8a3d5d;
}

.sekuoya-page__content a:focus-visible {
  outline: 3px solid #8a3d5d;
  outline-offset: 3px;
}

.sekuoya-page__content table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.94em;
}

.sekuoya-page__content th,
.sekuoya-page__content td {
  padding: 0.8rem 0.9rem;
  border: 1px solid #d8ccd1;
  text-align: left;
  vertical-align: top;
}

.sekuoya-page__content th {
  color: #241c20;
  background: #efe7e2;
}

@media (max-width: 700px) {
  .sekuoya-page {
    padding-top: 5.5rem;
  }

  .sekuoya-page__content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sekuoya-page__content th,
  .sekuoya-page__content td {
    min-width: 9rem;
  }
}
