body {
    background: #fff;
}

/* Estilos para el texto del artículo */
.contenido-texto {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.contenido-texto h2 {
    color: var(--primary-color, #d32f2f);
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
}

.contenido-texto p {
    margin-bottom: 20px;
}

.contenido-texto ul, 
.contenido-texto ol {
    margin-bottom: 30px;
    padding-left: 0;
    list-style: none;
}

.contenido-texto li {
    margin-bottom: 15px;
    padding: 15px 20px 15px 50px;
    background: #fdfdfd;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #F48A00);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    line-height: 1.6;
}

.contenido-texto li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    background: #fff;
}

.contenido-texto ol {
    counter-reset: step-counter;
}

.contenido-texto ol li {
    counter-increment: step-counter;
}

.contenido-texto ol li::before {
    content: counter(step-counter);
    background: var(--primary-color, #F48A00);
    color: white;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    left: 12px;
    top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.contenido-texto ul li::before {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color, #F48A00);
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: 1.1em;
}

.contenido-texto li strong {
    color: var(--secondary-color, #052F65);
}

.contenido-texto blockquote {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-left: 6px solid var(--primary-color, #F48A00);
    margin: 35px 0;
    padding: 25px 30px;
    font-style: italic;
    font-size: 1.15em;
    color: #444;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.contenido-texto blockquote::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(244, 138, 0, 0.1);
    font-size: 4em;
    position: absolute;
    top: -15px;
    left: 15px;
    z-index: -1;
}

.contenido-texto blockquote:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contenedor-articulo {
    max-width: 800px;
    margin: 120px auto 40px;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.contenedor-articulo h1 {
    color: var(--secondary-color, #0056b3);
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.imagen-principal {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.fecha-articulo {
    color: var(--secondary-color, #666);
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 5px;
}

.btn-volver {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-volver:hover {
    text-decoration: underline;
}

.productos-relacionados {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.productos-relacionados h3 {
    margin-bottom: 20px;
    color: #333;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.producto-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.producto-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.producto-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    max-height: 150px;
    object-fit: contain;
}

.producto-card h4 {
    font-size: 1.1em;
    margin: 10px 0;
    color: #444;
}

.btn-ver-mas {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color, #e30613);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    transition: opacity 0.3s;
}

.btn-ver-mas:hover {
    opacity: 0.9;
}

/* Hacer el header siempre de color primario en el artículo */
.main-header {
    background-color: var(--secondary-color) !important;
}

.otros-articulos {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.otros-articulos h3 {
    margin-bottom: 20px;
    color: #333;
}

.carrusel-articulos {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carrusel-articulos::-webkit-scrollbar {
    height: 8px;
}

.carrusel-articulos::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.carrusel-articulos::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.carrusel-articulos::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.articulo-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.articulo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.articulo-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.articulo-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.articulo-card-content h4 {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.articulo-card-content p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
    margin-top: auto;
}