/* BLOG ARTICLE V2 - Modern B2B SaaS Design */

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --blog-negro: #2f4858;
  --blog-naranja: #f0a66c;
  --blog-naranja-light: rgba(240, 166, 108, 0.15);
  --blog-gris-fondo: #f8f9fa;
  --blog-gris-borde: #e5e7eb;
  --blog-gris-texto: #6b7280;
  --blog-verde: #00745f;
  --blog-max-width: 1200px;
  --blog-content-width: 680px;
}

/* ============================================
   HEADER STYLES FOR BLOG ARTICLES
   (Eliminates need for adsv2.css)
   ============================================ */

/* Header base - solid background for articles */
.blog-article-v2 header {
  background: var(--blog-negro);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.blog-article-v2 header.menu {
  background: var(--blog-negro);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Desktop navigation layout */
.blog-article-v2 header > #escritorio {
  width: 90%;
  max-width: 1300px;
}

.blog-article-v2 header > #escritorio > ul {
  justify-content: flex-start;
  gap: 0;
}

.blog-article-v2 header > #escritorio > ul > li {
  margin-left: 25px;
}

.blog-article-v2 header > #escritorio > ul > li:first-child {
  margin-left: 0;
}

/* Dropdown - Modern style */
.blog-article-v2 header > #escritorio > ul > aside {
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  gap: 0;
  justify-content: center;
  left: 0;
  margin-left: 0;
  max-width: none;
  padding: 20px 5%;
  top: 77px;
  width: 100vw;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.blog-article-v2 header > #escritorio > ul > aside:hover,
.blog-article-v2 header > #escritorio > ul > li:hover + aside {
  transform: scaleY(1);
  opacity: 1;
  visibility: visible;
}

/* Dropdown columns */
.blog-article-v2 header > #escritorio > ul > aside > ul {
  background: #f8f9fa;
  border-radius: 12px;
  margin: 0 8px;
  padding: 15px 20px;
  min-width: 160px;
  width: auto;
  transition: all 0.2s ease;
}

.blog-article-v2 header > #escritorio > ul > aside > ul:hover {
  background: rgba(240, 166, 108, 0.15);
}

/* Dropdown headers */
.blog-article-v2 header > #escritorio > ul > aside > ul > h4 {
  border-bottom: 2px solid currentColor;
  display: inline-block;
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 6px;
}

.blog-article-v2 header > #escritorio > ul > aside > ul:first-of-type > h4 { color: #e1857f; }
.blog-article-v2 header > #escritorio > ul > aside > ul:nth-of-type(2) > h4 { color: #25745f; }
.blog-article-v2 header > #escritorio > ul > aside > ul:nth-of-type(3) > h4 { color: #9782e6; }
.blog-article-v2 header > #escritorio > ul > aside > ul:nth-of-type(4) > h4 { color: #5ba4c9; }

/* Dropdown items */
.blog-article-v2 header > #escritorio > ul > aside > ul > li {
  margin: 8px 0;
}

.blog-article-v2 header > #escritorio > ul > aside > ul > li > a {
  color: var(--blog-negro);
  font-size: 0.85em;
  font-weight: 500;
}

.blog-article-v2 header > #escritorio > ul > aside > ul > li > a:hover {
  color: var(--blog-naranja);
}

/* Mobile header - White background */
@media screen and (max-width: 1000px) {
  .blog-article-v2 header {
    background: #fff;
  }

  .blog-article-v2 header.menu {
    background: #fff;
  }

  /* Logo color version for white background */
  .blog-article-v2 header > #logo-movil > img {
    content: url('/blog/imagenes/logo-integratec.webp');
  }

  /* Hamburger dark color */
  .blog-article-v2 header > #icono-movil > span {
    background: var(--blog-negro);
  }
}

/* ============================================
   RESET & BASE
   ============================================ */
html {
  scroll-behavior: smooth;
}

html:has(.blog-article-v2),
body.blog-article-v2 {
  overflow-x: clip;
}

.blog-article-v2 {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.blog-article-v2 *:not(header):not(header *) {
  box-sizing: border-box;
}

/* ============================================
   HERO / HEADER
   ============================================ */
.blog-hero {
  background: #fff;
  padding: 130px 0 50px;
  overflow: visible;
  display: flex;
  justify-content: center;
  width: 100%;
}

.blog-hero__inner {
  max-width: 1300px;
  width: 90%;
  display: flex;
  align-items: center;
  gap: 50px;
  overflow: visible;
}

.blog-hero__content {
  flex: 0 0 650px;
}

.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-hero__category {
  background: var(--blog-naranja);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-hero__date,
.blog-hero__reading-time {
  color: var(--blog-gris-texto);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-hero__date::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blog-gris-borde);
  border-radius: 50%;
}

.blog-hero__reading-time::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blog-gris-borde);
  border-radius: 50%;
}

.blog-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blog-negro);
  margin-bottom: 20px;
}

.blog-hero__excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--blog-gris-texto);
  margin-bottom: 30px;
}

.blog-hero__image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-right: -5%;
  min-width: 0;
}

.blog-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   AUTHOR SECTION (Hero)
   ============================================ */
.blog-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-author__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blog-naranja);
}

/* Contenedor para foto de autor Integratec (favicon) */
.blog-author__photo-wrapper--icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--blog-naranja);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}

.blog-author__photo-wrapper--icon .blog-author__photo {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  padding: 10px;
  object-fit: contain;
}

.blog-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-author__label {
  font-size: 0.7rem;
  color: var(--blog-gris-texto);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-author__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blog-negro);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0077b5;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.blog-author__linkedin:hover {
  opacity: 0.8;
}

.blog-author__linkedin img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.blog-author__title {
  font-size: 0.85rem;
  color: var(--blog-gris-texto);
}

/* ============================================
   MAIN LAYOUT (3 columns)
   ============================================ */
.blog-layout {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  padding: 50px 0;
  display: grid;
  grid-template-columns: 220px 1fr 90px;
  gap: 40px;
  align-items: start;
}

/* ============================================
   LEFT SIDEBAR - Table of Contents
   ============================================ */
.blog-toc {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  align-self: start;
  height: fit-content;
}

.blog-toc__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blog-gris-texto);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--blog-gris-borde);
}

.blog-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc__item {
  margin-bottom: 2px;
}

.blog-toc__link {
  display: block;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--blog-gris-texto);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s;
  line-height: 1.35;
}

.blog-toc__link:hover {
  color: var(--blog-negro);
  background: var(--blog-gris-fondo);
  border-left-color: var(--blog-gris-borde);
}

.blog-toc__link.active {
  color: var(--blog-naranja);
  background: var(--blog-naranja-light);
  border-left-color: var(--blog-naranja);
  font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.blog-content-v2 {
  max-width: 100%;
  min-width: 0;
}

/* Lead Magnet CTA Box */
.blog-lead-magnet {
  background: linear-gradient(135deg, var(--blog-negro) 0%, #1a3a4a 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: #fff;
}

.blog-lead-magnet__content {
  flex: 1;
}

.blog-lead-magnet__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.blog-lead-magnet__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.5;
}

.blog-lead-magnet__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blog-naranja);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-lead-magnet__btn:hover {
  background: #e09550;
  transform: translateY(-2px);
}

.blog-lead-magnet__image {
  width: 120px;
  flex-shrink: 0;
}

.blog-lead-magnet__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Content Typography */
.blog-content-v2 h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin: 50px 0 20px;
  padding-top: 20px;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.blog-content-v2 h2:first-of-type {
  margin-top: 0;
}

.blog-content-v2 h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blog-negro);
  margin: 35px 0 15px;
  line-height: 1.4;
}

.blog-content-v2 p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 20px;
}

.blog-content-v2 p span,
.blog-content-v2 p strong,
.blog-content-v2 li strong {
  font-weight: 600;
  color: var(--blog-negro);
}

.blog-content-v2 ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.blog-content-v2 ul.bullets {
  padding-left: 10px;
  margin: 15px 0 25px;
}

.blog-content-v2 ul.bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

.blog-content-v2 ul.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--blog-naranja);
  border-radius: 50%;
}

.blog-content-v2 li.bold {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin: 30px 0 12px;
  padding-left: 0;
}

.blog-content-v2 li.content {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 12px;
  padding-left: 0;
}

/* Ordered Lists */
.blog-content-v2 ol {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 10px;
  margin: 15px 0 25px;
}

.blog-content-v2 ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
  counter-increment: list-counter;
}

.blog-content-v2 ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--blog-naranja);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-content-v2 ol li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--blog-negro);
  margin-bottom: 8px;
}

.blog-content-v2 ol li p {
  margin-bottom: 10px;
}

/* Nested bullet lists inside ordered lists */
.blog-content-v2 ol li ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.blog-content-v2 ol li ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  counter-increment: none;
}

.blog-content-v2 ol li ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--blog-naranja);
  border-radius: 50%;
}

/* Hide horizontal rules in article content */
.blog-content-v2 hr {
  display: none;
}

.blog-content-v2 a {
  color: var(--blog-naranja);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.blog-content-v2 a:hover {
  color: #e09550;
}

/* Blockquotes */
.blog-content-v2 blockquote {
  position: relative;
  margin: 30px 0;
  padding: 25px 30px 25px 35px;
  background: var(--blog-naranja-light);
  border-left: 4px solid var(--blog-naranja);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.blog-content-v2 blockquote p {
  margin-bottom: 0;
  color: var(--blog-negro);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-content-v2 blockquote p:not(:last-child) {
  margin-bottom: 15px;
}

.blog-content-v2 blockquote cite,
.blog-content-v2 blockquote footer {
  display: block;
  margin-top: 15px;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blog-gris-texto);
}

/* Images in content */
.blog-content-v2 > img {
  width: 100%;
  height: auto;
  margin: 30px 0;
}

/* Section dividers */
.blog-content-v2 .que-son,
.blog-content-v2 .ventajas {
  padding: 0;
  margin: 0;
}

/* ============================================
   RIGHT SIDEBAR - Social Vertical
   ============================================ */
.blog-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  align-self: start;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Social Share - Compact Grid */
.blog-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.blog-social__label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blog-gris-texto);
}

.blog-social__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.blog-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--blog-gris-fondo);
  border: 1px solid var(--blog-gris-borde);
  border-radius: 8px;
  transition: all 0.2s;
}

.blog-social__link:hover {
  background: var(--blog-negro);
  border-color: var(--blog-negro);
}

/* Iconos con sistema hover (dos imágenes) */
.blog-social .blog-social__link img {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s;
}

.blog-social .blog-social__link .icon-hover {
  display: none;
}

.blog-social .blog-social__link:hover .icon-default {
  display: none;
}

.blog-social .blog-social__link:hover .icon-hover {
  display: block;
}

/* Iconos LinkedIn (sin sistema hover, usa filter) */
.blog-social__link:hover img:not(.icon-default):not(.icon-hover) {
  filter: brightness(0) invert(1);
}

.blog-social .blog-social__link svg {
  width: 18px;
  height: 18px;
  stroke: var(--blog-gris-texto);
  fill: var(--blog-gris-texto);
  transition: all 0.2s;
}

.blog-social .blog-social__link:hover svg {
  stroke: #fff;
  fill: #fff;
}

.blog-social__copy {
  cursor: pointer;
  font-family: inherit;
}

.blog-social__copy.copied {
  background: var(--blog-verde);
  border-color: var(--blog-verde);
}

.blog-social__copy.copied .icon-default {
  display: none;
}

.blog-social__copy.copied .icon-hover {
  display: block;
}

/* ============================================
   INLINE CTA - Newsletter (50% del artículo)
   ============================================ */
.blog-inline-newsletter {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 50px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--blog-negro);
  background: linear-gradient(135deg, rgba(47, 72, 88, 0.08) 0%, #fff 60%);
  border-radius: 0 12px 12px 0;
}

.blog-inline-newsletter__icon {
  width: 48px;
  height: 48px;
  background: var(--blog-negro);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-inline-newsletter__icon svg {
  stroke: #fff;
  width: 24px;
  height: 24px;
}

.blog-inline-newsletter__content {
  flex: 1;
  min-width: 0;
}

.blog-inline-newsletter__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin: 0 0 4px;
}

.blog-inline-newsletter__text {
  font-size: 0.9rem;
  color: var(--blog-gris-texto);
  line-height: 1.4;
  margin: 0 !important;
}

.blog-content-v2 .blog-inline-newsletter__btn,
.blog-inline-newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blog-negro);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.blog-content-v2 .blog-inline-newsletter__btn:hover,
.blog-content-v2 .blog-inline-newsletter__btn:visited,
.blog-content-v2 .blog-inline-newsletter__btn:active {
  background: #1e3344;
  color: #fff !important;
  text-decoration: none !important;
}

/* ============================================
   INLINE CTA - Organización/Producto (25% del artículo)
   ============================================ */
.blog-inline-org-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 50px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--blog-naranja);
  background: linear-gradient(135deg, var(--blog-naranja-light) 0%, #fff 60%);
  border-radius: 0 12px 12px 0;
}

.blog-inline-org-cta__icon {
  width: 48px;
  height: 48px;
  background: var(--blog-naranja);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-inline-org-cta__icon svg {
  stroke: #fff;
  width: 24px;
  height: 24px;
}

.blog-inline-org-cta__content {
  flex: 1;
  min-width: 0;
}

.blog-inline-org-cta__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin: 0 0 4px;
}

.blog-inline-org-cta__text {
  font-size: 0.9rem;
  color: var(--blog-gris-texto);
  line-height: 1.4;
  margin: 0 !important;
}

.blog-content-v2 .blog-inline-org-cta__btn,
.blog-inline-org-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blog-naranja);
  color: var(--blog-negro) !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.blog-content-v2 .blog-inline-org-cta__btn:hover,
.blog-content-v2 .blog-inline-org-cta__btn:visited,
.blog-content-v2 .blog-inline-org-cta__btn:active {
  background: #d4884e;
  color: var(--blog-negro) !important;
  text-decoration: none !important;
}

.blog-inline-org-cta__btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============================================
   INLINE CTA - Download (inicio del artículo)
   ============================================ */
.blog-download-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 40px;
  padding: 24px 28px;
  border-left: 4px solid var(--blog-verde);
  background: linear-gradient(135deg, rgba(0, 116, 95, 0.08) 0%, #fff 60%);
  border-radius: 0 12px 12px 0;
}

.blog-download-cta__icon {
  width: 48px;
  height: 48px;
  background: var(--blog-verde);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-download-cta__icon svg {
  stroke: #fff;
  width: 24px;
  height: 24px;
}

.blog-download-cta__content {
  flex: 1;
  min-width: 0;
}

.blog-download-cta__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin: 0 0 4px;
}

.blog-download-cta__text {
  font-size: 0.9rem;
  color: var(--blog-gris-texto);
  line-height: 1.4;
  margin: 0 !important;
}

.blog-content-v2 .blog-download-cta__btn,
.blog-download-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blog-verde);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.blog-content-v2 .blog-download-cta__btn:hover,
.blog-content-v2 .blog-download-cta__btn:visited,
.blog-content-v2 .blog-download-cta__btn:active {
  background: #005c4a;
  color: #fff !important;
  text-decoration: none !important;
}

.blog-download-cta__btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Legacy sidebar CTA cards (backward compat for special articles) */
.blog-cta-card {
  background: var(--blog-gris-fondo);
  border: 1px solid var(--blog-gris-borde);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.blog-cta-card--highlight {
  background: linear-gradient(135deg, var(--blog-naranja-light) 0%, #fff 100%);
  border-color: var(--blog-naranja);
}

.blog-cta-card--download {
  background: linear-gradient(135deg, rgba(0, 116, 95, 0.1) 0%, #fff 100%);
  border-color: var(--blog-verde);
}

.blog-cta-card--download .blog-cta-card__icon {
  background: var(--blog-verde);
}

.blog-cta-card--download .blog-cta-card__btn {
  background: var(--blog-verde);
}

.blog-cta-card--download .blog-cta-card__btn:hover {
  background: #005c4a;
}

.blog-cta-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  background: var(--blog-naranja);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-cta-card__icon img,
.blog-cta-card__icon svg {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.blog-cta-card__icon svg {
  stroke: #fff;
  filter: none;
}

.blog-cta-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin-bottom: 10px;
}

.blog-cta-card__text {
  font-size: 0.9rem;
  color: var(--blog-gris-texto);
  line-height: 1.5;
  margin-bottom: 18px;
}

.blog-cta-card__btn {
  display: block;
  background: var(--blog-naranja);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-cta-card__btn:hover {
  background: #e09550;
  transform: translateY(-2px);
}

.blog-cta-card__btn--secondary {
  background: transparent;
  border: 2px solid var(--blog-negro);
  color: var(--blog-negro);
}

.blog-cta-card__btn--secondary:hover {
  background: var(--blog-negro);
  color: #fff;
}

/* ============================================
   AUTHOR BIO (End of article)
   ============================================ */
.blog-author-bio {
  background: var(--blog-gris-fondo);
  border-radius: 16px;
  padding: 30px;
  margin: 50px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.blog-author-bio__photo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blog-naranja);
  flex-shrink: 0;
}

/* Contenedor para foto de autor Integratec en bio (favicon) */
.blog-author-bio__photo-wrapper--icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  border: 3px solid var(--blog-naranja);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}

.blog-author-bio__photo-wrapper--icon .blog-author-bio__photo {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  padding: 15px;
  object-fit: contain;
}

.blog-author-bio__content {
  flex: 1;
  min-width: 0;
}

.blog-author-bio__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blog-naranja);
  margin-bottom: 4px;
}

.blog-author-bio__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author-bio__title {
  font-size: 0.85rem;
  color: var(--blog-gris-texto);
  margin-bottom: 8px;
}

.blog-author-bio__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 10px;
}

.blog-author-bio__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0077b5;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-author-bio__linkedin:hover {
  opacity: 0.8;
}

/* ============================================
   SUBSCRIBE SECTION (Newsletter Card Style)
   ============================================ */
.blog-subscribe {
  padding: 60px 20px;
  background: #fff;
  scroll-margin-top: 80px;
}

.blog-subscribe__inner {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blog-negro) 0%, #1a2a35 100%);
  border-radius: 20px;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.blog-subscribe__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 166, 108, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.blog-subscribe__content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.blog-subscribe__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.blog-subscribe__title span {
  color: var(--blog-naranja);
}

.blog-subscribe__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.blog-subscribe__form {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 450px;
  position: relative;
  z-index: 2;
}

.blog-subscribe__input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--blog-negro);
}

.blog-subscribe__input::placeholder {
  color: #999;
}

.blog-subscribe__btn {
  background: var(--blog-naranja);
  color: #fff;
  padding: 16px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.blog-subscribe__btn:hover {
  background: #e09550;
  transform: translateY(-2px);
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.blog-related {
  padding: 70px 20px;
  background: var(--blog-gris-fondo);
}

.blog-related__inner {
  max-width: 1300px;
  width: 90%;
  margin: 0 auto;
}

.blog-related__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blog-negro);
  text-align: center;
  margin-bottom: 40px;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.blog-related__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-related__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-related__card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-related__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-related__card:hover .blog-related__card-image img {
  transform: scale(1.05);
}

.blog-related__card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-related__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blog-negro);
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   FOOTER CTA
   ============================================ */
.blog-footer-cta {
  background: #fff;
  padding: 70px 20px;
  text-align: center;
  border-top: 1px solid var(--blog-gris-borde);
}

.blog-footer-cta__inner {
  max-width: 700px;
  margin: 0 auto;
}

.blog-footer-cta__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blog-negro);
  margin-bottom: 15px;
}

.blog-footer-cta__text {
  font-size: 1.1rem;
  color: var(--blog-gris-texto);
  line-height: 1.6;
  margin-bottom: 30px;
}

.blog-footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blog-naranja);
  color: #fff;
  padding: 18px 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-footer-cta__btn:hover {
  background: #e09550;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 200px 1fr 86px;
    gap: 30px;
  }
}

@media screen and (max-width: 960px) {
  .blog-layout {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
  }

  .blog-content-v2 {
    max-width: 100%;
    order: 2;
  }

  .blog-toc {
    display: none;
  }

  .blog-sidebar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 1;
    margin-bottom: 30px;
    width: 100%;
  }

  .blog-social {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    gap: 14px;
    border-bottom: 1px solid var(--blog-gris-borde);
  }

  .blog-social__links {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .blog-social__link {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .blog-social .blog-social__link img {
    width: 27px;
    height: 27px;
  }

  .blog-social .blog-social__link svg {
    width: 27px;
    height: 27px;
  }

  .blog-social__label {
    font-size: 0.9rem;
  }

  .blog-inline-newsletter,
  .blog-inline-org-cta,
  .blog-download-cta {
    flex-direction: column;
    text-align: center;
    padding: 22px;
    gap: 15px;
    border-left: none;
    border-top: 4px solid;
    border-radius: 0 0 12px 12px;
  }

  .blog-inline-newsletter {
    border-top-color: var(--blog-negro);
  }

  .blog-inline-org-cta {
    border-top-color: var(--blog-naranja);
  }

  .blog-download-cta {
    border-top-color: var(--blog-verde);
  }

  .blog-inline-newsletter__btn,
  .blog-inline-org-cta__btn,
  .blog-download-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .blog-hero {
    padding: 100px 20px 40px;
  }

  .blog-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
  }

  .blog-hero__content {
    max-width: 100%;
    text-align: left;
  }

  .blog-hero__image {
    margin-right: 0;
    min-width: 100%;
  }

  .blog-hero__meta {
    justify-content: flex-start;
  }

  .blog-author {
    justify-content: flex-start;
  }

  .blog-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-subscribe__inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .blog-subscribe__form {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   INLINE CTA BOX (In-content - Image + Text)
   ============================================ */
.blog-inline-cta {
  max-width: 100%;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(240, 166, 108, 0.15);
  border: 2px solid var(--blog-naranja);
  background: #fff;
  display: flex;
  align-items: center;
}

.blog-inline-cta a:hover {
  background: #e09550 !important;
  transform: translateY(-2px);
}

@media screen and (max-width: 700px) {
  .blog-inline-cta {
    flex-direction: column !important;
  }

  .blog-inline-cta > div:first-child {
    flex: 1 1 100% !important;
    padding: 15px 15px 0 !important;
  }

  .blog-inline-cta > div:last-child {
    padding: 20px !important;
    text-align: center;
  }

  .blog-inline-cta h3 {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* ============================================
   ACCORDION (FAQ Section)
   ============================================ */
.accordion {
  margin: 30px 0;
  border: 1px solid var(--blog-gris-borde);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--blog-gris-borde);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-family: inherit;
}

.accordion-item button:hover {
  background: var(--blog-gris-fondo);
}

.accordion-item button[aria-expanded="true"] {
  background: var(--blog-naranja-light);
}

.accordion-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blog-negro);
  line-height: 1.4;
  flex: 1;
  padding-right: 15px;
}

.accordion-item button .icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.accordion-item button .icon::before,
.accordion-item button .icon::after {
  content: '';
  position: absolute;
  background: var(--blog-naranja);
  transition: transform 0.3s ease;
}

.accordion-item button .icon::before {
  width: 2px;
  height: 14px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item button .icon::after {
  width: 14px;
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item button[aria-expanded="true"] .icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item button[aria-expanded="true"] + .accordion-content {
  max-height: 500px;
  padding: 0 24px 20px;
}

.accordion-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.accordion-content p + p {
  margin-top: 12px;
}

/* ============================================
   FOOTER FIXES (prevent blog styles from affecting footer)
   ============================================ */
.blog-article-v2 .footer-pro,
.blog-article-v2 footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
}

.footer-social > a img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-social > a:hover img {
  opacity: 1;
}

@media screen and (max-width: 600px) {
  .blog-hero {
    padding: 100px 20px 40px;
  }

  .blog-hero__title {
    font-size: 1.8rem;
  }

  .blog-hero__excerpt {
    font-size: 1rem;
  }

  .blog-lead-magnet {
    flex-direction: column;
    text-align: center;
  }

  .blog-lead-magnet__image {
    order: -1;
    width: 100px;
  }

  .blog-author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .blog-author-bio__name {
    justify-content: center;
  }

  .blog-subscribe__inner {
    padding: 30px 20px;
  }

  .blog-subscribe__title {
    font-size: 1.5rem;
  }

  .blog-subscribe__form {
    flex-direction: column;
  }

  .blog-related__grid {
    grid-template-columns: 1fr;
  }

  .blog-content-v2 h2 {
    font-size: 1.4rem;
  }

}
