/* FIGURA EQUILIBRADA - PALETA EDITORIAL & VARIABLES */
:root {
  --bg-primary: #F4F0E7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EAE5D9;
  --bg-card: #FAF8F3;
  --color-dark: #172019;
  --color-deep-green: #315B45;
  --color-deep-green-hover: #234333;
  --color-olive: #718451;
  --color-orange: #D98245;
  --color-orange-hover: #C26F34;
  --color-yellow: #E8C86A;
  --color-muted: #8D9186;
  --border-light: #DDD7CA;
  --border-dark: #2B3D30;
  
  --font-serif: "Editorial New", "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(23, 32, 25, 0.05);
  --shadow-hover: 0 8px 30px rgba(23, 32, 25, 0.09);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--color-dark);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ACCESSIBILITY & FOCUS */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-deep-green);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

p {
  color: #2D3A30;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-muted);
}

.text-orange {
  color: var(--color-orange);
}

.text-olive {
  color: var(--color-olive);
}

.text-green {
  color: var(--color-deep-green);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.container-narrow {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* HEADER & STICKY NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(23, 32, 25, 0.03);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  background-color: rgba(244, 240, 231, 0.96);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  transition: padding 0.3s ease;
}

.site-header.scrolled .nav-inner {
  padding: 0.6rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-deep-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-deep-green);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-deep-green);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-deep-green);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-deep-green);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-deep-green-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-deep-green);
  border-color: var(--color-deep-green);
}

.btn-secondary:hover {
  background-color: rgba(49, 91, 69, 0.08);
  transform: translateY(-1px);
}

.btn-orange {
  background-color: var(--color-orange);
  color: #FFFFFF;
}

.btn-orange:hover {
  background-color: var(--color-orange-hover);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* BADGES & CHIPS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-green {
  background-color: rgba(49, 91, 69, 0.12);
  color: var(--color-deep-green);
}

.badge-olive {
  background-color: rgba(113, 132, 81, 0.15);
  color: var(--color-olive);
}

.badge-orange {
  background-color: rgba(217, 130, 69, 0.15);
  color: var(--color-orange);
}

.badge-dark {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

/* EDITORIAL 30 BADGE & MOTIF */
.motif-30 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-deep-green);
}

/* CARDS & PANELS */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #CEC7B5;
}

.card-ivory {
  background-color: var(--bg-card);
}

/* DISCLAIMER NOTICE */
.disclaimer-banner {
  background-color: var(--bg-subtle);
  border-left: 4px solid var(--color-olive);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: #424D44;
  margin: 1.5rem 0;
  line-height: 1.5;
}

/* INTERACTIVE CALENDAR GRID */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
}

.calendar-cell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.calendar-cell:hover {
  transform: translateY(-3px);
  border-color: var(--color-deep-green);
  box-shadow: var(--shadow-subtle);
}

.calendar-cell.is-selected {
  border-color: var(--color-deep-green);
  background-color: rgba(49, 91, 69, 0.05);
  box-shadow: 0 0 0 2px var(--color-deep-green);
}

.calendar-cell.is-completed {
  border-color: var(--color-olive);
  background-color: #F7FAF3;
}

.calendar-cell .cell-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-deep-green);
  line-height: 1;
}

.calendar-cell .cell-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.calendar-cell .cell-focus {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.calendar-cell .cell-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #D3CDC0;
}

.calendar-cell.is-completed .cell-status-dot {
  background-color: var(--color-olive);
}

.calendar-cell.is-in-progress .cell-status-dot {
  background-color: var(--color-orange);
}

/* PROGRESS BAR */
.progress-container {
  background-color: var(--border-light);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.progress-bar-fill {
  background-color: var(--color-deep-green);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* WATER TRACKER */
.water-tracker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.water-glass {
  width: 36px;
  height: 44px;
  border: 2px solid var(--color-deep-green);
  border-radius: 2px 2px 10px 10px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.water-glass.active {
  background-color: rgba(49, 91, 69, 0.2);
  border-color: var(--color-deep-green);
}

.water-glass.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75%;
  background-color: var(--color-deep-green);
  opacity: 0.85;
}

/* CHECKLIST ITEMS */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-muted);
  border-radius: 4px;
  display: grid;
  place-content: center;
  margin-top: 2px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.checklist-checkbox:checked {
  background-color: var(--color-deep-green);
  border-color: var(--color-deep-green);
}

.checklist-checkbox:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -1px);
}

.checklist-label {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.checklist-item.completed .checklist-label {
  color: var(--color-muted);
  text-decoration: line-through;
}

/* FOOTER */
.site-footer {
  background-color: #172019;
  color: #F4F0E7;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #F4F0E7;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  color: var(--color-yellow);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--color-yellow);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #B5BDB6;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
  padding-left: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 240, 231, 0.1);
  font-size: 0.82rem;
  color: #8D9186;
  flex-wrap: wrap;
  gap: 1rem;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-hover);
    gap: 1.2rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
