/* Aethera Public - Frontend Moderno */
.aethera-product-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #e2e8f0;
    background: #0f0f23;
    min-height: 100vh;
}

.aethera-product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

.aethera-product-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aethera-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aethera-product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.aethera-product-image-placeholder svg {
    opacity: 0.8;
}

.aethera-product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.aethera-product-title {
    font-size: 42px;
    font-weight: 800;
    color: #f7fafc;
    line-height: 1.2;
    margin: 0 0 16px;
}

/* DESCRIPCION: alta especificidad + important para que el tema no pise */
.aethera-product-page .aethera-product-description,
.aethera-product-page .aethera-product-description p,
.aethera-product-page .aethera-product-description span,
.aethera-product-page .aethera-product-description strong,
.aethera-product-page .aethera-product-description em,
.aethera-product-page .aethera-product-description a,
.aethera-product-page .aethera-product-description li,
.aethera-product-page .aethera-product-description div,
.aethera-product-page .aethera-product-description h1,
.aethera-product-page .aethera-product-description h2,
.aethera-product-page .aethera-product-description h3,
.aethera-product-page .aethera-product-description h4,
.aethera-product-page .aethera-product-description h5,
.aethera-product-page .aethera-product-description h6,
.aethera-product-page .aethera-product-description blockquote,
.aethera-product-page .aethera-product-description pre,
.aethera-product-page .aethera-product-description code {
    color: #f0f0f0 !important;
}

.aethera-product-page .aethera-product-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.aethera-product-page .aethera-product-description a {
    color: #a78bfa !important;
    text-decoration: underline;
}

.aethera-product-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 14px;
    color: #718096;
}

.aethera-product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pricing */
.aethera-pricing {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.aethera-price-original {
    font-size: 20px;
    color: #a0aec0;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.aethera-price-final {
    font-size: 48px;
    font-weight: 800;
    color: #e94560;
    line-height: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.aethera-price-currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: super;
}

.aethera-discount-badge {
    display: inline-block;
    background: #e94560;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

/* CTA Button */
.aethera-cta-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    width: 100%;
    max-width: 400px;
}

.aethera-cta-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.aethera-cta-buy:active {
    transform: translateY(0);
}

/* Not published message */
.aethera-not-published {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #374151;
    color: #9ca3af;
    border: none;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Preview Section */
.aethera-preview-section {
    margin-top: 48px;
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.aethera-preview-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 24px;
}

.aethera-preview-container {
    position: relative;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 400px;
}

.aethera-preview-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 64px;
    font-weight: 800;
    color: rgba(233, 69, 96, 0.08);
    pointer-events: none;
    user-select: none;
    z-index: 10;
}

.aethera-preview-content {
    width: 100%;
    position: relative;
    z-index: 5;
}

.aethera-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #64748b;
}

.aethera-preview-loading .aethera-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.aethera-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #ef4444;
    text-align: center;
    padding: 40px;
}

.aethera-preview-note {
    text-align: center;
    font-size: 13px;
    color: #a0aec0;
    margin-top: 16px;
}

/* Preview pages grid - para canvas de pdf.js */
.aethera-preview-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.aethera-preview-page {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 100%;
}

.aethera-preview-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.aethera-preview-page-number {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-weight: 500;
}

/* Product Grid (archive) */
.aethera-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Archive header */
.aethera-archive-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
}

.aethera-archive-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
}

.aethera-archive-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 12px;
}

/* Shortcode single product card */
.aethera-shortcode-card {
    max-width: 280px;
    background: #1e1e2f;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 16px;
    border: 1px solid #2d2d44;
}
.aethera-shortcode-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #2d2d44;
}
.aethera-shortcode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.aethera-shortcode-card:hover .aethera-shortcode-img {
    transform: scale(1.05);
}
.aethera-shortcode-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c6c8a;
}
.aethera-shortcode-title {
    color: #f0f0f0;
    font-size: 16px;
    margin: 12px 8px 4px;
    line-height: 1.3;
}
.aethera-shortcode-price {
    color: #ff6b8a;
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 12px;
}
.aethera-shortcode-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.aethera-shortcode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .aethera-product-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .aethera-product-title {
        font-size: 28px;
    }

    .aethera-price-final {
        font-size: 36px;
    }

    .aethera-cta-buy,
    .aethera-not-published {
        padding: 16px 32px;
        font-size: 16px;
        max-width: 100%;
    }

    .aethera-preview-container {
        min-height: 300px;
        padding: 12px;
    }

    .aethera-preview-pages-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .aethera-product-page {
        padding: 20px 16px;
    }

    .aethera-product-meta {
        flex-direction: column;
        gap: 12px;
    }

    .aethera-preview-section {
        padding: 20px 16px;
    }

    .aethera-preview-page {
        border-radius: 6px;
    }
}
/* Badge de categoria */
.aethera-product-category {
    margin-bottom: 12px;
}
.aethera-category-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #a78bfa;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(167, 139, 250, 0.3);
}