/* /css/producto.css - VERSIÓN FINAL Y DETALLADA */

/* ==========================================================================
   1. VARIABLES Y RESET GLOBAL
   ========================================================================== */
:root {
    --color-accent: #FACC15;
    --color-danger: #F43F5E;
    --color-background: #111827;
    --color-surface: #1F2937;
    --color-text-primary: #F9FAFB;
    --color-text-secondary: #9CA3AF;
    --color-text-dark: #111827;
    --font-main: 'Inter', -apple-system, sans-serif;
    --border-radius-card: 24px;
    --border-radius-button: 16px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--font-main); 
    background-color: var(--color-background); 
    color: var(--color-text-primary); 
    font-size: 16px; /* Base font size */
    padding-bottom: 120px; /* Espacio para el botón de compra fijo */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* ==========================================================================
   2. COMPONENTES COMPARTIDOS (HEADER, FOOTER)
   ========================================================================== */
.site-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 0; 
    gap: 20px; 
    margin-bottom: 30px; 
}
.site-logo-link { text-decoration: none; }
.site-logo { font-size: 2.2rem; font-weight: 800; color: var(--color-text-primary); letter-spacing: -1px; }
.site-logo span { color: var(--color-accent); }

.site-footer {
    background-color: var(--color-surface); 
    padding: 40px; 
    margin-top: 50px; 
    border-radius: var(--border-radius-card); 
    clear: both;
}
.footer-container { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-container h3 { font-size: 1.5rem; margin-bottom: 15px; }
.footer-container p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 20px; }
.footer-container a { color: var(--color-accent); text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.footer-container a:hover { text-decoration: underline; color: #fff; }

/* ==========================================================================
   3. PÁGINA DE PRODUCTO - ESTILOS DETALLADOS
   ========================================================================== */
.product-page-container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-card);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Asegura que ambas columnas tengan la misma altura */
}
.product-image-column {
    flex: 1 1 40%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #fff;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.product-image-column img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    display: block;
}
.product-info-column {
    flex: 1 1 60%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}
.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
}
.product-current-price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.product-original-price {
    font-size: 1.75rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    font-weight: 600;
}
.product-discount-badge {
    background-color: var(--color-danger);
    color: var(--color-text-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    align-self: flex-start;
}
.product-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
}
/* ¡IMPORTANTE! Estilos para el contenido de la descripción */
.product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}
.product-description p { margin-bottom: 1em; }
.product-description ul, .product-description ol { padding-left: 20px; margin-bottom: 1em; }
.product-description li { margin-bottom: 0.5em; }
.product-description strong, .product-description b { font-weight: 600; color: var(--color-text-primary); }
.product-description a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.product-description a:hover { color: #fff; }

/* ==========================================================================
   4. BARRA DE COMPRA FIJA (PERFECCIONADA)
   ========================================================================== */
.buy-button-container {
    position: fixed; bottom: 0; left: 0; width: 100%;
    padding: 15px 20px; z-index: 999;
    background: linear-gradient(to top, rgba(17,24,39,1) 40%, transparent);
    pointer-events: none;
}
.buy-button {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; max-width: 600px; margin: 0 auto;
    padding: 18px 25px; font-size: 1.3rem; font-weight: 700; color: var(--color-background);
    background-color: var(--color-accent); border: none; border-radius: var(--border-radius-button); cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 20px rgba(250, 204, 21, 0.3);
    transition: all 0.3s ease;
    pointer-events: all;
}
.buy-button:hover {
    background-color: #FBBF24;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.4);
}
.buy-button svg { width: 24px; height: 24px; transition: transform 0.3s ease; }
.buy-button:hover svg { transform: translateX(4px); }

/* ==========================================================================
   5. RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 900px) {
    .product-page-container { flex-direction: column; align-items: stretch; }
    .product-image-column { border-radius: 22px 22px 0 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .product-info-column { padding: 40px 25px; }
}
@media (max-width: 768px) {
    .site-header { flex-direction: column; align-items: flex-start; }
    .product-title { font-size: 1.75rem; }
    .product-current-price { font-size: 3.5rem; }
}