/* =====================================================================
   Eterfly Historias — Estilos frontend
   ===================================================================== */

/* -------------------------------------------------------------------
   Variables
   ------------------------------------------------------------------- */
:root {
    --eh-primary:     #c0392b;
    --eh-primary-dk:  #922b21;
    --eh-success:     #27ae60;
    --eh-warning:     #f39c12;
    --eh-text:        #333333;
    --eh-text-light:  #777777;
    --eh-border:      #e0e0e0;
    --eh-bg:          #f9f9f9;
    --eh-radius:      6px;
    --eh-shadow:      0 2px 8px rgba(0,0,0,0.08);
}

/* -------------------------------------------------------------------
   Pasaporte — cabecera y layout
   ------------------------------------------------------------------- */
.eh-mis-historias {
    max-width: 100%;
}

.eh-mis-historias__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--eh-primary);
}

.eh-mis-historias__cabecera h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--eh-text);
}

.eh-mis-historias__subtitulo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--eh-text);
}

.eh-mis-historias__vacio {
    background: var(--eh-bg);
    border: 1px dashed var(--eh-border);
    border-radius: var(--eh-radius);
    padding: 32px;
    text-align: center;
    color: var(--eh-text-light);
}

/* -------------------------------------------------------------------
   Badge contador
   ------------------------------------------------------------------- */
.eh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--eh-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.eh-badge--verde {
    background: var(--eh-success);
}

/* -------------------------------------------------------------------
   Grid de historias
   ------------------------------------------------------------------- */
.eh-historias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* -------------------------------------------------------------------
   Tarjeta de historia (área privada)
   ------------------------------------------------------------------- */
.eh-historia-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.eh-historia-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.eh-historia-card--baja {
    border-color: var(--eh-warning);
    opacity: 0.85;
}

.eh-historia-card__imagen img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.eh-historia-card__body {
    flex: 1;
    padding: 16px;
}

.eh-historia-card__titulo {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--eh-text);
    line-height: 1.3;
}

.eh-historia-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--eh-text-light);
    line-height: 1.8;
}

.eh-historia-card__meta strong {
    color: var(--eh-text);
}

.eh-historia-card__acciones {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--eh-border);
    background: var(--eh-bg);
    flex-wrap: wrap;
}

.eh-historia-card__acciones .button {
    flex: 1;
    text-align: center;
    font-size: 13px;
}

/* -------------------------------------------------------------------
   Estados
   ------------------------------------------------------------------- */
.eh-estado {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eh-estado--borrador {
    background: #fff3cd;
    color: #856404;
}

.eh-estado--publicada {
    background: #d4edda;
    color: #155724;
}

.eh-baja-pendiente {
    font-size: 13px;
    color: var(--eh-warning);
    font-weight: 600;
}

/* -------------------------------------------------------------------
   Botones específicos
   ------------------------------------------------------------------- */
.eh-btn-baja {
    background: transparent !important;
    border-color: var(--eh-primary) !important;
    color: var(--eh-primary) !important;
    font-size: 12px !important;
}

.eh-btn-baja:hover {
    background: var(--eh-primary) !important;
    color: #fff !important;
}

.eh-btn-contar-historia {
    background: var(--eh-primary) !important;
    border-color: var(--eh-primary) !important;
    color: #fff !important;
}

.eh-btn-contar-historia:hover {
    background: var(--eh-primary-dk) !important;
    border-color: var(--eh-primary-dk) !important;
}

/* -------------------------------------------------------------------
   Dropdown (múltiples camisetas disponibles)
   ------------------------------------------------------------------- */
.eh-dropdown {
    position: relative;
    display: inline-block;
}

.eh-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    min-width: 220px;
    list-style: none;
    margin: 4px 0 0;
    padding: 6px 0;
    z-index: 100;
}

.eh-dropdown.is-open .eh-dropdown__menu {
    display: block;
}

.eh-dropdown__menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--eh-text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}

.eh-dropdown__menu li a:hover {
    background: var(--eh-bg);
    color: var(--eh-primary);
}

/* -------------------------------------------------------------------
   Bloque "Contar tu historia" en ficha de producto
   ------------------------------------------------------------------- */
.eh-contar-historia {
    margin: 32px 0;
    padding: 24px;
    border: 2px dashed var(--eh-border);
    border-radius: var(--eh-radius);
    text-align: center;
}

.eh-contar-historia__nueva p,
.eh-contar-historia__existente p {
    margin-bottom: 12px;
    color: var(--eh-text-light);
}

.eh-contar-historia__icono {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

/* -------------------------------------------------------------------
   Sección pública en ficha de producto
   ------------------------------------------------------------------- */
.eh-historias-producto {
    margin: 48px 0;
    padding-top: 32px;
    border-top: 2px solid var(--eh-border);
}

.eh-historias-producto__cabecera {
    text-align: center;
    margin-bottom: 32px;
}

.eh-historias-producto__titulo {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.eh-historias-producto__subtitulo {
    color: var(--eh-text-light);
    font-style: italic;
    margin: 0;
}

.eh-historias-producto__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* -------------------------------------------------------------------
   Historia pública (tarjeta en producto — ahora es un enlace)
   ------------------------------------------------------------------- */
.eh-historia-publica {
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.eh-historia-publica--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.eh-historia-publica--link:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.eh-historia-publica--link:hover .eh-historia-publica__leer-mas {
    color: var(--eh-primary);
}

.eh-historia-publica__imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.eh-historia-publica__contenido {
    padding: 20px;
}

.eh-historia-publica__titulo {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--eh-text);
}

.eh-historia-publica__extracto {
    font-size: 14px;
    line-height: 1.7;
    color: var(--eh-text-light);
    margin-bottom: 12px;
}

.eh-historia-publica__texto {
    font-size: 14px;
    line-height: 1.7;
    color: var(--eh-text);
    margin-bottom: 12px;
}

.eh-historia-publica__galeria {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.eh-galeria__thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.eh-historia-publica__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--eh-border);
    font-size: 13px;
    color: var(--eh-text-light);
}

.eh-historia-publica__leer-mas {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eh-text-light);
    transition: color 0.2s;
}

/* -------------------------------------------------------------------
   Formulario de historia
   ------------------------------------------------------------------- */
.eh-formulario-historia {
    max-width: 720px;
}

.eh-formulario-historia__cabecera {
    margin-bottom: 28px;
}

.eh-volver {
    font-size: 13px;
    color: var(--eh-text-light);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.eh-volver:hover {
    color: var(--eh-primary);
}

.eh-formulario-historia__cabecera h2 {
    margin: 0 0 8px;
}

.eh-formulario-historia__producto {
    color: var(--eh-text-light);
    margin: 0;
}

.eh-aviso-edicion {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--eh-radius);
    padding: 12px 16px;
    font-size: 13px;
    margin-top: 12px;
    color: #856404;
}

.eh-form__campo {
    margin-bottom: 22px;
}

.eh-form__row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.eh-form__campo--half {
    flex: 1;
    min-width: 0;
}

.eh-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.eh-form__requerido {
    color: var(--eh-primary);
    margin-left: 2px;
}

.eh-form__opcional {
    font-weight: 400;
    color: var(--eh-text-light);
    font-size: 12px;
    margin-left: 4px;
}

.eh-form__input,
.eh-form__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    font-size: 14px;
    color: var(--eh-text);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.eh-form__input--short {
    max-width: 160px;
}

.eh-form__input:focus,
.eh-form__textarea:focus {
    border-color: var(--eh-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.eh-form__textarea {
    resize: vertical;
    min-height: 200px;
}

.eh-form__ayuda {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--eh-text-light);
}

.eh-form__file {
    display: block;
    margin-bottom: 8px;
}

/* Portada actual */
.eh-portada-actual {
    margin-bottom: 12px;
}

.eh-portada-actual__img {
    max-width: 300px;
    height: auto;
    border-radius: var(--eh-radius);
    border: 2px solid var(--eh-border);
    display: block;
    margin-bottom: 6px;
}

/* Imágenes actuales */
.eh-imagenes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.eh-imagen-item {
    position: relative;
    width: 100px;
}

.eh-imagen-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    border: 2px solid var(--eh-border);
}

.eh-imagen-item:has(input:checked) img {
    border-color: var(--eh-primary);
    opacity: 0.5;
}

.eh-imagen-eliminar {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 4px;
    cursor: pointer;
    color: var(--eh-primary);
}

/* Preview imágenes nuevas */
.eh-preview-imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.eh-preview-imagenes img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--eh-border);
}

.eh-preview-imagenes .eh-preview-error {
    font-size: 12px;
    color: var(--eh-primary);
    padding: 8px;
    background: #fdecea;
    border-radius: 4px;
}

/* Acciones del formulario */
.eh-form__acciones {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------
   Vista pública single de historia
   ------------------------------------------------------------------- */
.eh-single-historia {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.eh-single-historia__portada {
    margin-bottom: 32px;
}

.eh-single-historia__portada-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--eh-radius);
    display: block;
}

.eh-single-historia__contenedor {
    max-width: 680px;
    margin: 0 auto;
}

.eh-single-historia__header {
    margin-bottom: 28px;
    text-align: center;
}

.eh-single-historia__titulo {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--eh-text);
    line-height: 1.3;
}

.eh-single-historia__camiseta {
    font-size: 1rem;
    color: var(--eh-text-light);
    margin: 0;
    font-style: italic;
}

/* Datos del pasaporte */
.eh-single-historia__datos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--eh-bg);
    border-radius: var(--eh-radius);
    border: 1px solid var(--eh-border);
}

.eh-single-historia__dato {
    text-align: center;
    min-width: 100px;
}

.eh-single-historia__dato-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eh-text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.eh-single-historia__dato-valor {
    display: block;
    font-size: 15px;
    color: var(--eh-text);
    font-weight: 500;
}

/* Texto */
.eh-single-historia__texto {
    font-size: 16px;
    line-height: 1.8;
    color: var(--eh-text);
    margin-bottom: 40px;
}

.eh-single-historia__texto p {
    margin-bottom: 1.2em;
}

/* Galería */
.eh-single-historia__galeria {
    margin-bottom: 40px;
}

.eh-single-historia__galeria-titulo {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--eh-text);
}

.eh-single-historia__galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.eh-single-historia__galeria-item {
    margin: 0;
}

.eh-single-historia__galeria-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--eh-radius);
    display: block;
}

/* Enlace al producto */
.eh-single-historia__producto-link {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--eh-border);
}

/* -------------------------------------------------------------------
   Mi cuenta → Pasaporte: grid de tarjetas con imagen del flyer
   ------------------------------------------------------------------- */
.eh-pasaportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0 32px;
}

.eh-pasaporte-card {
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    box-shadow: var(--eh-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.eh-pasaporte-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.eh-pasaporte-card__portada {
    background: #f3f4f6;
    aspect-ratio: 1 / 1.414; /* A4 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eh-pasaporte-card__portada img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.eh-pasaporte-card__body {
    padding: 16px;
    flex: 1;
}

.eh-pasaporte-card__titulo {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--eh-text);
    line-height: 1.3;
}

.eh-pasaporte-card__estado {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.eh-pasaporte-card__estado--listo {
    color: var(--eh-success);
}

.eh-pasaporte-card__estado--pendiente {
    color: var(--eh-warning);
}

.eh-pasaporte-card__acciones {
    padding: 12px 16px;
    border-top: 1px solid var(--eh-border);
    background: var(--eh-bg);
}

.eh-pasaporte-card__acciones .button {
    width: 100%;
    text-align: center;
}

/* Nota de baja */
.eh-mis-historias__nota-baja {
    margin-top: 32px;
    font-size: 12px;
    color: var(--eh-text-light);
    text-align: center;
}

.eh-mis-historias__nota-baja a {
    color: var(--eh-text-light);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
   Catálogo: badge "Agotada" en layouts estáticos (YooTheme Builder)
   ------------------------------------------------------------------- */
.eh-agotada {
    position: relative;
}

.eh-agotada .el-image,
.eh-agotada img.attachment-woocommerce_thumbnail,
.eh-agotada .wp-post-image {
    opacity: 0.7;
    filter: grayscale(40%);
    transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Badge fijo en la esquina */
.eh-agotada-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    background: #c0392b;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
    text-transform: uppercase;
    line-height: 1;
}

/* Overlay completo al hacer hover sobre la camiseta agotada */
.eh-agotada::after {
    content: attr(title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 57, 43, 0.85);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: 4px;
    z-index: 4;
}

.eh-agotada:hover::after {
    opacity: 1;
}

.eh-agotada:hover .el-image,
.eh-agotada:hover img.attachment-woocommerce_thumbnail,
.eh-agotada:hover .wp-post-image {
    filter: grayscale(60%) blur(1px);
    opacity: 0.6;
}

/* El botón "+" en una camiseta agotada se mantiene visible pero ahora lleva
   a la ficha del producto para ver el pasaporte */
.eh-link-pasaporte {
    cursor: pointer;
    position: relative;
    z-index: 7;
}

/* -------------------------------------------------------------------
   Catálogo: badge "Agotada" sobre productos sin stock (loops WC nativos)
   ------------------------------------------------------------------- */
.product.outofstock,
li.product.outofstock,
.woocommerce-loop-product.outofstock,
.outofstock.product {
    position: relative;
}

/* Banner diagonal "AGOTADA" sobre la imagen del producto */
.product.outofstock .wp-post-image,
li.product.outofstock .wp-post-image,
.outofstock .attachment-woocommerce_thumbnail {
    opacity: 0.7;
    filter: grayscale(30%);
}

.product.outofstock::before,
li.product.outofstock::before {
    content: "AGOTADA";
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: #c0392b;
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    pointer-events: none;
}

/* Si el theme ya inserta su propia etiqueta "Agotado", la ocultamos para
   no duplicar (YooTheme la suele meter como .out-of-stock) */
.product.outofstock .out-of-stock,
li.product.outofstock .out-of-stock {
    display: none;
}

/* -------------------------------------------------------------------
   Sección "Pasaporte digital" en la ficha del producto
   ------------------------------------------------------------------- */
.eh-pasaporte-seccion {
    margin: 48px auto;
    padding: 40px 20px;
    max-width: 1400px;
    text-align: center;
}

.eh-pasaporte-seccion__cabecera {
    margin-bottom: 28px;
}

.eh-pasaporte-seccion__titulo {
    font-size: 1.8rem;
    margin: 0 0 6px;
    color: var(--eh-text);
}

.eh-pasaporte-seccion__subtitulo {
    color: var(--eh-text-light);
    font-style: italic;
    margin: 0;
}

/* -------------------------------------------------------------------
   Visor flipbook (StPageFlip + PDF.js)
   ------------------------------------------------------------------- */
.eh-flipbook-wrapper {
    margin: 32px auto;
    max-width: 1000px;
}

/* Variante centrada para la sección de producto */
.eh-flipbook-wrapper--centrado {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

/* Variante a tamaño completo */
.eh-flipbook-wrapper--full {
    max-width: 1400px;
    margin: 20px auto 60px;
}

.eh-flipbook--full {
    min-height: 700px;
    padding: 30px 0;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.eh-flipbook-wrapper__header {
    text-align: center;
    margin-bottom: 20px;
}

.eh-flipbook-wrapper__titulo {
    font-size: 1.4rem;
    margin: 0 0 6px;
    color: var(--eh-text);
}

.eh-flipbook-wrapper__meta {
    font-size: 14px;
    color: var(--eh-text-light);
    margin: 0;
}

.eh-flipbook {
    position: relative;
    min-height: 400px;
    width: 100%;
    margin: 0 auto;
    background: #fafafa;
    border-radius: var(--eh-radius);
    padding: 20px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.eh-flipbook__book {
    margin: 0 auto;
}

.eh-flipbook__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    font-size: 14px;
    color: var(--eh-text-light);
    font-style: italic;
}

.eh-flipbook__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 0;
}

.eh-flipbook__btn {
    background: var(--eh-primary);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
}

.eh-flipbook__btn:hover {
    background: var(--eh-primary-dk);
    transform: scale(1.05);
}

.eh-flipbook__btn:active {
    transform: scale(0.95);
}

.eh-flipbook__counter {
    font-size: 14px;
    color: var(--eh-text);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 640px) {
    .eh-mis-historias__cabecera {
        flex-direction: column;
        align-items: flex-start;
    }

    .eh-historias-grid,
    .eh-historias-producto__grid {
        grid-template-columns: 1fr;
    }

    .eh-form__row {
        flex-direction: column;
        gap: 0;
    }

    .eh-form__acciones {
        flex-direction: column;
    }

    .eh-form__acciones .button {
        width: 100%;
        text-align: center;
    }

    .eh-single-historia__titulo {
        font-size: 1.5rem;
    }

    .eh-single-historia__galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eh-single-historia__datos {
        flex-direction: column;
        align-items: center;
    }
}
