/* ============================================================
   HOME-NEW.CSS — IA Opportunity System
   Estilo: marca editorial confiable, no landing page
   ============================================================ */

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #FFFFFF;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E5E5E5;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
  transition: color 150ms ease;
}

.nav-links a:hover { color: #111111; }

.btn-nav {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #111111;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* === HERO === */
.hero {
  padding: 96px 0 80px;
  background: #FFFFFF;
  background-image:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  border-bottom: 1px solid #F0F0F0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* BLUR-IN — hero title */
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #111111;
  margin-bottom: 20px;
  animation: hero-arrive 950ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.hero-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #525252;
  margin-bottom: 32px;
  max-width: 520px;
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 450ms both;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #111111;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-primary:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.btn-primary.btn-large {
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #525252;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #E5E5E5;
  transition: border-color 150ms ease, color 150ms ease;
}

.btn-secondary:hover {
  border-color: #A3A3A3;
  color: #111111;
}

/* === HERO STATS === */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-left: 3px solid #2563EB;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateX(2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: #737373;
  line-height: 1.4;
}

/* === TRUST BAR === */
.trust-bar {
  background: #F8F8F8;
  border-bottom: 1px solid #E5E5E5;
  padding: 14px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #404040;
}

.trust-divider {
  color: #D4D4D4;
  font-size: 1rem;
}

/* === SECTIONS COMMON === */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #111111;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: #525252;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
}

/* === FEATURED ARTICLE === */
.section-featured {
  padding: 80px 0;
  border-bottom: 1px solid #F0F0F0;
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-top: 3px solid #2563EB;
  border-radius: 12px;
  padding: 40px;
  margin-top: 32px;
  transition: box-shadow 200ms ease;
}

.featured-article:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.featured-article-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #111111;
  margin-bottom: 12px;
}

.featured-article-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #525252;
  margin-bottom: 16px;
}

.featured-article-meta {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: #A3A3A3;
  margin-bottom: 24px;
}

.btn-article {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111111;
  transition: gap 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-article:hover { gap: 8px; }

.featured-article-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visual-metric {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual-metric-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.02em;
}

.visual-metric-label {
  font-size: 0.8125rem;
  color: #737373;
  line-height: 1.4;
}

/* === NOTICIAS === */
.section-noticias {
  padding: 80px 0;
  border-bottom: 1px solid #F0F0F0;
  background: #FFFFFF;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.noticia-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.noticia-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.noticia-card--highlight {
  background: #F0F5FF;
  border-color: #BFDBFE;
  grid-column: span 2;
}

.noticia-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.noticia-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #111111;
}

.noticia-card--highlight .noticia-title {
  font-size: 1.0625rem;
}

.noticia-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #525252;
  flex: 1;
}

.noticia-date {
  font-size: 0.75rem;
  color: #A3A3A3;
  font-weight: 500;
}

.noticias-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #F0F0F0;
}

.noticias-context {
  font-size: 0.9375rem;
  color: #525252;
}

.noticias-context a {
  color: #2563EB;
  font-weight: 600;
  transition: opacity 150ms ease;
}

.noticias-context a:hover { opacity: 0.75; }

/* === RECURSOS === *//
.section-recursos {
  padding: 80px 0;
  border-bottom: 1px solid #F0F0F0;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recurso-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.recurso-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #D4D4D4;
}

.recurso-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recurso-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #111111;
}

.recurso-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #737373;
  flex: 1;
}

.recurso-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563EB;
  transition: gap 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.recurso-link:hover { gap: 8px; }

/* === SOBRE === */
.section-sobre {
  padding: 80px 0;
  background: #FAFAFA;
  border-bottom: 1px solid #F0F0F0;
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sobre-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: #111111;
  margin-bottom: 20px;
}

.sobre-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #525252;
  margin-bottom: 16px;
}

.sobre-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  font-size: 0.5rem;
  color: #2563EB;
  margin-top: 6px;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #737373;
}

/* === CTA FINAL === */
.section-cta {
  padding: 80px 0;
  background: #111111;
}

.cta-inner {
  max-width: 560px;
}

.cta-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}

.section-cta .btn-primary {
  background: #FFFFFF;
  color: #111111;
}

.section-cta .btn-primary:hover {
  background: #F5F5F5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid #E5E5E5;
  padding: 40px 0;
  background: #FAFAFA;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E5E5;
}

.footer-logo {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111111;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #737373;
  transition: color 150ms ease;
}

.footer-nav a:hover { color: #111111; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #A3A3A3;
  line-height: 1.6;
  max-width: 680px;
}

.footer-copy {
  font-size: 0.75rem;
  color: #C4C4C4;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 140px; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-visual { display: none; }
  .sobre-inner { grid-template-columns: 1fr; gap: 40px; }
  .noticias-grid { grid-template-columns: repeat(2, 1fr); }
  .noticia-card--highlight { grid-column: span 2; }
}

/* ============================================================
   MOBILE FIRST — diseñado para Facebook Ads (80%+ móvil)
   ============================================================ */
@media (max-width: 768px) {

  /* NAV */
  .nav-links { display: none; }
  .nav-inner { height: 56px; }

  /* HERO — más compacto, CTA prominente */
  .hero {
    padding: 40px 0 36px;
    background-image: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(37,99,235,0.08) 0%, transparent 70%);
  }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .eyebrow { font-size: 0.6875rem; }
  .hero-title {
    font-size: clamp(1.625rem, 7.5vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero-text { font-size: 0.9375rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary {
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .hero-actions .btn-secondary {
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
  }

  /* STATS — horizontal scroll en móvil */
  .hero-stats {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-stats::-webkit-scrollbar { display: none; }
  .stat-card {
    min-width: 140px;
    flex-shrink: 0;
    padding: 16px 18px;
  }
  .stat-number { font-size: 1.5rem; }

  /* TRUST BAR */
  .trust-bar { padding: 10px 0; }
  .trust-inner { gap: 6px; justify-content: center; flex-wrap: wrap; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.75rem; }

  /* FEATURED ARTICLE */
  .section-featured { padding: 40px 0; }
  .featured-article {
    padding: 20px;
    gap: 20px;
    border-radius: 10px;
    margin-top: 20px;
  }
  .featured-article-visual { display: none; }
  .featured-article-title { font-size: 1.125rem; }
  .featured-article-excerpt { font-size: 0.875rem; }

  /* CTA dentro del featured — más visible */
  .btn-article {
    display: inline-flex;
    background: #111111;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 4px;
  }
  .btn-article:hover { gap: 4px; background: #000; }

  /* NOTICIAS */
  .section-noticias { padding: 40px 0; }
  .noticias-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .noticia-card--highlight { grid-column: span 1; }
  .noticia-card { padding: 18px; border-radius: 10px; }
  .noticia-card--highlight { background: #EFF6FF; border-color: #BFDBFE; }
  .noticia-title { font-size: 0.9375rem; }
  .noticia-text { font-size: 0.8125rem; }

  /* RECURSOS */
  .section-recursos { padding: 40px 0; }
  .recursos-grid { grid-template-columns: 1fr; gap: 10px; }
  .recurso-card { padding: 20px; border-radius: 10px; }
  /* Añadir borde izquierdo de color para diferenciación visual */
  .recurso-card:nth-child(1) { border-left: 3px solid #2563EB; }
  .recurso-card:nth-child(2) { border-left: 3px solid #7C3AED; }
  .recurso-card:nth-child(3) { border-left: 3px solid #059669; }

  /* SOBRE */
  .section-sobre { padding: 40px 0; }
  .sobre-inner { grid-template-columns: 1fr; gap: 28px; }
  .sobre-title { font-size: 1.25rem; }
  .value-item { gap: 12px; }

  /* CTA FINAL */
  .section-cta { padding: 48px 0; }
  .cta-title { font-size: 1.5rem; }
  .section-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* FOOTER */
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 32px 0 28px; }
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.25rem; }
  .featured-article { padding: 16px; }
  .noticia-card { padding: 14px; }
  .recurso-card { padding: 16px; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
