/* 
 * TodoReseña - Review Template Styles (Clean Standard Redesign)
 */

 :root {
    --pro-green: #16a34a; 
    --con-red: #dc2626;   
    --primary-blue: #2563eb;
    --sidebar-width: 320px;
    --content-width: 740px;
    --border-color: #e5e7eb;
    --text-main: #374151;
    --text-heading: #111827;
}

/* Dejamos que Blocksy maneje el background del body para que se integre bien */
body {
    background-color: transparent !important;
}

.review-main-container {
    padding: 40px 0 60px 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

.review-main-container .container {
    max-width: calc(var(--content-width) + var(--sidebar-width) + 40px) !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography basics */
.review-main-container h1, 
.review-main-container h2, 
.review-main-container h3, 
.review-main-container h4 {
    color: var(--text-heading);
    margin-top: 0;
}

.review-main-container a {
    color: var(--primary-blue);
    text-decoration: none;
}
.review-main-container a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HEADER DEL POST (HERO)
   ========================================================================== */
.review-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}
.header-content {
    flex: 1 1 min-width;
}

.review-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}
.review-breadcrumbs .current {
    color: var(--text-heading);
    font-weight: 600;
}

.review-category-badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.review-h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.review-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-item svg {
    color: #9ca3af;
    width: 16px;
    height: 16px;
}

.review-top-rating {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
}
.score-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}
.score-label {
    font-size: 13px;
    color: #4b5563;
    text-align: left;
    line-height: 1.3;
}

/* ==========================================================================
   BANNER DECORATIVO (entre site-header y el post)
   ========================================================================== */
.review-hero-banner {
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 35%, #2563eb 65%, #06b6d4 100%);
    background-size: 200% 100%;
    animation: bannerShift 6s ease infinite;
    position: relative;
    overflow: hidden;
}
.review-hero-banner__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: bannerGlow 3s ease-in-out infinite;
}
@keyframes bannerShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bannerGlow {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */
.review-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 992px) {
    .review-content-wrapper {
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: space-between;
    }
    .review-body {
        width: 100%;
        max-width: var(--content-width);
    }
    .review-sidebar {
        width: var(--sidebar-width);
        flex-shrink: 0;
    }
}

/* ==========================================================================
   SIDEBAR (Caja Resumen + TOC)
   ========================================================================== */
.summary-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    background: #f9fafb;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.pros-cons-grid {
    margin-bottom: 20px;
}
.pros-list, .cons-list {
    margin-bottom: 20px;
}
.pros-list h4, .cons-list h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.pros-list h4 { color: var(--pro-green); }
.cons-list h4 { color: var(--con-red); }

.pros-list ul, .cons-list ul { 
    margin: 0; 
    padding: 0 0 0 24px; 
}
.pros-list ul li, .cons-list ul li {
    margin-bottom: 6px;
    font-size: 14px;
}
.pros-list ul li::before, .cons-list ul li::before { display: none; }
.pros-list ul { list-style-type: disc; color: var(--pro-green); }
.cons-list ul { list-style-type: disc; color: var(--con-red); }
.pros-list ul li span, .pros-list ul li span, .pros-list ul li, .cons-list ul li { color: var(--text-main); }

.cta-amazon-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #f59e0b; /* Classic Amazon Orange */
    color: #111827 !important;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid #d97706;
}
.cta-amazon-main:hover {
    background: #fbbf24;
    text-decoration: none;
}
.cta-amazon-main svg {
    display: inline-block;
    width: 20px; height: 20px;
}

.last-updated {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 15px;
}

/* TOC */
.table-of-contents {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.toc-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-header svg { display: inline-block; width: 20px; height: 20px; color: var(--primary-blue); }
.toc-list { margin: 0; padding: 0; list-style-type: none; }
.toc-list li {
    margin-bottom: 8px;
}
.toc-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding-left: 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}
.toc-list a:hover {
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    text-decoration: none;
}

/* ==========================================================================
   CONTENIDO (BODY)
   ========================================================================== */
.review-section {
    margin-bottom: 40px;
}
.review-section h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.intro-lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.review-section p {
    margin-bottom: 18px;
}

.callout {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-blue);
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 15px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.callout svg { display: block; flex-shrink: 0; color: var(--primary-blue); width: 24px; height: 24px;}
.callout-info {
    border-left-color: var(--primary-blue);
}
.callout-tip {
    background: #f0fdf4;
    border-left-color: var(--pro-green);
    border-color: #dcfce7;
}
.callout-tip svg { color: var(--pro-green); }

.content-image {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 25px 0 10px;
    max-width: 100%;
}
.image-caption {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 25px;
    font-style: italic;
}

.section-title-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.section-title-score h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.section-score {
    background: var(--text-heading);
    color: #ffffff;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
}

/* Specs table - CLEAN MID-GROUND FIX */
.specs-table-wrapper {
    margin-bottom: 30px;
    overflow-x: auto;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}
.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.specs-table tr:last-child td {
    border-bottom: none;
}
.specs-table tr:nth-child(even) {
    background: #f9fafb;
}
.specs-table td:first-child {
    font-weight: 600;
    width: 35%;
    color: var(--text-heading);
}
.specs-table td:first-child svg {
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 8px;
    color: #9ca3af;
    width: 18px; height: 18px;
}

/* Alternatives */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}
.alt-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    transition: box-shadow 0.2s;
    color: var(--text-main) !important;
    text-decoration: none !important;
}
.alt-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    color: var(--text-main) !important;
}
.alt-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}
.alt-card h4 {
    font-size: 17px;
    margin: 0 0 10px 0;
    color: var(--text-heading) !important;
}
.alt-card p,
.alt-card .alt-desc {
    color: #4b5563 !important;
}
.alt-price {
    display: block;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-blue) !important;
}
.alt-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: var(--text-heading) !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
}
.alt-card:hover .alt-link {
    background: #e5e7eb;
    text-decoration: none !important;
}
.alt-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-blue);
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.alt-desc {
    font-size: 14px;
    color: #4b5563 !important;
    line-height: 1.65;
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   CTA BOX AMAZON (shortcode [caja_amazon])
   ========================================================================== */
.amz-cta-box {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    margin: 32px 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(37,99,235,0.07);
    transition: box-shadow 0.2s;
}
.amz-cta-box:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.amz-cta__badge {
    display: block;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 16px;
    text-align: center;
}
.amz-cta__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
}
.amz-cta__img-wrap {
    flex-shrink: 0;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amz-cta__img-wrap img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}
.amz-cta__content {
    flex: 1;
    min-width: 0;
}
.amz-cta__nombre {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.amz-cta__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.amz-cta__stars {
    display: flex;
    gap: 2px;
}
.amz-cta__rating-num {
    font-weight: 700;
    font-size: 14px;
    color: #374151;
}
.amz-cta__votos {
    font-size: 13px;
    color: #6b7280;
}
.amz-cta__price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.amz-cta__precio {
    font-size: 28px;
    font-weight: 800;
    color: #b91c1c;
    line-height: 1;
}
.amz-cta__saving {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.amz-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: #111827 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid #d97706;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 14px;
}
.amz-cta__btn:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}
.amz-cta__features {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.amz-cta__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}
.amz-cta__features li svg {
    flex-shrink: 0;
    color: #2563eb;
}
.amz-cta__trust {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.amz-cta__trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
}
.amz-cta__trust-item svg {
    display: block;
    color: #16a34a;
}
.amz-cta__updated {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}
.amz-cta__updated svg { display: block; }

@media (max-width: 560px) {
    .amz-cta__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .amz-cta__img-wrap { width: 100%; }
    .amz-cta__img-wrap img { width: 100%; height: 160px; }
    .amz-cta__btn { width: 100%; justify-content: center; }
}

/* Verdict */
.verdict-box {
    background: #1f2937;
    color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}
.verdict-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.verdict-header svg { display: inline-block; color: #f59e0b; width: 32px; height: 32px;}
.verdict-header h2 {
    border: none;
    margin: 0;
    font-size: 28px;
    color: #ffffff;
    padding-bottom: 0;
}
.verdict-score-large {
    font-size: 56px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 20px;
    line-height: 1;
}
.verdict-score-large span {
    font-size: 28px;
    color: #9ca3af;
}
.verdict-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #d1d5db;
}
.verdict-conclusion {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    margin-bottom: 25px;
}
.verdict-point {
    font-size: 15px;
    margin-bottom: 8px;
}
.verdict-point:last-child { margin-bottom: 0; }
.verdict-point strong { color: #f3f4f6; }

.btn-primary,
.verdict-box .btn-primary,
.review-body a.btn-primary {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.2s;
    border: none !important;
    box-shadow: none !important;
}
.btn-primary:hover,
.verdict-box .btn-primary:hover {
    background: #1d4ed8 !important;
    text-decoration: none;
}

/* FAQ */
.faq-accordion {
    margin-top: 20px;
}
.faq-accordion details {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 6px;
}
.faq-accordion summary {
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #f9fafb;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-accordion summary::-webkit-details-marker {
    display: none;
}
.faq-accordion summary::after {
    content: '+';
    font-weight: normal;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
}
.faq-accordion details[open] summary::after {
    content: '-';
}
.faq-content {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* Autor */
.author-box {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 25px;
    margin-top: 40px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.author-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    overflow: hidden;
}
.author-avatar svg { display: block; width: 32px; height: 32px; }
.author-info {
    flex: 1;
}
.author-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
}
.author-role {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}
.author-info p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #ffffff;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}
.cta-price-mobile {
    font-weight: 700;
    font-size: 20px;
    display: block;
    color: var(--text-heading);
}
.cta-stock-mobile {
    font-size: 12px;
    color: var(--pro-green);
    font-weight: 500;
}
.btn-primary-sm {
    background: var(--primary-blue);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
@media (min-width: 992px) {
    .mobile-sticky-cta {
        display: none;
    }
}
