/* ===================================
   PRODUCTO DETALLE - ESTILOS
   Manteniendo estilo Faction
   =================================== */

.producto-detalle {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #333;
}

/* ========== HERO SECTION ========== */
.producto-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.producto-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.producto-hero__info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.producto-hero__info .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========== META BADGES ========== */
.producto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.producto-meta span {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.categoria-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.version-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.gratis-badge {
    background: #e8f5e9;
    color: #388e3c;
}

.premium-badge {
    background: #fff3e0;
    color: #f57c00;
}

.comprado-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ========== PRECIO ========== */
.producto-precio {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.precio-valor {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.precio-label {
    display: block;
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

/* ========== BOTONES DE ACCIÓN ========== */
/* ELIMINADO: No sobrescribir estilos de botones del tema Faction */
/* Los botones usarán automáticamente las clases .button, .large, .primary, etc. del tema */

/* Solo ajustamos el layout de los botones */
.producto-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center; /* Centra verticalmente */
}

/* Aseguramos que los botones se vean bien */
.producto-acciones .button.large {
    /* El tema ya define .large, solo añadimos un pequeño ajuste si es necesario */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.5em; /* Un poco más alto para botones grandes */
}

/* ========== INFO EXTRA ========== */
.producto-info-extra {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.info-item i {
    color: #999;
    min-width: 1.2rem; /* Para alinear iconos */
}

/* ========== SECCIONES DE CONTENIDO ========== */
.producto-descripcion,
.producto-changelog,
.producto-requisitos,
.producto-historial {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.producto-descripcion h2,
.producto-changelog h2,
.producto-requisitos h2,
.producto-historial h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.descripcion-content,
.changelog-content {
    line-height: 1.8;
    color: #555;
}

.descripcion-content h3,
.descripcion-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.descripcion-content ul,
.descripcion-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.descripcion-content li {
    margin-bottom: 0.5rem;
}

/* ========== REQUISITOS ========== */
.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.requisito-item {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.requisito-item.full-width {
    grid-column: 1 / -1;
}

.requisito-item i {
    color: #667eea;
    margin-right: 0.5rem;
}

.requisito-item pre {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========== HISTORIAL ========== */
.historial-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.version-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #7b1fa2;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    flex-wrap: wrap;
    gap: 1em;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

.version-number {
    font-size: 0.9em;
    font-weight: 600;
    color: #3b7779;
    font-family: monospace;
}

.version-date {
    color: #666;
    font-size: 0.9em;
}

.tag-actual {
    background: #709fb7;
    color: white;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}
/* ========== MEJORAS VISUALES ========== */
/* Añadimos una clase para cuando el texto en botones es largo */
.button-text-long {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding-top: 0.9em;
    padding-bottom: 0.9em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .producto-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .producto-hero__info h1 {
        font-size: 2rem;
    }
    
    .precio-valor {
        font-size: 2.5rem;
    }
    
    .producto-acciones {
        flex-direction: column;
        align-items: stretch; /* Los botones ocuparán todo el ancho */
    }
    
    .producto-acciones .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .requisitos-grid {
        grid-template-columns: 1fr;
    }
    
    /* Asegurar que los botones con texto largo se vean bien en móvil */
    .producto-acciones .button.large {
        min-height: auto;
        padding: 1em 1.8em;
    }
}

/* Estilos específicos para cuando el texto es largo en botones */
@media (max-width: 480px) {
    .button-text-long {
        font-size: 0.9em;
        padding: 0.8em 1em;
    }
}

/* Añade esto al final de tu producto-detalle.css */

/* ========== MODAL DE COMPRA ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2em;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal .close:hover {
    color: #333;
}

.payment-method {
    padding: 1.5em;
    margin: 1em 0;
    background: rgba(144, 144, 144, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(144, 144, 144, 0.1);
}

.notice {
    margin-top: 2em;
    padding: 1em;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.notice p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.5em;
        width: 95%;
    }
}