@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* ACC Design System Tokens */
  --acc-blue: #0A2540;
  --acc-dark: #111111;
  --acc-text: #4A5568;
  --acc-divider: #E5E7EB;
  --acc-background: #FFFFFF;
  --acc-ai-accent: #C8F000;

  --bg-light: #F9FAFB;

  /* Layout */
  --max-width: 100%;
  --spacing-section: 96px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --anim-duration: 300ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--acc-background);
  color: var(--acc-text);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--acc-dark);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 24px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 24px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--acc-text);
  margin-bottom: 16px;
}

.caption {
  font-size: 14px;
  color: var(--acc-text);
}

a {
  color: var(--acc-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--acc-ai-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-align: center;
  border-radius: 0;
}

.btn-primary {
  background: var(--acc-blue);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background: #1F3A5F;
  color: #FFFFFF !important;
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--acc-blue);
  border-color: var(--acc-blue);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--acc-divider);
}

/* Container & Grid */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* 12-column grid system */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.col-12 {
  grid-column: span 12;
}

.col-11 {
  grid-column: span 11;
}

.col-10 {
  grid-column: span 10;
}

.col-9 {
  grid-column: span 9;
}

.col-8 {
  grid-column: span 8;
}

.col-7 {
  grid-column: span 7;
}

.col-6 {
  grid-column: span 6;
}

.col-5 {
  grid-column: span 5;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-2 {
  grid-column: span 2;
}

.col-1 {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .grid-container>[class*="col-"] {
    grid-column: span 12;
  }
}

/* Sections */
section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.hero-full-bleed {
  position: relative;
  width: 100vw;
  height: 90vh;
  /* Takes up most of the viewport height */
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 92px;
  /* Pushea la seccion debajo del header fijo */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.7) 40%, rgba(10, 37, 64, 0.1) 100%);
  backdrop-filter: brightness(0.6) contrast(1.1);
  -webkit-backdrop-filter: brightness(0.6) contrast(1.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--acc-background);
}

.hero-title {
  font-size: 56px;
  text-shadow: 0 2px 4px rgba(10, 37, 64, 0.3);
  color: var(--acc-background) !important;
}

.hero-title.lg {
  font-size: 64px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(10, 37, 64, 0.3);
  color: var(--acc-background);
}

.hero-subtitle.lg {
  font-size: 20px;
  line-height: 1.6;
}

.hero-content h1,
.hero-content p {
  color: var(--acc-background);
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: var(--acc-blue);
  color: var(--acc-background);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark p,
.section-bg-dark a {
  color: var(--acc-background);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--acc-divider);
  transition: padding var(--transition-normal);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.logo img {
  height: 60px;
  width: auto;
  transition: height var(--transition-normal);
}

.header.scrolled .logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--acc-text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--acc-blue);
}

.nav-links a.btn {
  padding: 0.6rem 1.2rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--acc-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Insight Cards */
.insight-card {
  background: var(--acc-background);
  border: 1px solid var(--acc-divider);
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.insight-card-category {
  font-size: 14px;
  color: var(--acc-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.insight-card-title {
  font-size: 24px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
  font-weight: 600;
}

.insight-card-title a {
  color: var(--acc-dark);
}

.insight-card-desc {
  color: var(--acc-text);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.insight-card-footer {
  font-size: 14px;
  color: var(--acc-text);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--acc-divider);
  padding-top: 16px;
}

/* Framework Box */
.framework-box-sm {
  background: var(--acc-background);
  border: 1px solid var(--acc-divider);
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.framework-box-sm h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--acc-dark);
  margin-bottom: 0;
}

.framework-arrow-sm {
  text-align: center;
  font-size: 24px;
  color: var(--acc-ai-accent);
  margin: 0 16px;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 16px;
}

.mb-2 {
  margin-bottom: 32px;
}

.mb-3 {
  margin-bottom: 48px;
}

.mb-4 {
  margin-bottom: 64px;
}

.mt-1 {
  margin-top: 16px;
}

.mt-2 {
  margin-top: 32px;
}

.mt-4 {
  margin-top: 64px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transition: opacity var(--anim-duration) ease-in-out;
}

.fade-in.active {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--anim-duration) ease-out, transform var(--anim-duration) ease-out;
}

.slide-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background: var(--acc-blue);
  color: var(--acc-background);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: var(--acc-background);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-brand p {
  color: #A0ABC0;
  font-size: 17px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
}

.footer-links-col a {
  color: var(--acc-background);
  margin-bottom: 12px;
  font-size: 17px;
}

.footer-links-col a:hover {
  color: var(--acc-ai-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #A0ABC0;
  font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
    /* Reducir padding lateral en mobile */
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-title,
  .hero-title.lg {
    font-size: 36px !important;
    line-height: 1.25;
    margin-bottom: 20px;
  }

  .hero-subtitle,
  .hero-subtitle.lg {
    font-size: 17px !important;
    line-height: 1.6;
  }

  .hero-full-bleed {
    height: auto;
    min-height: 70vh;
    padding-top: 64px;
    padding-bottom: 64px;
    margin-top: 70px;
    /* Ajuste para header mobile */
    align-items: flex-start;
    /* Evitar overflow por centrado */
  }

  .grid-container>[class*="col-"] {
    grid-column: span 12;
  }

  .framework-flow {
    flex-direction: column;
  }

  .framework-arrow-sm {
    transform: rotate(90deg);
    margin: 8px 0;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--acc-background);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: left var(--transition-normal);
  }

  .nav-links.nav-active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}