/**
 * AsturWebs WP Reseñas - Frontend CSS
 * Diseño Minimalista Moderno
 */

:root {
    --awr-primary: #667eea;
    --awr-secondary: #764ba2;
    --awr-accent: #f4a261;
    --awr-text: #2d3436;
    --awr-text-light: #636e72;
    --awr-bg: #f8f9fa;
    --awr-white: #ffffff;
    --awr-border: #e9ecef;
    --awr-star: #f4a261;
    --awr-radius: 16px;
    --awr-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ========== GRID DE RESEÑAS ========== */
.awr-reviews {
    display: grid;
    gap: 24px;
    padding: 20px 0;
    align-items: start;
}

.awr-cols-1 { grid-template-columns: 1fr; }
.awr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.awr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.awr-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .awr-cols-4, .awr-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .awr-cols-4, .awr-cols-3, .awr-cols-2 { grid-template-columns: 1fr; }
}

/* ========== TARJETA DE RESEÑA ========== */
.awr-card {
    background: var(--awr-white);
    border-radius: var(--awr-radius);
    padding: 28px;
    box-shadow: var(--awr-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    height: auto;
}

.awr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Cita */
.awr-quote {
    margin-bottom: 20px;
}

.awr-quote-icon {
    font-size: 48px;
    line-height: 1;
    color: var(--awr-accent);
    opacity: 0.3;
    display: block;
    margin-bottom: -20px;
    font-family: Georgia, serif;
}

.awr-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--awr-text);
    margin: 0;
    font-style: italic;
}

/* Rating */
.awr-rating {
    margin-bottom: 16px;
}

.awr-star {
    font-size: 18px;
    color: var(--awr-border);
    margin-right: 2px;
}

.awr-star.filled {
    color: var(--awr-star);
}

/* Autor */
.awr-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--awr-border);
}

.awr-avatar {
    flex-shrink: 0;
}

.awr-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.awr-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--awr-primary), var(--awr-secondary));
    color: var(--awr-white);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.awr-info {
    display: flex;
    flex-direction: column;
}

.awr-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--awr-text);
}

.awr-role {
    font-size: 13px;
    color: var(--awr-text-light);
    margin-top: 2px;
}

/* Empty */
.awr-empty {
    text-align: center;
    padding: 40px;
    color: var(--awr-text-light);
}

/* ========== FORMULARIO ========== */
.awr-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--awr-white);
    border-radius: var(--awr-radius);
    box-shadow: var(--awr-shadow);
}

.awr-form-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    color: var(--awr-text);
    text-align: center;
}

.awr-form-row {
    display: flex;
    gap: 16px;
}

.awr-form-group {
    margin-bottom: 20px;
}

.awr-half {
    flex: 1;
}

.awr-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--awr-text);
}

.awr-form .required {
    color: #d63031;
}

.awr-form input[type="text"],
.awr-form input[type="email"],
.awr-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--awr-border);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.awr-form input:focus,
.awr-form textarea:focus {
    outline: none;
    border-color: var(--awr-accent);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.15);
}

/* Rating Input */
.awr-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.awr-rating-input input {
    display: none;
}

.awr-rating-input label {
    font-size: 28px;
    color: var(--awr-border);
    cursor: pointer;
    transition: color 0.15s ease;
    margin: 0;
}

.awr-rating-input label:hover,
.awr-rating-input label:hover ~ label,
.awr-rating-input input:checked ~ label {
    color: var(--awr-star);
}

/* Submit Button */
.awr-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--awr-primary), var(--awr-secondary));
    color: var(--awr-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.awr-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.awr-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.awr-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.awr-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.awr-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .awr-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .awr-form-wrapper {
        padding: 20px;
        margin: 0 10px;
    }
}

/* ========== SLIDER / CORTINILLA DESLIZANTE ========== */
.awr-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.awr-slider-track {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    animation: awr-slide linear infinite;
    width: max-content;
}

.awr-slider-wrapper:hover .awr-slider-track {
    animation-play-state: paused;
}

@keyframes awr-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tarjeta del Slider */
.awr-slider-card {
    flex-shrink: 0;
    width: 340px;
    max-width: 340px;
    height: auto;
    background: var(--awr-white);
    border-radius: var(--awr-radius);
    padding: 24px;
    box-shadow: var(--awr-shadow);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}

.awr-slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Foto en Slider */
.awr-slider-photo {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.awr-slider-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido Slider */
.awr-slider-content {
    display: block;
}

.awr-slider-quote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--awr-text);
    font-style: italic;
    margin-bottom: 16px;
    position: relative;
}

.awr-quote-mark {
    font-size: 42px;
    line-height: 1;
    color: var(--awr-accent);
    opacity: 0.4;
    font-family: Georgia, serif;
    position: absolute;
    top: -8px;
    left: -4px;
}

/* Estrellas en Slider */
.awr-slider-stars {
    margin-bottom: 12px;
}

.awr-slider-stars .awr-star {
    font-size: 16px;
    color: var(--awr-border);
    margin-right: 1px;
}

.awr-slider-stars .awr-star.filled {
    color: var(--awr-star);
}

/* Autor en Slider */
.awr-slider-author {
    padding-top: 14px;
    border-top: 1px solid var(--awr-border);
}

.awr-slider-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--awr-text);
}

.awr-slider-role {
    display: block;
    font-size: 13px;
    color: var(--awr-text-light);
    margin-top: 2px;
}

/* Efecto Fade en bordes */
.awr-slider-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}

.awr-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--awr-bg), transparent);
}

.awr-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--awr-bg), transparent);
}

/* Responsive Slider */
@media (max-width: 600px) {
    .awr-slider-card {
        width: 280px;
        padding: 20px;
    }
    
    .awr-slider-fade {
        width: 40px;
    }
}

/* ========== RESEÑA DESTACADA - MINIMALISTA ========== */
.awr-featured {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.awr-featured-item {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.awr-featured-item.active {
    display: block;
    opacity: 1;
}

.awr-featured-quote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.6;
    color: var(--awr-text);
    font-style: italic;
    font-weight: 300;
    margin: 0 0 24px 0;
    padding: 0;
    border: none;
    background: none;
}

.awr-featured-stars {
    margin-bottom: 20px;
}

.awr-featured-stars .awr-star {
    font-size: 20px;
    color: var(--awr-border);
    margin: 0 2px;
}

.awr-featured-stars .awr-star.filled {
    color: var(--awr-star);
}

.awr-featured-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.awr-featured-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.awr-featured-info {
    text-align: left;
}

.awr-featured-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--awr-text);
}

.awr-featured-role {
    display: block;
    font-size: 14px;
    color: var(--awr-text-light);
    margin-top: 2px;
}

/* Dots de navegación */
.awr-featured-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.awr-featured-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--awr-border);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.awr-featured-dot:hover {
    background: var(--awr-text-light);
}

.awr-featured-dot.active {
    background: var(--awr-primary);
    transform: scale(1.2);
}

/* Responsive Featured */
@media (max-width: 600px) {
    .awr-featured {
        padding: 30px 15px;
    }
    
    .awr-featured-author {
        flex-direction: column;
        gap: 10px;
    }
    
    .awr-featured-info {
        text-align: center;
    }
}
