/**
 * Libertad Austral — Global Styles
 * Estilos adicionales para el tema (theme.json maneja lo principal)
 */

:root {
  --la-purple-dark: #1A0F2E;
  --la-purple-medium: #2A1847;
  --la-gold: #C8A24D;
  --la-white-bone: #F2F2F2;
  --la-red: #8A0D0D;
  --la-ink: #19171D;
  --la-muted: #6F6975;
}

/* Ajustes de accesibilidad */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--la-gold);
  outline-offset: 2px;
}

/* Buttons accesibles */
button,
.wp-block-button__link {
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

button:hover,
.wp-block-button__link:hover {
  opacity: 0.9;
}

/* Notices de demostración */
.demo-notice {
  background-color: var(--la-white-bone);
  border: 1px solid var(--la-red);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.demo-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--la-red);
}

/* Mejoras de tipografía */
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #efeae1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.wp-site-blocks {
  background: #f4f1eb;
}

.la-header-row {
  align-items: center;
  min-height: 56px;
}

.la-header-row .wp-block-site-title {
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.la-header-row .wp-block-site-title a {
  color: var(--la-white-bone);
  text-decoration: none;
}

.la-header-row .wp-block-navigation a {
  color: var(--la-white-bone);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.la-header-row .wp-block-navigation a:hover {
  opacity: 0.85;
}

.la-header-row .wp-block-navigation__responsive-container-open {
  align-items: center;
  background: transparent;
  border: 1px solid var(--la-gold);
  color: var(--la-white-bone);
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.la-header-row .wp-block-navigation__responsive-container-open::before {
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  content: '';
  height: 2px;
  width: 20px;
}

.la-header-row .wp-block-navigation__responsive-container-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--la-gold);
  color: var(--la-white-bone);
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.la-header-row .wp-block-navigation__responsive-container-close::before,
.la-header-row .wp-block-navigation__responsive-container-close::after {
  background: currentColor;
  content: '';
  height: 2px;
  position: absolute;
  width: 20px;
}

.la-header-row .wp-block-navigation__responsive-container-close::before {
  transform: rotate(45deg);
}

.la-header-row .wp-block-navigation__responsive-container-close::after {
  transform: rotate(-45deg);
}

.la-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 4px solid var(--la-gold);
  background:
    linear-gradient(180deg, rgba(18, 12, 24, 0.26) 0%, rgba(18, 12, 24, 0.3) 100%),
    linear-gradient(120deg, rgba(12, 9, 19, 0.88) 0%, rgba(22, 17, 31, 0.74) 35%, rgba(52, 32, 51, 0.68) 100%);
  padding: clamp(4rem, 10vw, 9rem) 1.25rem clamp(4.5rem, 12vw, 10rem);
}

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

.la-hero::before {
  height: 54%;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(223, 190, 142, 0.06), rgba(23, 17, 29, 0.62)),
    linear-gradient(180deg, rgba(131, 94, 76, 0.38) 0%, rgba(21, 17, 29, 0.12) 65%);
  clip-path: polygon(0% 72%, 12% 58%, 23% 65%, 34% 42%, 50% 58%, 59% 46%, 70% 62%, 82% 38%, 100% 68%, 100% 100%, 0% 100%);
}

.la-hero::after {
  height: 34%;
  bottom: 0;
  background: linear-gradient(180deg, rgba(41, 36, 47, 0.18), rgba(18, 12, 24, 0.56));
  clip-path: polygon(0% 100%, 0% 76%, 12% 62%, 24% 76%, 38% 54%, 52% 72%, 69% 44%, 82% 60%, 100% 48%, 100% 100%);
}

.la-hero > .wp-block-group {
  width: min(100%, 1320px);
  position: relative;
  z-index: 1;
}

.la-kicker {
  color: var(--la-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.la-hero-title {
  color: var(--la-white-bone);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  margin: 0;
  max-width: 10ch;
  text-shadow: 0 6px 22px rgba(8, 6, 11, 0.45);
}

.la-hero-lede {
  color: var(--la-white-bone);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 2rem 0 0;
  max-width: 34rem;
  text-shadow: 0 4px 14px rgba(8, 6, 11, 0.32);
}

.la-home-content {
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
  background: linear-gradient(180deg, rgba(242, 242, 242, 0.98), rgba(242, 242, 242, 1));
}

.la-home-content > * {
  width: min(100%, 880px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.la-home-content .demo-notice {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.la-section-title {
  border-bottom: 2px solid var(--la-gold);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}

.la-post-feed .wp-block-post-template {
  gap: 0;
}

.la-post-card {
  border: 1px solid rgba(26, 15, 46, 0.08);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 1.5rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(26, 15, 46, 0.04);
}

.la-post-card:first-child {
  border-top: 1px solid rgba(26, 15, 46, 0.12);
}

.la-post-date {
  color: var(--la-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.la-post-title {
  margin: 0.5rem 0;
}

.la-post-title a {
  color: var(--la-purple-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.la-post-excerpt {
  margin-bottom: 0;
}

.la-footer-columns {
  gap: 2rem;
}

.la-footer-columns ul {
  margin: 0;
  padding-left: 1.25rem;
}

.la-footer-columns a {
  color: var(--la-white-bone);
  text-underline-offset: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .la-footer-columns {
    display: block;
  }

  .la-footer-columns > .wp-block-column {
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .wp-block-navigation {
    display: none;
  }
}
