/* Estilos para los articulos del blog */

body.single-post .ff-single-post {
	margin-left: 130px;
	margin-right: 130px;
}

body.single-post .ff-article-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 35.2px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 1.792px;
	text-transform: uppercase;
}

/* Elemento principal: Blog */
body.single-post .ff-article-breadcrumb a {
	color: #b0361d;
	font-weight: 600;
	text-decoration: none;
}

/* Separador y categoría */
body.single-post .ff-article-breadcrumb > span {
	color: #0f111594;
	font-weight: 400;
}

body.single-post .ff-article-title {
	max-width: 713.208px;
	margin: 0;
	font-family: "Inter Tight", sans-serif;
	font-size: 70px;
	font-weight: 500;
	line-height: 1.04;
	color: #0F1115;
	letter-spacing: -2.296px;
}

body.single-post .ff-article-excerpt {
	max-width: 763.088px;
	margin-top: 28.8px;
	margin-bottom: 0;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.6;
	color: #0f11159e;
}

body.single-post .ff-article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 44.8px;
	padding-top: 24px;
	border-top: 1px solid #0f11151f;
	font-size: 15px;
	color: #0f11159e;
}

/* Autor */
body.single-post .ff-article-author::before {
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-right: 8px;
	border-radius: 50%;
	background: #b0361d;
	vertical-align: middle;
	content: "";
}

/* Ocultar el punto incluido originalmente en el PHP */
body.single-post .ff-article-author .ff-meta-dot {
	display: none;
}

/* Fecha de publicación */
body.single-post .ff-article-meta time {
	font-size: 15px;
	color: #0f11159e;
}

/* Tiempo de lectura */
body.single-post .ff-article-meta > span:last-child {
	font-size: 15px;
	color: #0f11159e;
}

body.single-post .ff-article-hero {
	padding: 144px 40px 56px;
}

body.single-post .ff-article-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	column-gap: 48px;
	align-items: start;
	padding-top: 80px;
	box-sizing: border-box;
}


/* Columna izquierda */
body.single-post .ff-article-rail {
	grid-column: 1;
	grid-row: 1 / span 3;
}

/* Columna derecha */
body.single-post .ff-article-content,
body.single-post .ff-article-author-box,
body.single-post .ff-article-cta {
	grid-column: 2;
}

body.single-post .ff-article-content,
body.single-post .ff-article-author-box,
body.single-post .ff-article-cta {
	grid-column: 2;
	justify-self: start;
	width: 100%;
	max-width: 750.000px;
}

/* Primer párrafo del artículo */
body.single-post .ff-article-content > p:first-of-type {
	margin-top: 0;
	font-family: "Inter", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.8;
	color: #0f1115;
}

/* Primera letra en formato capitular */
body.single-post .ff-article-content > p:first-of-type::first-letter {
	float: left;
	margin: 5px 10px 0 0;
	font-family: "Inter Tight", sans-serif;
	font-size: 64px;
	font-weight: 500;
	line-height: 0.78;
	color: #b0361d;
}

/* Párrafos generales del artículo */
body.single-post .ff-article-content p {
	margin-top: 0;
	margin-bottom: 24px;
	font-family: "Inter", sans-serif;
	font-size: 18.5px;
	font-weight: 400;
	line-height: 1.78;
	color: #0f1115e0;
}

/* Contenedor del índice */
body.single-post .ff-article-rail {
	position: sticky;
	top: 120px;
	padding-top: 50px;
	justify-self: end;
	width: 100%;
	max-width: 240px;
	max-height: 362px;
	padding-right: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

/* Encabezado del índice */
body.single-post .ff-rail-label {
	margin-bottom: 17.6px;
	padding-bottom: 11.2px;
	border-bottom: 1px solid #0f11151f;
	font-size: 11.52px;
	letter-spacing: 1.8432px;
	text-transform: uppercase;
	color: #0f111594;
}

/* Listado del índice */
body.single-post .toc,
body.single-post .ff-article-toc {
	display: flex;
	flex-direction: column;
	gap: 2.4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Elementos de la lista */
body.single-post .toc li,
body.single-post .ff-article-toc li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Enlaces del índice */
body.single-post .toc a,
body.single-post .ff-article-toc a {
	display: flex;
	align-items: baseline;
	gap: 11.2px;
	padding: 8px 9.6px 8px 8.8px;
	border-left: 2px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: #0f11159e !important;
	text-decoration: none;
	transition:
		color 0.25s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
		border-color 0.25s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
		background 0.25s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

/* Número y texto */
body.single-post .toc__n,
body.single-post .toc__t,
body.single-post .ff-toc-number,
body.single-post .ff-toc-title {
	color: inherit !important;
}

/* Elemento activo */
body.single-post .toc a.is-active,
body.single-post .ff-article-toc a.is-active {
	border-left-color: #b0361d;
	color: #0f1115 !important;
	font-weight: 500;
}

/* Contenedor del subtítulo */
body.single-post .ff-chapter-title {
	display: flex;
	align-items: flex-start;
	gap: 22.4px;
	margin-bottom: 28.8px;
	padding-bottom: 25.6px;
	border-bottom: 1px solid #0f11151f;
	font-family: "Inter Tight", sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.896px;
}

/* Número del subtítulo */
body.single-post .ff-chapter-number {
	position: relative;
	flex: none;
	padding-top: 8.8px;
	font-family: "Inter Tight", sans-serif;
	font-size: 14.4px;
	font-weight: 600;
	letter-spacing: 0.288px;
	color: #b0361d;
}

/* Línea inferior del número */
body.single-post .ff-chapter-number::after {
	position: absolute;
	bottom: -5.6px;
	left: 0;
	width: 100%;
	height: 1px;
	background: #b0361d;
	opacity: 0.35;
	content: "";
}

/* Texto del subtítulo */
body.single-post .ff-chapter-title > span:last-child {
	font-family: "Inter Tight", sans-serif;
	font-size: 35px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.896px;
	color: #0F1115;
}

/* Contenedor del autor */
body.single-post .ff-article-author-box {
	grid-column: 2;
	display: flex;
	align-items: flex-start;
	gap: 20.8px;
	margin-top: 56px;
	padding-top: 35.2px;
	border-top: 1px solid #0f11151f;
}

/* Imagen del autor */
body.single-post .ff-article-author-box .ff-author-image {
	flex: none;
	width: 96px;
	height: 96px;
	border: 1px solid #0f11151f;
	border-radius: 50%;
	background: #ece5d3;
	object-fit: cover;
}

/* Etiqueta “Escrito por” */
body.single-post .ff-author-label {
	display: block;
	margin-bottom: 6.4px;
	font-size: 11.52px;
	letter-spacing: 1.8432px;
	text-transform: uppercase;
	color: #0f111594;
}

/* Nombre y apellido del autor */
body.single-post .ff-author-information h2 {
	margin: 0 0 3.2px;
	font-family: "Inter Tight", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: -0.32px;
}

/* Cargo del autor */
body.single-post .ff-author-role {
	margin-bottom: 9.6px;
	font-family: "Inter Tight", sans-serif;
	font-size: 14.4px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: -0.144px;
	color: #b0361d;
}

/* Biografía */
body.single-post .ff-author-information p {
	max-width: 472.387px;
	margin: 0;
	font-size: 14.4px;
	font-weight: 400;
	line-height: 1.6;
	color: #0f11159e;
}

body.single-post .ff-article-cta {
	grid-column: 2;
	margin-top: 80px;
	padding: 41.6px 38.4px;
	border-radius: 20px;
	background: #0f1115;
	color: #f9f7f1;
}

/* Título del CTA */
body.single-post .ff-article-cta h2 {
	max-width: 386.562px;
	margin: 0 0 14.4px;
	font-family: "Inter Tight", sans-serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.96px;
	color: #f9f7f1;
}

/* Texto del CTA */
body.single-post .ff-article-cta > p {
	max-width: 464.312px;
	margin: 0 0 28.8px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: #f9f7f19e;
}

/* Contenedor de los enlaces */
body.single-post .ff-cta-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 22.4px;
}

/* Botón principal */
body.single-post .ff-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 9.6px;
	padding: 12.8px 24px;
	border-radius: 100px;
	background: #f9f7f1;
	font-family: "Inter Tight", sans-serif;
	font-size: 14.4px;
	font-weight: 500;
	color: #0f1115;
	text-decoration: none;
	transition:
		transform 0.3s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
		background 0.3s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

body.single-post .ff-related-posts {
	width: 100%;
	max-width: 1400px;
	margin: 96px auto 0;
	padding: 56px 40px 100px;
	border-top: 1px solid #0f11151f;
	box-sizing: border-box;
}

/* Título de artículos relacionados */
body.single-post .ff-related-heading {
	margin: 0 0 32px;
	font-size: 11.52px;
	font-weight: 500;
	letter-spacing: 1.8432px;
	text-transform: uppercase;
	color: #0f111594;
}

/* Grilla de artículos relacionados */
body.single-post .ff-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

/* Tarjeta relacionada */
body.single-post .ff-related-card {
	display: flex;
	flex-direction: column;
}

/* Imagen destacada */
body.single-post .ff-related-image {
	display: block;
	width: 100%;
	margin-bottom: 14.4px;
	overflow: hidden;
	border-radius: 14px;
}

body.single-post .ff-related-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Categoría */
body.single-post .ff-related-category {
	display: block;
	margin-bottom: 8px;
	font-size: 11.52px;
	font-weight: 600;
	letter-spacing: 1.6128px;
	text-transform: uppercase;
	color: #b0361d;
}

/* Nombre del artículo */
body.single-post .ff-related-card h3 {
	margin: 0;
	font-family: "Inter Tight", sans-serif;
	font-size: 18.4px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.368px;
}

/* Enlace del nombre */
body.single-post .ff-related-card h3 a {
	color: #0F1115;
	text-decoration: none;
}

/* Enlaces dentro del contenido */
body.single-post .ff-article-content a,
body.single-post .ff-article-content a:visited,
body.single-post .ff-article-content a:hover,
body.single-post .ff-article-content a:focus {
    color: #b0361d;
    font-weight: 500;
}

/* Subtítulos H3 */
body.single-post .ff-article-content h3 {
    color: #0F1115;
    font-size: 30px;
    line-height: 1.25;
    margin-top: 36px;
    margin-bottom: 20px;
}

/* Listas con líneas en lugar de puntos */
body.single-post .ff-article-content ul {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 24px;
    padding-left: 0;
}

body.single-post .ff-article-content ul > li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 18.5px;
    line-height: 1.78;
    color: #0f1115e0;
}

body.single-post .ff-article-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 14px;
    height: 2px;
    background-color: #B0361D;
}

@media (max-width: 767px) {
    body.single-post .ff-article-hero {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {

    body.single-post .ff-article-title {
        font-size: 40px;
        line-height: 1.1;
        letter-spacing: -0.035em;
    }

    body.single-post .ff-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    body.single-post .ff-article-layout {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    body.single-post .ff-article-layout > * {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    body.single-post .ff-article-rail {
        position: static;
    }
}

@media (max-width: 767px) {

    body.single-post .ff-single-post {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    body.single-post .ff-featured-image,
    body.single-post .ff-article-layout,
    body.single-post .ff-article-content {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    body.single-post .ff-featured-image img {
        display: block;
        width: 100%;
        height: auto;
    }
}

/* El botón se muestra únicamente en móvil con JS disponible */
body.single-post .ff-toc-toggle {
    display: none;
}

@media (max-width: 767px) {

    /* Índice desplegable */
    body.single-post .ff-article-rail.is-collapsible
    .ff-rail-label {
        display: none;
    }

    body.single-post .ff-article-rail.is-collapsible
    .ff-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        padding: 18px 0;
        margin: 0;
        border: 0;
        border-top: 1px solid rgba(15, 17, 21, 0.18);
        border-bottom: 1px solid rgba(15, 17, 21, 0.18);
        border-radius: 0;
        background: transparent;
        color: #0F1115;
        font-family: inherit;
        font-size: 16px;
        font-weight: 500;
        text-align: left;
        cursor: pointer;
    }

    body.single-post .ff-toc-toggle svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        fill: none;
        stroke: #B0361D;
        stroke-width: 1.8;
        transition: transform 0.25s ease;
    }

    body.single-post .ff-toc-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    body.single-post .ff-toc-toggle:focus-visible {
        outline: 2px solid #B0361D;
        outline-offset: 4px;
    }

    body.single-post #ffArticleToc[hidden] {
        display: none !important;
    }

    body.single-post .ff-article-rail.is-collapsible
    #ffArticleToc:not([hidden]) {
        padding-top: 20px;
    }

    /* H2 del contenido y sus títulos numerados */
    body.single-post .ff-article-content h2,
    body.single-post .ff-article-content .ff-chapter-title,
    body.single-post .ff-article-content
    .ff-chapter-title > span:last-child {
        font-size: 25px;
        line-height: 1.25;
        letter-spacing: -0.025em;
    }

    /* Artículos relacionados en una columna */
    body.single-post .ff-related-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    body.single-post .ff-related-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 767px) {
    body.single-post .ff-article-layout {
        row-gap: 32px;
    }
}