/* ============================================================
   KORE-I · Landing pública (carrusel horizontal)
   Versión 2.0 · 5 de mayo de 2026
   ------------------------------------------------------------
   8 slides horizontales, una pantalla cada una.
   Navegación: flechas (hover), arrastre, teclado, dots.
   ============================================================ */

:root {
  --bg: #F5F0E8;
  --surface: #FFFFFF;
  --verde: #2D6A4F;
  --verde-oscuro: #1F4D38;
  --ladrillo: #8B4513;
  --ladrillo-claro: #A8632F;
  --border: #E0D5C5;
  --text: #1A1A1A;
  --muted: #8C7A62;
  --crema-claro: #FAF6EE;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 4rem);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --t-fast: 0.18s ease;
  --t-slide: 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 500; }
em { font-style: italic; color: var(--ladrillo); font-weight: 300; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--verde);
}
.brand span { color: var(--ladrillo); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a.nav-link {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--t-fast);
}
.header-nav a.nav-link:hover { color: var(--verde); }
.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}
.lang-switch a {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--t-fast);
}
.lang-switch a.active { color: var(--verde); font-weight: 600; }
.lang-switch a:hover { color: var(--text); }

/* ===== CARRUSEL ===== */
.carrusel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.carrusel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--t-slide);
  will-change: transform;
}
.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  padding: 5.5rem var(--gutter) 4.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.slide-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--verde);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--verde);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--verde); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ===== FLECHAS ===== */
.carrusel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--verde-oscuro);
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast), transform var(--t-fast);
  box-shadow: var(--shadow-md);
}
.carrusel:hover .carrusel-arrow:not(:disabled) { opacity: 1; }
.carrusel-arrow:hover:not(:disabled) {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
  transform: translateY(-50%) scale(1.05);
}
.carrusel-arrow:disabled {
  opacity: 0 !important;
  cursor: default;
  pointer-events: none;
}
.carrusel-arrow.prev { left: 1.5rem; }
.carrusel-arrow.next { right: 1.5rem; }

/* ===== DOTS ===== */
.carrusel-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
}
.dot:hover { opacity: 0.8; }
.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--verde);
  opacity: 1;
}
.dots-counter {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  margin-right: 0.4rem;
  font-weight: 500;
}

/* ===== SLIDE 1 · HERO ===== */
.slide-hero .slide-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.slide-hero h1 { margin-bottom: 1.25rem; }
.slide-hero .lead { margin-bottom: 2.25rem; max-width: 32em; }
.slide-hero .ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.slide-hero .image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  position: relative;
}
.slide-hero .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SLIDE 2 · PROBLEMA ===== */
.slide-problema { background: var(--crema-claro); }
.slide-problema .slide-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.slide-problema .image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 65vh;
  box-shadow: var(--shadow-md);
}
.slide-problema .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-problema .eyebrow { color: var(--ladrillo); }
.problema-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.problema-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}
.problema-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  background: var(--ladrillo);
  border-radius: 50%;
}

/* ===== SLIDE 3 · MÓDULOS ===== */
.slide-modulos .slide-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide-modulos h2 { max-width: 22ch; margin-bottom: 0.5rem; }
.slide-modulos .lead { max-width: 38em; margin-bottom: 3rem; }
.modulos-grid-h {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1180px;
}
.modulo-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: left;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}
.modulo-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modulo-pill:hover {
  transform: translateY(-4px);
  border-color: var(--verde);
  box-shadow: var(--shadow-md);
}
.modulo-pill:hover::before { transform: scaleX(1); }
.modulo-pill .codigo {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ladrillo);
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.55rem;
}
.modulo-pill h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--verde-oscuro);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.modulo-pill p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.45;
}

/* ===== SLIDES PACKS ===== */
.slide-pack { background: var(--verde-oscuro); color: #fff; }
.slide-pack.featured { background: var(--ladrillo); }
.slide-pack.premium { background: var(--text); }
.slide-pack .slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.slide-pack .eyebrow { color: rgba(255, 255, 255, 0.75); }
.slide-pack .pack-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.slide-pack h2 { color: #fff; margin-bottom: 0.4rem; font-weight: 300; }
.slide-pack h2 em { color: rgba(255, 255, 255, 0.7); }
.slide-pack .pack-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin: 0 0 2rem;
  max-width: 28em;
}
.pack-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 0.85rem;
}
.pack-features li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  padding-left: 1.75rem;
  position: relative;
}
.pack-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
}
.pack-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 65vh;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pack-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SLIDE 7 · SECTORES + POR QUÉ ===== */
.slide-sectores .slide-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.slide-sectores .head { text-align: center; max-width: 720px; margin: 0 auto; }
.sectores-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.sector-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 32vh;
  transition: transform var(--t-fast);
}
.sector-card:hover { transform: translateY(-3px); }
.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sector-card:hover img { transform: scale(1.06); }
.sector-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75));
}
.sector-label {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}
.por-que-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.por-que-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--verde-oscuro);
  margin: 0.5rem 0 0.4rem;
}
.por-que-item .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ladrillo);
  font-weight: 300;
  line-height: 1;
}
.por-que-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== SLIDE 8 · CTA FINAL ===== */
.slide-cta { background: var(--text); color: #fff; position: relative; }
.slide-cta .bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}
.slide-cta .bg-image img { width: 100%; height: 100%; object-fit: cover; }
.slide-cta .bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.95));
}
.slide-cta .slide-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}
.slide-cta h2 { color: #fff; font-weight: 300; }
.slide-cta h2 em { color: var(--ladrillo-claro); }
.slide-cta .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 520px;
}
.cta-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}
.cta-footer a:hover { color: #fff; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: var(--ladrillo); color: #fff; }
.modal h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--verde-oscuro);
}
.modal p.modal-lead {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.75rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  transition: border-color var(--t-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--verde);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}
.form-msg {
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
}
.form-msg.ok {
  display: block;
  background: rgba(45, 106, 79, 0.1);
  color: var(--verde-oscuro);
  border: 1px solid rgba(45, 106, 79, 0.3);
}
.form-msg.err {
  display: block;
  background: rgba(139, 69, 19, 0.1);
  color: var(--ladrillo);
  border: 1px solid rgba(139, 69, 19, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .slide { padding: 5rem var(--gutter) 4.5rem; }
  .slide-hero .slide-inner,
  .slide-problema .slide-inner,
  .slide-pack .slide-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .slide-hero .image-wrap,
  .slide-problema .image-wrap,
  .pack-image {
    aspect-ratio: 16 / 10;
    max-height: 28vh;
  }
  .modulos-grid-h { grid-template-columns: repeat(2, 1fr); }
  .sectores-row { grid-template-columns: repeat(2, 1fr); }
  .por-que-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .header-nav a.nav-link { display: none; }
  .lang-switch { padding-left: 0.75rem; }
  .carrusel-arrow { width: 44px; height: 44px; opacity: 1; }
  .carrusel-arrow.prev { left: 0.6rem; }
  .carrusel-arrow.next { right: 0.6rem; }
}
@media (max-width: 540px) {
  body { font-size: 15px; }
  .slide { padding: 4.5rem 1rem 4rem; }
  .slide-hero .ctas { flex-direction: column; width: 100%; }
  .slide-hero .ctas .btn { width: 100%; }
  .modulos-grid-h { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .modulo-pill { padding: 1.1rem 0.9rem 1rem; }
  .modulo-pill h4 { font-size: 0.95rem; }
  .modulo-pill p { font-size: 0.78rem; }
  .por-que-row { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; }
  .sectores-row { grid-template-columns: 1fr 1fr; }
  .pack-features li { font-size: 0.92rem; }
}
