:root {
  --orange-primary: #ff5500;
  --orange-hover: #e04b00;
  --dark-bg: #121824;
  --dark-card: #1c2433;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
}

body {
  background-color: var(--bg-light);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
}

.blog-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0 0 20px;
}

/* HERO CON IMAGEN DIFUMINADA Y ALTO COMPLETO */
.blog-hero-section {
  background-color: #0b0f17;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-container-relative {
  position: relative;
  z-index: 2;
  width: 100%;
}

.blog-hero-text-content {
  max-width: 580px; /* Mantiene el texto en el lado izquierdo */
}

.hero-tag-orange {
  color: #ff5500;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.blog-hero-text-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
}

.hero-keywords {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.5;
  letter-spacing: 1.5px;
}

/* IMAGEN ABSOLUTA Y CAPA DE DIFUMINADO */
.blog-hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.blog-hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente que difumina la imagen hacia el fondo oscuro a la izquierda */
  background: linear-gradient(to right, #0b0f17 0%, rgba(11, 15, 23, 0.3) 15%, transparent 100%);
}


/* ================= CATEGORIES BAR ================= */
.blog-categories-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 20px 10px 10px;
  justify-content: space-between;  
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}
.categories-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cat-pill {
  background: #f1f5f9;
  border: none;
  padding: 18px 16px;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--orange-primary);
  color: #ffffff;
}

/* ================= SECCIONES GENERALES ================= */
.blog-section {
  padding: 20px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #0f172a;
}

/* ================= ARTÍCULO DESTACADO ================= */
.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  padding-right:20px;
}

.featured-card-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #ffffff;
}

.badge-cat-orange {
  background: var(--orange-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.featured-main-content h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-main-content p {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 90%;
}

.featured-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-sub-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.badge-cat-text {
  color: var(--orange-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.featured-sub-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
}

.featured-sub-card .sub-card-img img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* ================= PARRILLA DE ARTÍCULOS ================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.article-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ================= BOTONES Y LINKS ================= */
.btn-orange-solid {
  background: var(--orange-primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-orange-solid:hover {
  background: var(--orange-hover);
}

.btn-orange-outline {
  border: 2px solid var(--orange-primary);
  color: var(--orange-primary);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-orange-outline:hover {
  background: var(--orange-primary);
  color: #ffffff;
}

.link-orange {
  color: var(--orange-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.link-orange:hover {
  text-decoration: underline;
}

/* CTA BANNER CON IMAGEN DIFUMINADA Y ALTO COMPLETO */
.blog-cta-banner {
  background-color: #0b0f17;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  margin-top: 50px;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.cta-container-relative {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cta-text-content {
  max-width: 660px;
}

.cta-text-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.25;
}

.cta-text-content p {
  color: #cbd5e1;
  margin-bottom: 24px;
  font-size: 1.5rem;
  line-height: 1.5;
}

/* IMAGEN ABSOLUTA Y CAPA DE DEGRADADO (IZQUIERDA A DERECHA) */
.cta-bg-image {
  position: absolute;
  top: 0;  
  right: -10px;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.cta-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cta-overlay-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0b0f17 0%, rgba(11, 15, 23, 0.65) 15%, transparent 100%);
}

/* RETÍCULA DE TARJETAS DE ICONOS */
.cta-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-self: flex-end;
  margin-right: 30px;
}

.cta-icon-item {
  background: rgba(31, 41, 55, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 12px;
  border-radius: 12px;
  text-align: center;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cta-icon-item:hover {
  transform: translateY(-4px);
  border-color: #ff5500;
}

.cta-icon-item i {
  color: #ff5500;
  font-size: 1.5rem;
}

.cta-icon-item span {
  font-size: 0.75rem;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.2;
}


/* ================= BANNER DE ARTÍCULOS ================= */
.blog-newsletter-section1 {
  padding: 20px 0;
  background-color: transparent;
}

.blog-container1 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

.newsletter-card1 {
  position: relative;
  background: #1e293b; /* Color de fondo corporativo de la tarjeta */
  border: 1px solid var(--border-card, #334155);
  border-radius: 16px;
  padding: 45px 50px;
  display: flex;
  align-items: center;
  overflow: hidden; /* Corta cualquier excedente visual de la imagen */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* CONTENEDOR DE LA IMAGEN DIFUMINADA */
.newsletter-bg-img-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.newsletter-bg-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
  /* Efecto de desvanecimiento de izquierda (transparente) a derecha (opaco) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.8) 45%, rgba(0, 0, 0, 1) 100%);
}

/* CAJA DE TEXTO E ICONO */
.newsletter-info1 {
  position: relative;
  z-index: 2; /* Se coloca por encima de la imagen para asegurar total legibilidad */
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 750px;
}

.newsletter-icon1 {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-primary);
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.newsletter-info1 h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
  line-height: 1.2;
}

.newsletter-info1 p {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.5;
}
/* Corrección para los títulos del footer en la vista de blog */
.footer-col h4 {
  color: #ffffff !important;
}

