/* =====================================================
   XMLGratis.mx - Estilos para Páginas Internas
   ===================================================== */

/* Page Hero */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.page-hero-content {
    max-width: 800px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb span {
    color: var(--text-dark);
}

/* Content Grid */
.page-content {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* Main Content */
.content-main h2 {
    font-size: 1.75rem;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.content-main h2:first-of-type {
    margin-top: 0;
}

.content-main p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-main ul,
.content-main ol {
    color: var(--text-muted);
    margin: 16px 0;
    padding-left: 24px;
}

.content-main li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Feature Screenshot */
.feature-screenshot {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-screenshot img {
    width: 100%;
    display: block;
}

.screenshot-placeholder {
    background: var(--bg-card);
    padding: 80px 40px;
    text-align: center;
    color: var(--text-dark);
}

.screenshot-placeholder i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

/* Feature Detail */
.feature-detail {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.feature-detail:hover {
    border-color: var(--primary);
}

.feature-detail-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-md);
}

.feature-detail-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-detail-icon.feature-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.feature-detail-icon.feature-icon-danger i {
    color: var(--error);
}

.feature-detail-icon.feature-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.feature-detail-icon.feature-icon-warning i {
    color: var(--warning);
}

.feature-detail-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-detail-content p {
    margin-bottom: 12px;
}

.feature-detail-content ul {
    margin: 0;
    padding-left: 20px;
}

.feature-detail-content li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* Danger/Warning Details */
.feature-detail-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.feature-detail-danger:hover {
    border-color: var(--error);
}

.feature-detail-warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-detail-warning:hover {
    border-color: var(--warning);
}

/* Steps List */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.steps-list li {
    position: relative;
    padding: 20px 20px 20px 70px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-white);
}

.steps-list li strong {
    display: block;
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.steps-list li p {
    margin: 0;
    font-size: 0.95rem;
}

/* Use Cases */
.use-case {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.use-case h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.use-case h4 i {
    color: var(--primary);
}

.use-case p {
    margin: 0;
    font-size: 0.95rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--text-light);
}

.alert-danger i {
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--text-light);
}

.alert-warning i {
    color: var(--warning);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.info-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-white);
}

.info-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-cta {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.sidebar-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.sidebar-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sidebar-cta .btn {
    margin-bottom: 16px;
}

.sidebar-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0;
}

.sidebar-note i {
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* Sidebar Features List */
.sidebar-features {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.sidebar-features h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-light);
}

.sidebar-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-features li {
    margin-bottom: 12px;
}

.sidebar-features li:last-child {
    margin-bottom: 0;
}

.sidebar-features a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.sidebar-features a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.sidebar-features a i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* Page CTA */
.page-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.page-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.page-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-description {
        font-size: 1.1rem;
    }

    .feature-detail {
        flex-direction: column;
        gap: 16px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .steps-list li {
        padding-left: 60px;
    }

    .steps-list li::before {
        left: 15px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* =====================================================
   Estilos adicionales para página de Validaciones
   ===================================================== */

/* Intro Box */
.intro-box {
    padding: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.intro-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* H2 con iconos */
.content-main h2 i {
    color: var(--primary);
    margin-right: 10px;
}

/* Alert Info */
.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-light);
}

.alert-info i {
    color: #3b82f6;
}

/* Validation Grid */
.validation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.validation-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.validation-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.validation-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-md);
}

.validation-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

.validation-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.validation-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Versions Table */
.versions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.versions-table th,
.versions-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.versions-table th {
    background: rgba(16, 185, 129, 0.1);
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
}

.versions-table td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.versions-table tr:last-child td {
    border-bottom: none;
}

.versions-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Sidebar TOC (Table of Contents) */
.sidebar-toc {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.sidebar-toc h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-light);
}

.sidebar-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-toc li {
    margin-bottom: 8px;
}

.sidebar-toc li:last-child {
    margin-bottom: 0;
}

.sidebar-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.sidebar-toc a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.sidebar-toc a i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* Sidebar Resources */
.sidebar-resources {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.sidebar-resources h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-light);
}

.sidebar-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-resources li {
    margin-bottom: 10px;
}

.sidebar-resources li:last-child {
    margin-bottom: 0;
}

.sidebar-resources a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.sidebar-resources a:hover {
    color: var(--primary);
}

.sidebar-resources a i {
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* Content CTA (inline) */
.content-cta {
    padding: 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 40px 0;
}

.content-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.content-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Page Hero Warning (for radar-riesgos) */
.page-hero-warning {
    background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(239, 68, 68, 0.05) 100%);
}

/* Responsive for new elements */
@media (max-width: 768px) {
    .validation-grid {
        grid-template-columns: 1fr;
    }

    .versions-table th,
    .versions-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .intro-box {
        padding: 20px;
    }

    .content-cta {
        padding: 24px;
    }
}

/* Disclaimer */
.disclaimer {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* FAQ List spacing */
.faq-list .feature-detail {
    margin-bottom: 16px;
}

.faq-list .feature-detail-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.faq-list .feature-detail-content p {
    margin: 0;
}

/* =====================================================
   Share Buttons - Botones de Compartir
   ===================================================== */

.share-section {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.share-section h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.share-btn i {
    font-size: 1rem;
}

/* WhatsApp */
.share-btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.share-btn-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

/* LinkedIn */
.share-btn-linkedin {
    background: rgba(0, 119, 181, 0.15);
    color: #0077b5;
}

.share-btn-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

/* Facebook */
.share-btn-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
}

.share-btn-facebook:hover {
    background: #1877f2;
    color: #fff;
}

/* Copy Link */
.share-btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.share-btn-copy:hover {
    background: var(--primary);
    color: #fff;
}

.share-btn-copy.copied {
    background: var(--primary);
    color: #fff;
}

.share-btn-copy.copied i::before {
    content: "\f00c"; /* fa-check */
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }
}

/* =====================================================
   Featured Image - Imagen Destacada
   ===================================================== */

.featured-image {
    margin: 0 0 32px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   Premium Callout - Promoción IAudita Pro
   ===================================================== */

.premium-callout {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-lg);
}

.premium-callout-header {
    text-align: center;
    margin-bottom: 32px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 16px;
}

.premium-badge i {
    font-size: 0.75rem;
}

.premium-callout-header h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.premium-callout-header h2 i {
    color: #a855f7;
}

.premium-callout-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.premium-feature {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.premium-feature:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
}

.premium-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.premium-feature-icon i {
    font-size: 1.25rem;
    color: #a855f7;
}

.premium-feature h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.premium-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.premium-callout-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.premium-callout-footer p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.premium-callout-footer p:first-child {
    color: var(--text-light);
    font-size: 1.05rem;
}

.btn-premium {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-top: 8px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    color: #fff;
}

@media (max-width: 768px) {
    .premium-features-grid {
        grid-template-columns: 1fr;
    }

    .premium-callout {
        padding: 24px;
    }

    .premium-callout-header h2 {
        font-size: 1.25rem;
    }
}
