/* =====================================================
   Reseñas Widget — Frontend CSS
   ===================================================== */

/* ── Wrapper principal ─────────────────────────────── */
.resenas-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ── Track ─────────────────────────────────────────── */
.resenas-track {
    position: relative;
    width: 100%;
    min-height: 100px;
}

/* ── Slides — SLIDE mode ──────────────────────────── */
.resenas-track.is-slide {
    display: flex;
    transition-property: transform;
    transition-timing-function: ease-in-out;
    will-change: transform;
}
.resenas-track.is-slide .resena-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

/* ── Slides — FADE mode ───────────────────────────── */
.resenas-track.is-fade {
    display: block;
}
.resenas-track.is-fade .resena-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    pointer-events: none;
}
.resenas-track.is-fade .resena-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
/* Reservar altura mientras el fade corre */
.resenas-track.is-fade .resena-slide.prev-active {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* ── Card ──────────────────────────────────────────── */
.resena-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 32px;
    box-sizing: border-box;
    width: 100%;
}
.resena-card.has-shadow {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ── Estrellas ─────────────────────────────────────── */
.resena-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
    line-height: 1;
}
.resena-star {
    font-size: 20px;
    display: inline-block;
    line-height: 1;
}
.resena-star.star-full {
    color: #f5a623;
}
.resena-star.star-empty {
    color: #d9d9d9;
}

/* Media estrella: superposición */
.resena-star.star-half {
    position: relative;
    display: inline-block;
    color: #d9d9d9; /* fallback */
}
.resena-star.star-half .star-bg {
    color: #d9d9d9;
    display: inline-block;
}
.resena-star.star-half .star-fill {
    color: #f5a623;
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}

/* ── Texto de la reseña ────────────────────────────── */
.resena-texto {
    color: #444444;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}
.resena-quote-open,
.resena-quote-close {
    font-size: 1.2em;
    color: #000;
    font-weight: bold;
    line-height: 0;
    vertical-align: -0.1em;
}
.resena-quote-open { margin-right: 0px; }
.resena-quote-close { margin-left: 0px; }

/* ── Autor ─────────────────────────────────────────── */
.resena-autor {
    margin-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.resena-autor-nombre {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
}
.resena-autor-sep {
    color: #000;
  font-size: 14px;
  font-weight: 400;
}
.resena-autor-ubicacion {
    color: #888888;
    font-size: 14px;
}

/* ── Flechas de navegación ─────────────────────────── */
.resena-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #ffffff;
    color: #f5a623;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resena-arrow:hover {
    background-color: #f5a623;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245,166,35,0.35);
}
.resena-arrow-prev { left: -20px; }
.resena-arrow-next { right: -20px; }

/* Si las flechas están dentro del contenedor, ajustar márgenes */
.resenas-slider-wrapper {
    padding: 0 30px;
}

/* ── Modo Inline ───────────────────────────────────── */
/* Card en modo inline: flex horizontal, todo en una fila */
.resena-card.is-inline {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* En inline, estrellas y texto son inline-flex / inline */
.resena-card.is-inline .resena-stars {
    display: inline-flex;
    flex-shrink: 0;
    margin-bottom: 0;
    align-items: center;
}
.resena-card.is-inline .resena-texto {
    display: inline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.resena-card.is-inline .resena-autor {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0;
    gap: 3px;
}
.resena-card.is-inline .resena-quote-open,
.resena-card.is-inline .resena-quote-close {
    vertical-align: baseline;
}
/* Dash antes del nombre en inline */
.resena-autor-dash {
    color: inherit;
    opacity: 0.6;
}

/* ── Dots ──────────────────────────────────────────── */
.resenas-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.resena-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d9d9d9;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s;
    display: inline-block;
}
.resena-dot.active {
    background-color: #f5a623;
    transform: scale(1.35);
}