/* ============================================================
   Abarrey · Cultura Corporativa — standalone styles
   Pure CSS, utility-inspired classes, no build step required.
   ============================================================ */

:root {
  /* Brand palette */
  --brand-green: #008a4b;
  --brand-green-soft: #e6f4ec;
  --brand-orange: #f9a01b;
  --brand-orange-soft: #fef2df;
  --brand-red: #e94e2a;
  --brand-red-soft: #fdeae5;

  /* Neutral system */
  --background: #ffffff;
  --foreground: #14181c;
  --card: #ffffff;
  --muted-foreground: #6b7280;
  --secondary: #f6f7f5;
  --border: #ececec;

  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-sans);
}

/* ---------- Reset (scoped-friendly, no body background) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.culture,
.culture * {
  margin: 0;
  padding: 0;
}

.culture {
  font-family: var(--font-sans);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
}

.culture img,
.culture svg {
  display: block;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
}

.section-alt {
  background-color: color-mix(in srgb, var(--secondary) 55%, transparent);
}

.has-top-border {
  border-top: 1px solid var(--border);
}

.section-head {
  /*max-width: 42rem;*/
  margin-bottom: 4rem;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* ---------- Typography ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--foreground);
}

.section-lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}

.font-green{
    color: var(--brand-green);
}

.font-orange{
    color: var(--brand-orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--brand-green);
  color: #ffffff;
}

.btn-primary:hover {
  transform: scale(1.03);
}

.btn-ghost {
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--secondary);
}

/* ---------- Icon badges & tones ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  transition: transform 0.3s ease;
}

.badge-lg {
  width: 3.5rem;
  height: 3.5rem;
}

.badge-md {
  width: 3rem;
  height: 3rem;
}

.icon {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-md {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-sm {
  width: 1.5rem;
  height: 1.5rem;
}

/* tone helpers drive both background + foreground color */
[data-tone="green"] {
  background-color: var(--brand-green-soft);
  color: var(--brand-green);
}

[data-tone="orange"] {
  background-color: var(--brand-orange-soft);
  color: var(--brand-orange);
}

[data-tone="red"] {
  background-color: var(--brand-red-soft);
  color: var(--brand-red);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 5rem 6rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--foreground);
}

/* strict linear gradient F9A01B -> E94E2A on "2027" */
.gradient-text {
  background-image: linear-gradient(90deg, #f9a01b 0%, #e94e2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin-top: 2.5rem;
  max-width: 48rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ---------- Cards (pillars) ---------- */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.pillar:hover .icon-badge {
  transform: scale(1.1);
}

.pillar-title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pillar-title[data-tone="green"] {
  color: var(--brand-green);
  background: none;
}

.pillar-title[data-tone="orange"] {
  color: var(--brand-orange);
  background: none;
}

.pillar-title[data-tone="red"] {
  color: var(--brand-red);
  background: none;
}

.card-text {
  margin-top: 0.75rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

/* ---------- Panels (misión / filosofía) ---------- */
.panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-3xl);
  padding: 2.5rem;
}

.panel-primary {
  background-color: var(--brand-green);
  color: #ffffff;
}

.panel-card {
  border: 1px solid var(--border);
  background-color: var(--card);
}

.badge-on-primary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.kicker-on-primary {
  color: rgba(255, 255, 255, 0.7);
}

.panel .kicker,
.panel .icon-badge {
  margin-bottom: 0;
}

.panel .icon-badge {
  margin-bottom: 2rem;
}

.panel-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.panel-title-dark {
  color: var(--foreground);
}

.panel-text {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.panel-text-on-primary {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Values grid ---------- */
.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: var(--radius-3xl);
  padding: 1.75rem;
  min-height: 11rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.value-accent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.value-card:hover .value-accent {
  transform: scaleX(1);
}

.value-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.value-card:hover .icon-badge {
  transform: scale(1.1);
}

.value-index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(107, 114, 128, 0.5);
}

.value-title {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .value-card,
  .icon-badge,
  .value-accent {
    transition: none;
  }
}

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2.5rem;
  }
  .section {
    padding-block: 8rem;
  }
  .hero {
    padding-block: 8rem 9rem;
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .panel {
    padding: 3.5rem;
  }
}