/* ============================
   CONTENEDOR DEL ARTÍCULO
============================ */
.articulo-contenido {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #222;
}

/* ============================
   TITULOS Y TEXTO
============================ */
.articulo-contenido h1,
.articulo-contenido h2,
.articulo-contenido h3 {
    font-weight: 700;
    margin-bottom: 12px;
}

.articulo-contenido p {
    margin-bottom: 16px;
}

.hero-articulo {
    width: 100%;
    max-width: 280px;       /* un poco más pequeño que 300px */
    margin: 26px auto 20px;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}


/* ============================
   INTRO DEL ARTÍCULO
============================ */
.articulo-contenido .intro {
    text-align: center;
    font-size: 1.1rem;
    color: #444;
    margin: 10px auto;
    max-width: 700px;
}

/* ============================
   TEXTO PRINCIPAL
============================ */
.texto-articulo {
    font-size: 1.05rem;
    color: #333;
}

/* ============================
   PRODUCTOS DENTRO DEL ARTÍCULO
============================ */
.articulo-producto {
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.articulo-producto img {
    max-height: 240px;
    object-fit: contain;
    margin: 0 auto 14px auto;
}

.articulo-producto h3 {
    text-align: center;
    margin-bottom: 10px;
}

.articulo-producto p {
    text-align: center;
    color: #555;
}

/* ============================
   BOTONES SOLO EN EL ARTÍCULO
============================ */
.articulo-contenido .boton {
    display: inline-block;
    background: #0077ff;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.articulo-contenido .boton:hover {
    background: #005fcc;
}

/* --- Alinear botones sin que se estiren ni creen huecos --- */
.articulo-producto {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 12px; /* un respiro visual */
}

/* Evita que el botón ocupe todo el ancho */
.boton-articulo {
    margin-top: auto;
    align-self: center; /* evita que se estire */
    padding: 8px 14px;      /* tamaño bonito */
    width: auto;            /* NO ocupar toda la tarjeta */
}

/* Opcional: igualar un poco las alturas sin exagerar */
.articulo-producto h3 {
    min-height: 48px; /* ajustable */
}

.articulo-producto p {
    min-height: 60px; /* ajustable */
}

/* ============================
   H1 EDITORIAL PREMIUM – PC
============================ */
.titulo-principal {
    visibility: visible !important;
    height: auto !important;
    display: block !important;

    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;          /* tamaño editorial */
    font-weight: 600;         /* más suave, menos balurdo */
    line-height: 1.35;
    color: #222;              /* gris elegante */
    letter-spacing: -0.2px;   /* tracking editorial */

    max-width: 820px;
    margin: 70px auto 12px auto; /* separación del carrusel en PC */
    padding: 0 15px;
    box-sizing: border-box;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   H1 EDITORIAL PREMIUM – MÓVIL
============================ */
@media (max-width: 768px) {
    .titulo-principal {
        margin-top: 80px;      /* separación correcta del carrusel */
        font-size: 20px;       /* tamaño más cómodo para móvil */
        font-weight: 600;
        line-height: 1.35;
        color: #222;
        letter-spacing: -0.2px;
        padding: 0 18px;       /* más aire lateral en móvil */
    }
}
