
.blog-view #content-container {
    padding: 0 !important;
}
.blog-index #content-container {
    padding: 25px 0 40px !important;
}

.blog-view #content-container > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.blog-view #content-container .row,
.blog-view #content-container .content {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


.blogs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0; 
}

@media (min-width: 762px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0; 
    }
}

@media (min-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1317px) {
    .blogs-grid {
        padding: 0 54px;
    }
}



.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    cursor: pointer;
    transition: all .3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.10);
}

.blog-card-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.blog-card:hover .blog-card-image-gradient {
    opacity: 1;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.blog-card-item-meta{
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #B41926;
    transition: color .3s ease;
}

.blog-card:hover .blog-card-title {
    color: #B41926;
}

.blog-card-footer-author{
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.blog-card-footer .author {
    font-size: 14px;
    color: #666;
}

.blog-card-footer .read-more {
    color: #8F141F;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all .3s ease;
    margin-left: auto;   /* 👉 esto lo alinea a la derecha */
}

.blog-card-footer .read-more:hover {
    color: #8F141F;
}

.blog-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}


.blog-detail-title {
    font-size: 40px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.blog-detail-meta {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 15px;
}

.blog-detail-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.blog-detail-description {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
}





.blog-view {
    background: #ffffff;
    min-height: 100vh;
}

.blog-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* oscurece la imagen */
    pointer-events: none; /* IMPORTANTÍSIMO: no bloquea el botón Volver */
    z-index: 1;
}

.blog-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.4),
        transparent
    );
    pointer-events: none;
    z-index: 2;
}

/* El contenido del hero va encima */
.blog-hero-content,
.blog-back-btn {
    position: relative;
    z-index: 3; /* siempre encima del overlay */
}


.blog-back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    backdrop-filter: blur(6px);
    transition: background 0.3s;

    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.blog-hero-content {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    padding: 0 25px;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-hero-content h1 {
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 12px;
    max-width: 850px;
}

/* móvil: sigue siendo grande, pero más controlado */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 42px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
}


.blog-hero-meta {
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    align-items: end;
}

.blog-hero-item-header{
    display: flex;
    align-items: end;
    gap: 10px;
}

.blog-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 10px 100px;
    background: #FFFFFF !important;
    line-height: 1.6;
}

.blog-container p {
    margin: 20px 0;
    line-height: 1.7;
}

.blog-introduction {
    font-size: 22px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 35px;
}

.blog-content {
    font-size: 18px;
    color: #334155;
    line-height: 1.75;
}

.blog-content p {
    margin-bottom: 25px;
}

.faq-section {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.faq-header{
    display: flex;
}

.faq-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 20px;
}

.faq-item {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-answer {
    display: none;
    padding: 16px;
    background: white;
    border-top: 1px solid #cbd5e1;
    color: #475569;
}

.conclusion-section {
    margin: 48px 0;
    background: linear-gradient(to right, #eff6ff, #e0e7ff);
    border-radius: 20px;
    padding: 32px;
}

.conclusion-title {
    font-size: 2rem; /* 32px */
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 16px;
}

.conclusion-text {
    font-size: 1.125rem; /* 18px */
    color: #334155;
    line-height: 1.7;
}


.toc-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;            
  box-sizing: border-box;
}

/* Header */
.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;                  /* similar a gap-2 */
  margin-bottom: 16px;
}

.toc-icon {
  width: 24px;
  height: 24px;
  color: #B41926;            /* azul */
  flex: 0 0 24px;
}

.toc-title {
  font-size: 1.25rem;        /* ~20px (text-2xl) */
  font-weight: 700;
  color: #0f172a;            /* slate-900 */
  margin: 0;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.toc-item {
  display: flex;
  align-items: flex-start; 
  gap: 12px;
  color: #666; 
  font-size: 1.125rem;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.toc-item:hover {
  color: #B41926;
}

.video-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 48px auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0px 4px 18px rgba(0,0,0,0.2);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.toc-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #dbeafe;
  color: #f5d5da;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover badge (cambia con el hover del item) */
.toc-item:hover .toc-badge {
  background: #B41926;
  color: #ffffff;
}

/* Texto del item */
.toc-text {
  line-height: 1.4;
}

.blog-section {
    margin: 48px 0; /* my-12 */
}

.blog-section ul {
    list-style: disc;        /* muestra los bullets */
    margin-left: 1.5rem;     /* sangría para que no queden pegados */
    padding-left: 1rem;
}

.blog-section ol {
    list-style: decimal;     /* numeración para listas ordenadas */
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.blog-section li {
    margin-bottom: 0.4rem;   /* un poco de espacio entre puntos */
}

.blog-section p {
    margin-bottom: 16px;
    line-height: 1.6;
}


.section-title {
    font-size: 2rem; /* text-3xl */
    font-weight: bold;
    color: #0f172a; /* slate-900 */
    margin-bottom: 16px;
}

.section-content {
    font-size: 1.125rem; /* text-lg */
    color: #334155; /* slate-700 */
    line-height: 1.7; /* leading-relaxed */
    margin-bottom: 24px;
}

.section-image {
    width: 50%; /* w-full */
    /*border-radius: 16px;  rounded-xl */
    /*box-shadow: 0px 6px 20px rgba(0,0,0,0.15); /* shadow-lg */
    display: block;
    margin: 24px auto;
}

.blog-navigation {
    margin-top: 64px; /* mt-16 */
    padding-top: 32px; /* pt-8 */
    border-top: 2px solid #e2e8f0; /* border-slate-200 */
}

.nav-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.nav-card {
    flex: 1;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.nav-card:hover {
    background: #f1f5f9; /* slate-100 */
}

.nav-left {
    text-align: left;
}

.nav-right {
    text-align: right;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.nav-right .nav-meta {
    justify-content: end;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.3s ease;
}

.nav-card:hover .nav-title {
    color: #B41926;
}

.arrow-left,
.arrow-right {
    font-size: 18px;
}

.nav-placeholder {
    flex: 1;
}

.toc-item a {
  color: inherit;
  text-decoration: none;
}