/* WP Trading Miners - Estilos versión 3.0 */
.wptm-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Información del minero */
.wptm-miner-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f7931a;
}
.wptm-miner-info h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}
.wptm-miner-info p {
    color: #495057;
    margin: 0.5rem 0;
}
.wptm-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 0.8rem;
}
.wptm-specs span {
    background: #f1f3f5;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Calculadora */
.wptm-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.wptm-header h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0;
}
.wptm-subheader {
    font-size: 0.9rem;
    color: #6c757d;
}

.wptm-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: #f8f9fa;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.wptm-input-item {
    flex: 1 1 180px;
    min-width: 140px;
}
.wptm-input-item label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #343a40;
    margin-bottom: 0.3rem;
}
.wptm-input-item input,
.wptm-input-item select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}
.wptm-input-item input:focus,
.wptm-input-item select:focus {
    border-color: #f7931a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.15);
}
.wptm-btn {
    background: linear-gradient(135deg, #f7931a, #e67e22);
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.wptm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.4);
}
.wptm-btn:active {
    transform: scale(0.98);
}
.wptm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resultados */
.wptm-results {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.wptm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.wptm-col {
    flex: 1 1 30%;
    min-width: 150px;
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    text-align: center;
    transition: background 0.2s;
}
.wptm-col.highlight {
    background: #fff3e0;
    border-left: 4px solid #f7931a;
}
.wptm-col.local {
    background: #e8f0fe;
    border-left: 4px solid #2c6b9e;
}
.wptm-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.wptm-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.wptm-unit {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.2rem;
}
.wptm-col.highlight .wptm-value {
    color: #e67e22;
}
.wptm-col.local .wptm-value {
    color: #1a5276;
}
.wptm-disclaimer {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #6c757d;
    border-left: 3px solid #f7931a;
}
.wptm-disclaimer small {
    display: block;
    line-height: 1.5;
}

/* Galería de imágenes */
.wptm-gallery {
    margin-top: 2.5rem;
}
.wptm-gallery h3,
.wptm-videos h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #343a40;
}
.wptm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.wptm-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f3f5;
    aspect-ratio: 1 / 1;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wptm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.wptm-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.wptm-gallery-item:hover img {
    transform: scale(1.05);
}

/* Videos de YouTube */
.wptm-videos {
    margin-top: 2rem;
}
.wptm-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.wptm-video-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    position: relative;
    aspect-ratio: 16 / 9;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wptm-video-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.wptm-video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}
.wptm-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wptm-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.wptm-video-item:hover .wptm-play-icon {
    background: rgba(247, 147, 26, 0.8);
}

/* Modal */
.wptm-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    overflow: auto;
    animation: fadeIn 0.3s;
}
.wptm-modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    max-width: 900px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: slideDown 0.3s;
}
.wptm-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.wptm-modal-close:hover {
    color: #333;
}
#wptm-modal-body {
    margin-top: 10px;
}
#wptm-modal-body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
#wptm-modal-body iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    .wptm-calculator {
        padding: 1rem;
        margin: 1rem auto;
    }
    .wptm-col {
        flex: 1 1 100%;
        min-width: unset;
    }
    .wptm-row {
        gap: 0.5rem;
    }
    .wptm-value {
        font-size: 1.2rem;
    }
    .wptm-input-item {
        flex: 1 1 100%;
        min-width: unset;
    }
    .wptm-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .wptm-videos-grid {
        grid-template-columns: 1fr;
    }
    .wptm-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    #wptm-modal-body iframe {
        height: 250px;
    }
}

/* Estado de carga */
.wptm-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s;
}
.wptm-loading .wptm-value {
    animation: pulse 1.2s infinite ease-in-out;
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}