/* Article.css - Styles for article pages */

/* === VARIABLES === */
:root {
    --primary-dark: #000000;
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --accent-color: #00ff41;
    --accent-dark: #00cc33;
    --accent-light: #66ff99;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --card-bg: rgba(17, 17, 17, 0.8);
    --gradient-primary: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    --shadow-glow: 0 0 10px rgba(0, 255, 65, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* === RESET AND BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oxanium', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* === BREADCRUMB NAVIGATION === */
.breadcrumb-container {
    background: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--accent-light);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-secondary);
}

/* === ARTICLE HEADER === */
.article-header {
    padding: 3rem 0 2rem;
    background: var(--gradient-primary);
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.review-badge, .author-badge, .date-badge {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.author-badge {
    background: var(--secondary-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.date-badge {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.article-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.article-hero-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.article-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* === MAIN CONTENT === */
.article-main {
    padding: 3rem 0;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.content-section {
    margin-bottom: 3rem;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === TABLES === */
.specs-table-container, .comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
}

.specs-table, .comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.specs-table caption, .comparison-table caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    caption-side: top;
}

.specs-table th, .comparison-table th {
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td, .comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.specs-table tr:hover, .comparison-table tr:hover {
    background: rgba(0, 255, 65, 0.05);
}

/* === PRICING INFO === */
.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.price-card h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.retailer-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.retailer-info h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.retailer-info ul {
    list-style: none;
}

.retailer-info li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.retailer-info li:last-child {
    border-bottom: none;
}

/* === ALTERNATIVES GRID === */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.alternative-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.alternative-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.alternative-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.alternative-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-link {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

/* === VERDICT BOX === */
.verdict-box {
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.verdict-box h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.verdict-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.verdict-rating {
    text-align: center;
    flex-shrink: 0;
}

.rating-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.rating-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.verdict-text p {
    margin-bottom: 1rem;
}

.verdict-text strong {
    color: var(--accent-color);
}

/* === AMAZON CTA SECTION === */
.amazon-cta-section {
    background: var(--gradient-primary);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-badge {
    margin-bottom: 1rem;
}

.cta-badge span {
    background: #ff9900;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cta-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.cta-feature i {
    color: var(--accent-color);
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ff9900;
    color: #000;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
}

.cta-button:hover {
    background: #ffad33;
    transform: translateY(-2px);
}

.button-content {
    text-align: left;
}

.button-title {
    display: block;
    font-size: 1.1rem;
}

.button-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-disclaimer {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === RELATED ARTICLES === */
.related-articles {
    padding: 3rem 0;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.related-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.related-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === FOOTER === */
.article-footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom p:first-child {
    margin-bottom: 0.5rem;
}

/* === INLINE LINKS === */
.inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-info {
        grid-template-columns: 1fr;
    }
    
    .alternatives-grid {
        grid-template-columns: 1fr;
    }
    
    .verdict-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-hero-image img {
        height: 250px;
    }
    
    .cta-button {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .button-content {
        text-align: center;
    }
}
/* === ESTILOS PARA EL MODAL DE BÚSQUEDA === */
