/* ==========================================================================
   resenas.css - Estilos Exclusivos para la Página Dedicada de Reseñas
   3D Printed Clock - Luxury Dark / Cyberpunk Theme
   ========================================================================== */

:root {
    --gold-primary: #d4af37;
    --gold-light: #fef08a;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --cyan-accent: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.3);
    --dark-bg: #030305;
    --dark-card: #0a0a0f;
    --dark-card-hover: #101422;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-blue: #b3d9ff;
    --facebook-blue: #3b5998;
}

body.resenas-page {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   HERO SECTION DE RESEÑAS
   ========================================================================== */
.resenas-hero {
    position: relative;
    padding: 130px 20px 60px 20px;
    background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, rgba(3, 3, 5, 0.95) 70%);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
    overflow: hidden;
}

.resenas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--cyan-accent), transparent);
}

.resenas-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.resenas-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--gold-glow);
}

.resenas-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
    color: #ffffff;
    line-height: 1.2;
}

.resenas-hero h1 span.gold-text {
    color: var(--gold-primary);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.resenas-hero-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 820px;
    margin: 0 auto 35px auto;
}

/* Insignias de Confianza */
.resenas-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 950px;
    margin: 0 auto;
}

.resenas-trust-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.resenas-trust-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.resenas-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.resenas-trust-info {
    text-align: left;
}

.resenas-trust-info strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.resenas-trust-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ==========================================================================
   BARRA DE CONTROLES (BUSCADOR & CONTADOR)
   ========================================================================== */
.resenas-toolbar-section {
    padding: 30px 20px 10px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.resenas-toolbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 16px 22px;
    backdrop-filter: blur(10px);
}

.resenas-count-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
}

.resenas-count-indicator i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.resenas-search-box {
    position: relative;
    min-width: 280px;
    flex-grow: 1;
    max-width: 400px;
}

.resenas-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resenas-search-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(3, 3, 5, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px 10px 38px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.resenas-search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   GRID DE RESEÑAS
   ========================================================================== */
.resenas-content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 25px 20px 60px 20px;
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* Tarjeta Individual de Reseña */
.resena-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
}

.resena-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

/* Encabezado de la Tarjeta */
.resena-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.resena-quote-icon {
    font-size: 1.8rem;
    color: var(--gold-primary);
    opacity: 0.6;
}

.resena-stars {
    display: flex;
    gap: 3px;
    color: #ffd700;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

/* Comentario */
.resena-text {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 22px 0;
    font-style: italic;
    font-weight: 300;
    flex-grow: 1;
}

/* Footer de la Tarjeta */
.resena-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.resena-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.resena-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.resena-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resena-avatar-initials {
    color: var(--gold-primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.resena-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.resena-author-name {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.resena-author-product {
    color: var(--cyan-accent);
    font-size: 0.82rem;
    font-weight: 500;
}

.resena-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.resena-date {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.resena-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 89, 152, 0.15);
    border: 1px solid rgba(59, 89, 152, 0.6);
    color: #8b9dc3;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resena-fb-btn:hover {
    background: var(--facebook-blue);
    color: #ffffff;
    border-color: var(--facebook-blue);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   PAGINACIÓN SERVER-SIDE DESTACADA
   ========================================================================== */
.resenas-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 50px auto 30px auto;
    width: 100%;
    max-width: 800px;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-gold);
    padding: 10px 16px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resenas-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.resenas-page-btn.prev-next {
    border-radius: 20px;
    padding: 0 18px;
    font-size: 0.9rem;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold-primary);
}

.resenas-page-btn:hover {
    border-color: var(--gold-primary);
    color: #030305;
    background: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--gold-glow);
}

.resenas-page-btn.active {
    background: var(--gold-primary);
    color: #030305;
    border-color: var(--gold-primary);
    font-weight: 800;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    transform: scale(1.08);
}

.resenas-page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.pagination-info strong {
    color: var(--gold-primary);
}

/* ==========================================================================
   MÓDULO DESTACADO GOOGLE REVIEWS
   ========================================================================== */
.resenas-google-section {
    max-width: 1000px;
    margin: 20px auto 35px auto;
    padding: 0 20px;
}

.resenas-google-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(10, 15, 30, 0.98));
    border: 1px solid rgba(66, 133, 244, 0.35);
    border-radius: 20px;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(66, 133, 244, 0.12);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.resenas-google-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4285F4, #34A853, #FBBC05, #EA4335, transparent);
}

.google-badge-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.google-logo-bubble {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.google-brand-text {
    text-align: left;
}

.google-brand-text h3 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.google-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.google-rating-score {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.google-stars {
    display: flex;
    gap: 3px;
    color: #ffd700;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.google-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #34A853;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(52, 168, 83, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(52, 168, 83, 0.3);
}

.google-desc-text {
    color: #cbd5e1;
    font-size: 0.98rem;
    max-width: 680px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.google-action-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.google-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1f2937;
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(66, 133, 244, 0.2);
    transition: all 0.3s ease;
}

.google-btn-view i {
    color: #4285F4;
    font-size: 1.1rem;
}

.google-btn-view:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(66, 133, 244, 0.4);
    color: #0f172a;
}

@media (max-width: 768px) {
    .resenas-google-card {
        padding: 24px 18px;
    }

    .google-badge-brand {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .google-brand-text {
        text-align: center;
    }

    .google-stars-row {
        justify-content: center;
    }

    .google-desc-text {
        font-size: 0.9rem;
    }

    .google-btn-view {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   CALL TO ACTION (CTA) FINAL
   ========================================================================== */
.resenas-cta-section {
    max-width: 1000px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.resenas-cta-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(9, 13, 22, 0.95));
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.resenas-cta-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.resenas-cta-card p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

.resenas-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.resenas-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.resenas-btn-wa:hover {
    background: #1ebc59;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.resenas-btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resenas-btn-gallery:hover {
    background: var(--gold-primary);
    color: #030305;
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVIL & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
    .resenas-hero {
        padding: 100px 15px 40px 15px;
    }

    .resenas-hero h1 {
        font-size: 1.8rem;
    }

    .resenas-hero-desc {
        font-size: 0.95rem;
    }

    .resenas-trust-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .resenas-toolbar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .resenas-search-box {
        max-width: 100%;
        min-width: 0;
    }

    .resenas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resena-card {
        padding: 20px;
    }

    .resenas-cta-card {
        padding: 30px 20px;
    }

    .resenas-cta-card h2 {
        font-size: 1.4rem;
    }

    .resenas-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .resenas-btn-wa,
    .resenas-btn-gallery {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Paginación en Móvil */
    .resenas-pagination {
        display: flex !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 35px auto 20px auto;
        width: 100%;
        max-width: 100%;
    }

    .pagination-wrapper {
        padding: 8px 10px;
        gap: 6px;
        border-radius: 30px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .page-numbers {
        gap: 4px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .resenas-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0 8px;
    }

    .resenas-page-btn.prev-next {
        font-size: 0.78rem;
        padding: 0 10px;
        height: 36px;
    }
}

/* ==========================================================================
   FOOTER GENERAL Y RESPONSIVO
   ========================================================================== */
footer {
    background-color: #030305;
    color: #ffffff;
    padding: 70px 0 30px 0;
    border-top: 1px solid var(--border-gold);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-col {
    flex: 1 1 170px;
    min-width: 170px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-col ul li i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-col {
        min-width: 100%;
    }
}

