@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --bg-silence: #fbfaf6;
  --bg-card: #ffffff;
  --text-primary: #26342b;
  --text-muted: #68736b;
  --border-light: #e5e6df;
  --border-focus: #536c55;
  --accent-sage: #50684f;
  --accent-sage-light: #e9eee5;
  --accent-terracotta: #a46d4f;
  --accent-gold: #c5a15c;
  --color-invierno: #536a75;
  --color-primavera: #628368;
  --color-verano: #c59b4c;
  --color-largo-verano: #ac7958;
  --color-otono: #9b6250;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-premium: 0 8px 24px rgba(38, 52, 43, 0.07);
  --shadow-hover: 0 14px 32px rgba(38, 52, 43, 0.12);
  --transition-smooth: all 0.35s ease;
  --transition-fast: all 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-silence);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
}

.announcement-bar {
  background: #35483b;
  color: #f8f7f1;
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  padding: 0.32rem 1rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 3px 14px rgba(38, 52, 43, 0.035);
  padding: 0;
}

.site-header.scrolled { padding: 0; }

.nav-container {
  min-height: 82px;
  padding: 0.8rem 0;
  gap: 2rem;
}

.site-header.scrolled .nav-container { padding: 0.65rem 0; }

.logo-link { flex-shrink: 0; }
.logo-title { font-size: 1.55rem; color: #35483b; letter-spacing: -0.035em; }
.logo-sub { color: var(--accent-terracotta); font-size: 0.62rem; letter-spacing: 0.22em; }

.nav-menu {
  align-items: center;
  gap: clamp(0.75rem, 1.35vw, 1.35rem);
}

.nav-link {
  color: #45534a;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.nav-link::after { height: 1px; background: var(--accent-terracotta); }
.nav-link:hover, .nav-link.active { color: var(--accent-terracotta); }

.mobile-menu-btn { color: var(--text-primary); }
.mobile-menu-btn span { background: #35483b; }

.mobile-drawer {
  width: min(86%, 390px);
  background: #fff;
  box-shadow: -12px 0 35px rgba(25, 35, 29, 0.12);
}

.mobile-drawer-link { color: #35483b; font-size: 1.2rem; }
.mobile-drawer-link:hover, .mobile-drawer-link.active { color: var(--accent-terracotta); }
.menu-backdrop { background: rgba(26, 37, 30, 0.34); }

.page-section { transition: opacity 0.35s ease, transform 0.35s ease; }
.container { max-width: 1160px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

h1, h2, h3, h4 {
  color: #35483b;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.12; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; }
h3 { line-height: 1.32; }
p { color: #4f5c53; font-weight: 400; }
p.lead { font-family: var(--font-serif); font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #606b63; }

.subtitle {
  color: var(--accent-terracotta);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-banner-container {
  min-height: min(690px, 78vh);
  padding: 0;
  background: #35483b;
}

.hero-banner-image-wrapper { z-index: 0; }
.hero-banner-img { object-position: center 56%; }
.hero-banner-overlay {
  background: linear-gradient(90deg, rgba(23, 38, 29, 0.73) 0%, rgba(23, 38, 29, 0.48) 54%, rgba(23, 38, 29, 0.14) 100%);
}

.hero-banner-content-wrapper {
  justify-content: flex-start;
  min-height: inherit;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-glass-card {
  max-width: 770px;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
  color: #fff;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.hero-glass-card:hover {
  transform: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.hero-glass-card .subtitle { color: #e4c990; }
.hero-glass-card h1 { max-width: 740px; color: #fff; margin: 0 0 1.25rem; }
.hero-glass-card .hero-phrase-box { margin: 1.3rem 0 !important; padding: 0.8rem 0; border-color: rgba(255,255,255,0.35) !important; }
.hero-glass-card .hero-phrase { color: #f3e8d2; text-align: left; }
.hero-glass-card .lead { max-width: 650px !important; margin: 0 0 1.8rem !important; color: rgba(255,255,255,0.92) !important; text-align: left !important; }
.hero-buttons { justify-content: flex-start; margin-top: 1.5rem; }

.btn {
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.btn-primary { background: #536b53; border-color: #536b53; box-shadow: none; }
.btn-primary:hover { background: #405740; box-shadow: none; }
.hero-glass-card .btn-primary { background: #f5f1e7; border-color: #f5f1e7; color: #35483b; }
.hero-glass-card .btn-primary:hover { background: #e8ddc8; border-color: #e8ddc8; }
.hero-glass-card .btn-secondary { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.8) !important; color: white; }
.hero-glass-card .btn-secondary:hover { background: white !important; color: #35483b; }
.btn-secondary { color: #35483b; border-color: #829083; }
.btn-secondary:hover { background: #35483b; color: white; }
.btn-link { color: var(--accent-terracotta); font-size: 0.84rem; cursor: pointer; }

.home-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 1rem;
  text-align: center;
}

.home-intro h2 { margin: 0.15rem 0 0.8rem; }
.home-intro p { max-width: 660px; margin: 0 auto; color: var(--text-muted); font-size: 1.08rem; }
.home-blocks { margin-top: 0; padding-top: 2.5rem !important; }

.home-card, .workspace-tier, .resource-card, .contact-info-panel, .contact-form-card, .calendar-box {
  background: #fff;
  border: 1px solid #e6e7e1;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(38, 52, 43, 0.045);
}

.home-card { min-height: 305px; padding: 1.8rem; transition: var(--transition-smooth); }
.home-card:hover, .workspace-tier:hover, .resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cad3c7; }
.home-card-icon { width: 46px; height: 46px; background: #edf1e9; color: var(--accent-sage); }
.home-card h3 { font-size: 1.35rem; }
.home-card p { color: var(--text-muted); font-size: 0.94rem; }

.page-section:not(#home) .container > div:first-child[style*="text-align: center"] {
  max-width: 760px !important;
  margin-bottom: 3rem !important;
}

.threshold-box {
  background: #f1f3ee;
  border-radius: 3px;
  border-left: 3px solid var(--accent-terracotta);
}

.threshold-title { color: #35483b; }
.concept-item { border-color: var(--border-light); }
.concept-item h3 { color: var(--accent-sage); }

.mandala-container { max-width: 420px; }
.mandala-svg { filter: none; transform: none; }
.mandala-segment { stroke: #fbfaf6; stroke-width: 3; }
.mandala-segment:hover { filter: brightness(0.97); }
.season-display-card { border-radius: 4px; box-shadow: var(--shadow-premium); }
.season-poetic-phrase { color: #67736a; }
.seasons-nav-item { border-radius: 3px; }

.workspace-tier { min-height: 380px; padding: 2rem; transition: var(--transition-smooth); }
.workspace-tier h3 { font-size: 1.45rem; }
.workspace-tier-badge { background: #edf1e9; color: #50684f; }
.workspace-tier ul li { color: var(--text-muted); }
.calendar-box { margin-top: 3rem; }
.calendar-header { border-color: var(--border-light); }
.filter-btn { border-radius: 3px; }
.filter-btn.active, .filter-btn:hover { background: #536b53; border-color: #536b53; }
.calendar-item { border-color: var(--border-light); }
.date-day { color: var(--accent-terracotta); }

.biography-quote { color: var(--accent-sage); border-color: #80927e; }
.narrative-text p { text-align: left; }
.portrait-image { border-radius: 4px; }
.portrait-overlay-card { border-radius: 3px; }

.resources-tabs { border-color: var(--border-light); }
.tab-btn { color: var(--text-muted); }
.tab-btn.active { color: var(--accent-terracotta); }
.tab-btn::after { background: var(--accent-terracotta); }
.resource-card { min-height: 360px; transition: var(--transition-smooth); }
.resource-card-media { height: 165px; }
.resource-card h3 { color: #35483b; }
.modal-overlay { z-index: 200; }
.modal-content-box { border-radius: 4px; }

.contact-info-panel, .contact-form-card { box-shadow: var(--shadow-premium); }
.form-input { background: #fbfaf6; border-radius: 3px; }
.form-input:focus { border-color: var(--accent-sage); }
.form-feedback.success { background: #edf3eb; color: #405b43; border-color: #d2e0ce; }

.site-footer { background: #f1f2ed; border-top-color: #e1e4dc; }
.footer-nav-link:hover { color: var(--accent-terracotta); }
.social-link { color: #536b53; }

:focus-visible {
  outline: 3px solid #b78758;
  outline-offset: 3px;
}

@media (max-width: 1099px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (min-width: 1100px) {
  .nav-menu { display: flex; }
  .mobile-menu-btn { display: none; }
}

@media (max-width: 767px) {
  .announcement-bar { font-size: 0.67rem; }
  .nav-container { min-height: 70px; }
  .hero-banner-container { min-height: 720px; min-height: 82svh; }
  .hero-banner-img { object-position: 53% center; }
  .hero-banner-overlay { background: linear-gradient(90deg, rgba(23,38,29,0.76), rgba(23,38,29,0.48)); }
  .hero-banner-content-wrapper { align-items: flex-end; padding-top: 5rem; padding-bottom: 3rem; }
  .hero-glass-card { padding: 1rem 0; }
  .hero-glass-card h1 { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero-glass-card .lead { font-size: 1rem !important; }
  .hero-buttons { flex-wrap: wrap; justify-content: flex-start !important; }
  .hero-buttons .btn { min-width: 150px; }
  .home-intro { padding: 3.5rem 1.25rem 0.5rem; }
  .home-blocks { padding-top: 2rem !important; }
  .home-card { min-height: 0; }
  .workspace-tier { min-height: 0; }
  .calendar-box { padding: 1.25rem; }
  .calendar-filters { width: 100%; }
  .calendar-item { padding: 1rem 0; }
  .portrait-overlay-card { bottom: -20px; }
}

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