/* ===========================================
   KORÉ — Sistema de diseño
   Paleta: terracota / durazno / verde salvia / crema
   Tipografía: Fraunces (display) + DM Sans (body)
   =========================================== */

:root {
  /* Colores */
  --cream: #faf5ee;
  --cream-deep: #f3ebdc;
  --terracotta: #c75d3f;
  --terracotta-deep: #a64830;
  --peach: #f4b8a0;
  --peach-soft: #f9d9c8;
  --sage: #7a8f6f;
  --sage-deep: #4f6248;
  --sage-soft: #c3d1b7;
  --mustard: #d9a441;
  --ink: #2b2420;
  --ink-soft: #5a4f48;
  --rose: #e88b8b;
  --plum: #6b3e52;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Espaciado */
  --container: 1240px;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-xl: 80px;

  /* Sombras */
  --shadow-soft: 0 12px 40px -12px rgba(43, 36, 32, 0.18);
  --shadow-card: 0 24px 60px -20px rgba(43, 36, 32, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

/* Tipografía base */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-variation-settings: "SOFT" 50, "WONK" 1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--ink-soft); }

a { color: var(--terracotta-deep); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--terracotta); }

em, .accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

/* Contenedor */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== NAVEGACIÓN ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(43, 36, 32, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 58px; height: 58px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /*align-items: center;*/
  gap: 4px 0;
  max-width: 950px;
  padding: 10px 20px;
  list-style:none;
  position: relative;
}

.nav-links li {
  width: calc(20% - 2px);
  text-align: center;
  box-sizing: border-box;
  padding: 8px 0;
}

.nav-links::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(43,36,32,0.12);
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 100px;
  transition: all .25s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--peach-soft);
  color: var(--terracotta-deep);
}

.nav-links a.active {
  background: var(--ink);
  color: var(--cream);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: 12px 22px !important;
}

.nav-cta:hover { background: var(--terracotta-deep) !important; color: var(--cream) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(43, 36, 32, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 18px; }
  .nav-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  background: var(--sage-soft);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--sage-deep);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero h1 .underline {
  position: relative;
  display: inline-block;
}

.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 14px;
  background: var(--peach);
  z-index: -1;
  border-radius: 100px;
  transform: skewX(-6deg);
}

.hero p.lead {
  font-size: 1.18rem;
  max-width: 540px;
  margin-bottom: 36px;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
  justify-self: center;
}

.blob-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-visual svg.blob-bg { display: block; }

.hero-card {
  position: absolute;
  background: var(--cream);
  padding: 18px 22px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3;
}

.hero-card svg { flex-shrink: 0; }

.hero-card-1 {
  top: 8%;
  left: -8%;
  animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
  bottom: 12%;
  right: -6%;
  animation: float 6s ease-in-out infinite 2s;
}

.hero-card-3 {
  bottom: -2%;
  left: 8%;
  animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Decorative dots */
.dots {
  position: absolute;
  width: 80px; height: 80px;
  opacity: 0.4;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(199, 93, 63, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-sage {
  background: var(--sage-deep);
  color: var(--cream);
}
.btn-sage:hover { background: var(--sage); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--terracotta-deep);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--terracotta); gap: 14px; }

/* ===== SECCIONES ===== */
section { padding: 90px 0; position: relative; }

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 40px;
  flex-wrap: wrap;
}

.section-title .text { max-width: 640px; }

.section-title h2 { margin-bottom: 14px; }

.section-title p { font-size: 1.08rem; }

/* ===== BACHUÉ STORY ===== */
.bachue {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 60px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: calc(100% - 56px);
}

@media (max-width: 720px) {
  .bachue { padding: 60px 28px; margin: 0 16px; border-radius: var(--radius-md); }
}

.bachue h2 { color: var(--cream); }
.bachue p { color: rgba(250, 245, 238, 0.78); }
.bachue em { color: var(--peach); }

.bachue-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  .bachue-grid { grid-template-columns: 1fr; }
}

.bachue-visual {
  aspect-ratio: 1;
  max-width: 380px;
}

.bachue-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--peach);
  padding-left: 24px;
  border-left: 3px solid var(--terracotta);
  margin-top: 30px;
}

/* ===== TARJETAS DE LÍNEAS ===== */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 880px) {
  .lines-grid { grid-template-columns: 1fr; }
}

.line-card {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.line-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.line-card.peach { background: var(--peach-soft); }
.line-card.sage { background: var(--sage-soft); }
.line-card.cream { background: var(--cream-deep); }

.line-card-icon {
  width: 270px; height: 180px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.line-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.line-card h3 { margin-bottom: 12px; }

.line-card p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 0.98rem;
  flex-grow: 1;
}

.line-card .btn-ghost { margin-top: auto; }

.line-card-deco {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 140px; height: 140px;
  opacity: 0.4;
  pointer-events: none;
}

/* ===== STATS ===== */
.stats {
  background: var(--peach-soft);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  margin: 0 auto;
  width: calc(100% - 56px);
  max-width: var(--container);
}

@media (max-width: 720px) {
  .stats { padding: 50px 28px; margin: 0 16px; border-radius: var(--radius-md); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--terracotta-deep);
  line-height: 1;
  margin-bottom: 8px;
  font-variation-settings: "SOFT" 100;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

/* ===== CTA ===== */
.cta-band {
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  margin: 0 auto;
  width: calc(100% - 56px);
  max-width: var(--container);
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (max-width: 720px) {
  .cta-band { padding: 60px 28px; margin: 0 16px; border-radius: var(--radius-md); }
}

.cta-band h2 { color: var(--cream); margin-bottom: 18px; }
.cta-band p { color: rgba(250, 245, 238, 0.85); max-width: 560px; margin: 0 auto 32px; }
.cta-band em { color: var(--peach); }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 30px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--peach);
  margin-bottom: 16px;
}

footer p { color: rgba(250, 245, 238, 0.7); font-size: 0.94rem; }

footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 18px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a {
  color: rgba(250, 245, 238, 0.75);
  font-size: 0.95rem;
  transition: color .2s ease;
}
footer ul a:hover { color: var(--peach); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(250, 245, 238, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}

.social-btn:hover { background: var(--terracotta); }
.social-btn svg { fill: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(250, 245, 238, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(250, 245, 238, 0.55);
}

/* ===== PÁGINA INTERIOR — HEADER ===== */
.page-header {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  max-width: 800px;
  margin-bottom: 24px;
}

.page-header p.lead {
  font-size: 1.18rem;
  max-width: 640px;
  color: var(--ink-soft);
}

/* Curved divider */
.curve {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===== CONTENIDO RICO ===== */
.rich-content {
  max-width: 780px;
  margin: 0 auto;
}

.rich-content h2 { margin: 50px 0 20px; }
.rich-content h3 { margin: 36px 0 14px; color: var(--terracotta-deep); }
.rich-content p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.75; }
.rich-content ul { margin: 0 0 24px 0; padding-left: 24px; }
.rich-content li { margin-bottom: 10px; color: var(--ink-soft); line-height: 1.65; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--cream-deep);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid rgba(43, 36, 32, 0.06);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 50%;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step p { font-size: 0.96rem; margin-bottom: 14px; }
.step ul { padding-left: 18px; }
.step li { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 6px; }

.callout {
  background: var(--peach-soft);
  border-left: 4px solid var(--terracotta);
  padding: 22px 28px;
  border-radius: 14px;
  margin: 30px 0;
  font-weight: 500;
  color: var(--ink);
}

.callout strong { color: var(--terracotta-deep); }

/* Cards grid (proyectos / equipo) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-img {
  aspect-ratio: 4 / 3;
  background: var(--peach-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img.sage { background: var(--sage-soft); }
.card-img.cream { background: var(--cream); }
.card-img.peach { background: var(--peach); }

.card-body { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card-body p { font-size: 0.95rem; margin-bottom: 18px; flex-grow: 1; }

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--cream);
  color: var(--terracotta-deep);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* Apoyar — donation tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 820px) {
  .tier-grid { grid-template-columns: 1fr; }
}

.tier {
  background: var(--cream-deep);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  text-align: center;
  transition: all .3s ease;
  cursor: pointer;
}

.tier:hover {
  border-color: var(--terracotta);
  transform: translateY(-4px);
}

.tier.featured {
  background: var(--ink);
  color: var(--cream);
  position: relative;
}

.tier.featured h3, .tier.featured .tier-amount { color: var(--cream); }
.tier.featured p { color: rgba(250, 245, 238, 0.78); }
.tier.featured::before {
  content: "Más popular";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--mustard);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tier-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--terracotta);
  margin: 12px 0;
  font-weight: 500;
}

.tier-amount span { font-size: 1rem; color: var(--ink-soft); }
.tier.featured .tier-amount span { color: rgba(250, 245, 238, 0.6); }

.tier ul { list-style: none; padding: 0; text-align: left; margin: 24px 0; }
.tier li { padding: 6px 0 6px 28px; position: relative; font-size: 0.94rem; }
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}
.tier.featured li::before { color: var(--peach); }

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  background: var(--cream-deep);
  padding: 40px;
  border-radius: var(--radius-md);
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(43, 36, 32, 0.08);
}

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

.contact-icon {
  width: 44px; height: 44px;
  background: var(--peach-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-item p { font-size: 0.95rem; }

/* Form */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(43, 36, 32, 0.1);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* Reveal animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative SVG */
.deco-leaf {
  position: absolute;
  width: 120px;
  opacity: 0.6;
  pointer-events: none;
}

/* Print copyright */
.copyright {
  text-align: center;
  padding: 30px 0;
  background: var(--cream-deep);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(43, 36, 32, 0.06);
}

.escuela-talleres .card-img img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}