/* Ocultar link a si misma en el footer */
.footer-link-rm { display: none; }

/* === CALCULADORA RM - Dark theme estilo timer === */

#rm-calculator {
    width: 90%;
    max-width: 540px;
    margin: 0 auto;
    padding: 20px 0 60px;
    font-family: 'Share Tech Mono', monospace;
}

#rm-calculator h1 {
    font-family: 'Bebas Neue', serif;
    font-size: 3em;
    text-align: center;
    text-shadow: 0px 0px 20px rgba(255,255,255,0.1);
    margin: 0 0 30px;
    padding-top: 40px;
}

/* --- Toggle kg/lbs --- */

.rm-unit-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 4px;
}

.unit-btn {
    background: transparent;
    color: #888;
    border: 2px solid #444;
    padding: 6px 14px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.unit-btn.active {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* --- Tabs --- */

.rm-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.rm-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #333;
    letter-spacing: 1px;
}

.rm-tab:last-child {
    border-right: none;
}

.rm-tab:hover {
    color: #ccc;
    background: rgba(255,255,255,0.03);
}

.rm-tab.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* --- Secciones --- */

.rm-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}

.rm-section:last-child {
    border-bottom: none;
}

.rm-section h2 {
    font-family: 'Bebas Neue', serif;
    font-size: 2em;
    text-align: center;
    margin: 0 0 5px;
    letter-spacing: 2px;
}

.rm-section h3 {
    font-family: 'Bebas Neue', serif;
    font-size: 1.4em;
    margin: 25px 0 8px;
    letter-spacing: 1px;
}

.rm-hint {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 0 0 20px;
}

/* --- Inputs --- */

.rm-inputs-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.rm-inputs-single {
    justify-content: center;
}

.rm-input-group {
    flex: 1;
    max-width: 180px;
}

.rm-input-group label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-align: center;
}

#rm-calculator input[type="number"] {
    display: block;
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: 2px solid #444;
    border-radius: 6px;
    font-size: 22px;
    font-family: 'Share Tech Mono', monospace;
    text-align: center;
    box-sizing: border-box;
}

#rm-calculator input[type="number"]:focus {
    border-color: #fff;
    outline: none;
}

/* --- Botones --- */

.rm-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    padding: 14px 0;
    background: transparent;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.rm-button:hover {
    background: rgba(255,255,255,0.1);
}

.rm-button-secondary {
    border-color: #555;
    color: #aaa;
    font-size: 14px;
    padding: 10px 0;
    margin-top: 15px;
}

.rm-button-secondary:hover {
    border-color: #fff;
    color: #fff;
}

/* --- Resultado 1RM --- */

.rm-result {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #0a0a0a;
}

.rm-result-label {
    font-size: 14px;
    color: #888;
    margin: 0 0 5px;
    letter-spacing: 2px;
}

.rm-result-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #2ecc71;
    margin: 0;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
}

.rm-formulas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.rm-formula {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: #111;
    border-radius: 6px;
    min-width: 90px;
}

.rm-formula-name {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.rm-formula-val {
    font-size: 16px;
    color: #ccc;
}

/* --- Tabla de porcentajes --- */

.rm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.rm-table thead th {
    font-size: 12px;
    color: #666;
    padding: 8px 10px;
    text-align: center;
    border-bottom: 2px solid #333;
    letter-spacing: 1px;
}

.rm-table tbody tr {
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
}

.rm-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.rm-table tbody td {
    padding: 12px 10px;
    text-align: center;
    font-size: 16px;
}

.rm-table-peso {
    color: #2ecc71;
    font-weight: 500;
}

/* Fila del 100% resaltada */
.rm-table tbody tr:first-child {
    background: rgba(46, 204, 113, 0.08);
}

.rm-table tbody tr:first-child td {
    color: #2ecc71;
    font-weight: 500;
}

/* --- Toggle barra --- */

.rm-bar-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
}

.bar-btn {
    background: transparent;
    color: #888;
    border: 2px solid #444;
    padding: 10px 18px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    flex: 1;
}

.bar-btn.active {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* --- Visualizacion barra --- */

.barbell-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto 15px;
    height: 100px;
    overflow-x: auto;
}

.barbell-side {
    display: flex;
    align-items: center;
    height: 100%;
}

.barbell-left {
    flex-direction: row;
}

.barbell-right {
    flex-direction: row;
}

.barbell-bar {
    width: 80px;
    min-width: 60px;
    height: 8px;
    background: linear-gradient(to bottom, #666, #444, #666);
    border-radius: 2px;
}

.plate {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin: 0 1px;
    box-shadow: 1px 0 3px rgba(0,0,0,0.5);
    position: relative;
    min-width: 8px;
}

.plate-label {
    font-size: 8px;
    font-family: 'Share Tech Mono', monospace;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

.rm-discos-texto {
    text-align: center;
    color: #ccc;
    font-size: 15px;
    margin: 10px 0 0;
}

.rm-discos-error {
    text-align: center;
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0 0;
}

/* --- SEO section --- */

.rm-seo-section {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}

.rm-seo-section h2 {
    color: #fff;
}

.rm-seo-section h3 {
    color: #ddd;
}

.rm-seo-section p {
    margin: 0 0 12px;
}

.rm-seo-section strong {
    color: #ccc;
}

.rm-seo-section ul {
    padding-left: 20px;
    margin: 8px 0 15px;
}

.rm-seo-section li {
    margin-bottom: 5px;
}

/* --- Responsive --- */

@media (max-width: 480px) {
    #rm-calculator {
        width: 95%;
        padding: 15px 0 50px;
    }

    #rm-calculator h1 {
        font-size: 2.2em;
        padding-top: 50px;
    }

    .rm-section h2 {
        font-size: 1.6em;
    }

    .rm-result-value {
        font-size: 2.2em;
    }

    .rm-formulas {
        gap: 6px;
    }

    .rm-formula {
        min-width: 70px;
        padding: 6px 8px;
    }

    .rm-formula-val {
        font-size: 14px;
    }

    #rm-calculator input[type="number"] {
        font-size: 18px;
        padding: 10px;
    }

    .rm-table tbody td {
        font-size: 14px;
        padding: 10px 6px;
    }

    .barbell-bar {
        width: 50px;
        min-width: 40px;
    }

    .rm-tab {
        padding: 8px 4px;
        font-size: 11px;
    }

    .back-button {
        display: none;
    }

    .rm-unit-toggle {
        top: 10px;
        right: 10px;
    }

    .unit-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Remove spinners from number inputs */
#rm-calculator input[type="number"]::-webkit-outer-spin-button,
#rm-calculator input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#rm-calculator input[type="number"] {
    -moz-appearance: textfield;
}
